A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [ncurses]

a programming library used for providing a text-based user interface

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

How do I generate a particular (named) escape sequence for the current terminal?

I recently saw a trick that let you sort of "generically" output terminal control codes (based on the current termcap/terminfo settings), but can't find it back. If I remember correctly it let you do ...
0
votes
0answers
35 views

Linux mint | methods are missing from ncurses

I lately installed a linux mint distribution for development... Later on i installed curses, ncurses and ncursesw by using following commands... sudo apt-get install libncurses-dev sudo apt-get ...
0
votes
0answers
24 views

How to have colors on qemu curses?

I'm using Arch, and i am emulating a virtual operating system (Linux) with qemu (qemu-system-x86_64), but this system has no colors (calling escape sequences directly doesn't work either, not even "...
0
votes
1answer
30 views

piping /dev/tty to ipython without losing formatting or tab completion

I want to insert code into the beginning of an ipython session, and then use ipython interactively. Let's say I run cat <(echo 'import itertools') /dev/tty | ipython. I get an interactive iPython ...
0
votes
1answer
60 views

Force Bash to use 8 colors

I made some animations and a game that are to be played in the terminal and they rely on the terminal only having 8 colors available. When I run them on a Terminal that has 16 colors available (...
0
votes
0answers
240 views

_curses.error: setupterm: could not find terminal

A lot of people have been getting the following error message when using curses in python: Traceback (most recent call last): File "/home/bertil/anaconda3/bin/vd", line 152, in <module> ...
0
votes
0answers
37 views

Application (curses) displays differently between windowed terminal and console environment

When running my curses application in a windowed environment (Ubuntu) My borders appear correctly. However, when started from a Raspbian minimal terminal (no windowed environment) the borders are ...
0
votes
0answers
48 views

CLI or ncurses tool for browsing local network?

I have a console-only SSH-based pivot box inside a remote location. I want a console or ncurses-based tool that shows me active real-time information on which hosts are up. IP, hostname, etc. ...
1
vote
2answers
167 views

Cannot display 8-bit characters in xterm in ubuntu 18.04

I have tried every method I could find in the forums, and cannot display any 8-bit character in an xterm window, under kubuntu 18.04 (nor in earlier versions). All characters in range 0x20-0x7e ...
0
votes
1answer
49 views

Exit alternate screen after crashed ssh-tmux session

After I get disconnected from my tmux session over ssh (I have to use the ssh ~. command to exit), the mouse start displaying control characters like 80;31M65;80;31M65; when I click or turn the wheel. ...
0
votes
0answers
49 views

Wrap a program in borders

I want a unix command like this: $ wrap mc $ wrap ls $ wrap vi It should create a border box with the size of the terminal window and run the command passed to it inside this box so that the command ...
5
votes
1answer
807 views

Command-line diff tool

So we all have the diff command installed by default. I certainly don't know how to use it well. But I would expect some reasonable default usage. But when I type diff file1 file2 I get ... a text ... ...
1
vote
0answers
111 views

What happens if terminal is resized in ncurses `doupdate`?

The doupdate function in ncurses will try to update screen size if necessary: ncurses/tty/tty_update.c: if ((SP_PARM->_endwin == ewSuspend) || _nc_handle_sigwinch(SP_PARM)) { /* * This is a ...
1
vote
0answers
238 views

Resize window in multi-thread ncurses program

The overall question is simple: How to gracefully resize a window in a multi-thread ncurses program? Details here. I have read a few relevant questions (1, 2, 3). From my understanding, there are ...
2
votes
1answer
226 views

pipe into a curses program

The library ncurses provides an interactive user interface. However, I was wondering what would happen if you pipe something into the program. So i tried like this: # echo foo | my_curses_prog It ...
1
vote
1answer
395 views

Touchscreen for ncurses, beyond mouse?

Does ncurses have any support for touch screen computers? Will a touch screen trigger the same events in ncurses that a mouse does? For example, does tapping on a touch screen produce a "mouse click" ...
0
votes
1answer
513 views

Failed “make menuconfig” [closed]

Until now I was able to run make menuconfig successfully. I tried to install cmake packages and thereafter I get, make menuconfig: make[1]: Entering directory '/home/dullollis/esp/esp-idf/tools/...
0
votes
1answer
60 views

convert ncurses binary dump into text

I have a ncurses dump (with for example screen recorder from GNU screen) and I would like to convert it into text (there are some conversations in it, some lists and other things, all text, but ...
0
votes
2answers
191 views

NCurses over Mosh, altcharset

The simplest program that should draw a horizontal line: int main() { initscr(); for (int i=0;i<10;i++) addch(ACS_HLINE); getch(); endwin(); } works ok localy, but over MOSH connection result ...
1
vote
2answers
391 views

Make reset on Mac like reset on Linux

On Mac, the reset command in terminal almost does the same thing as clear. On Ubuntu Linux, and maybe other flavors of Linux, the reset command actually "resets" the terminal so that you can't scroll ...
0
votes
1answer
399 views

ncurses/diag like menu for console for OpenBSD?

Strictly on the console, so no GUI, how can I create similar on OpenBSD, like as YAST uses for SLES? Cannot find any ncurses or diag packages on OpenBSD ports.
1
vote
0answers
120 views

Where can I find keyboard key combinations that enter non-printable terminal characters?

For example, in my xterm to get: 000: Ctrl+Space or Ctrl+@ 001: Ctrl+A 002: Ctrl+B 003: Ctrl+C 004: Ctrl+D 005: Ctrl+E 006: Ctrl+F 007: Ctrl+G 008: Ctrl+H 009: Ctrl+I or Tab 010: Ctrl+J or ...
0
votes
1answer
1k views

Bash script command to search and highlight text in terminal buffer

I need to simulate selecting (highlighting) text that is in the terminal buffer. It's long past stdout so all the grep/awk/sed/redirection stuff is not relevant AFAIK. Plus I don't want it highlighted ...
2
votes
1answer
120 views

How to automate a keystroke to a cli terminal appilcation like ranger?

I'd like to send a keystroke to ranger, when I have ranger running and have gotten it's PID with: Output of ps aux | grep '[/]usr/bin/python -O /usr/bin/ranger': chris 5054 3.1 0.1 116248 ...
1
vote
1answer
72 views

What libraries/files are needed for ncurses refresh() under a chroot environment in Ubuntu 16.04

I tracked down my issue to the following point. If I run my app by itself it works fine. However if I chroot it, it seems to work fine until the current game ends and then it core dumps calling the ...
0
votes
1answer
750 views

ncurses screen/tmux-256color

I have my term set to tmux-256color through .tmux.conf, but I can't get 256 color mode in an ncurses app working. According to this post it should be supported by now. xterm-256color works perfectly ...
3
votes
1answer
2k views

Detect terminal resize ncurses, without compiling with --enable-sigwinch

On Arch --enable-sigwinch isn't compiled into ncurses. According to this forum post it can be used to detect a terminal resize. Getting them to turn that option on doesn't seem to be available without ...
2
votes
1answer
1k views

Ncurses not displaying window border correctly in gnome-terminal

I am learning how to use ncurses, and I have noticed that for some reason, in gnome-terminal (on arch) ncurses window borders are not being displayed properly. It seems to work fine in xterm. Not ...
2
votes
1answer
603 views

Linux terminal skipping some (repeating/whitespace) characters

In some console applications my Linux server has started "stripping" certain repeating characters, affecting the user interface significantly. Here are a few examples: This htop view has ...
3
votes
0answers
63 views

Which terminals or terminal emulators support hardware windows?

terminfo(5) manual page describes a set of capabilities wnum (maximum number of definable windows), cwin (define a window), wingo (go to window), wind (resize current window), but only one terminal ...
2
votes
2answers
151 views

Comparing current terminfo database against a terminfo source file

How can we compare all available terminfo entries (full current compiled database) against a terminfo source file ? The infocmp utility has the -F option but it needs two files to be compared, but ...
8
votes
2answers
1k views

Why END key does not have terminfo entry?

On a Debian system pressing END key generates ^[[F: $ showkey -a Press any keys - Ctrl-D will terminate this program ^[[F 27 0033 0x1b 91 0133 0x5b 70 0106 0x46 But why this ...
0
votes
2answers
4k views

Library Files Not Found, even though they are listed in ldconfig

This is a head scratcher. Below is the output of ldconfig -p | grep libncur* : libncursesw.so.5 (libc6,x86-64) => /usr/lib64/libncursesw.so.5 libncursesw.so (libc6,x86-64) => /usr/lib64/...
0
votes
1answer
773 views

Set terminal TTY line settings while a process is running

When I need to configure terminal line settings when the terminal shell is available, I use stty. When I attach a debugger to a process that's running curses, the current tty settings get in the way ...
0
votes
2answers
206 views

Linux console reverse is in low contrast

Is it possible to change the contrast of the reverse mode of Linux Console ? I would like something in high-contrast, like pure black and pure white. The current reverse mode uses a dark-gray as ...
1
vote
1answer
954 views

Can not find screen and how to install it without network and administration?

I am working on an HPC with LSF job system. screen works fine on logon node and most of the computation nodes which I can ssh into them. which command shows that screen is located under /usr/bin. ...
1
vote
1answer
358 views

`crontab -e` “ruins” terminal

After running crontab -e, My terminal starts acting strange, where characters aren't printed in the correct position. Starting and exiting an ncurses application (like vim and nano) doesn't help, nor ...
0
votes
1answer
1k views

Try to install lib32-ncurses-compat-libs 6.04 on Antegros

When I try to install lib32-ncurses5-compat-libs under Antegros (Arch derivate) I get an error message while checking the PGP signatures. (The error message is in german, but it states, that the PGP ...
1
vote
2answers
1k views

Can't get Qemu output through SSH

Short Version I want to run Qemu on a remote machine using ssh. With this command I am able to see some boot messages but I can't manage to get vm the login prompt in my local terminal. qemu-system-...
1
vote
1answer
289 views

Curses interface has blank spaces under GNU Screen and ssh

I'm trying to run an application sbopkg that uses a curses interface in an ssh session running under GNU Screen (Tmux also has the same behavior). If I run ssh directly from the terminal emulator (...
3
votes
1answer
905 views

Is there a way to provide “overrides” to a terminfo entry?

At least in Linux, on RedHat, the provided xterm terminfo entry is buggy: for whatever reason, they use an initialization sequence via is2 capability that forces an 80-column screen (See CSI ? n l). ...
1
vote
2answers
157 views

Unable to display Greek letters on Mutt 1.7

I recently installed mutt on Linux Mint 18 using apt. I configured it and it worked great for all my three accounts. Then I realized I had mutt version 1.5 while version 1.7 is the latest one. I ...
4
votes
1answer
3k views

Ncurses over ssh - will they be displayed?

I'd like to create a small terminal utility requiring a bit of very simple graphics. Therefore I'd like to use ncurses. Now what I'm wondering is: will a ncurses program or python script that uses ...
7
votes
2answers
2k views

How can I use terminfo entries on FreeBSD?

On my local Linux machine, I'm using termite (VTE-based). It comes with its own terminfo file (xterm-termite), which is not distributed with ncurses by default. I try to connect to a remote FreeBSD ...
2
votes
1answer
182 views

.desktop file for ncurses application

I am trying to create a .desktop file for the calcurse ncurses calendar application: [Desktop Entry] Version=1.0 Type=Application Name=calcurse Comment=an ncurses calendar TryExec=calcurse Exec=...
1
vote
4answers
4k views

Display images in console (curses)?

What approach can be used to display an image in a console (no X windows)? For example, I can use curses/ncurses to divide a console into different panes, but in some situations I would like to ...
6
votes
3answers
3k views

Detecting shift + keyup/down in the terminal

How do I do this? I want a terminal menu where shift+up or shift+down selects multiple lines. ncurses seems to have problems. I don't necessarily need an advanced terminal library. I just want to ...
2
votes
1answer
1k views

Installing tig and ncurses without root privileges

I don't have root privileges on our servers but I would like to install tig. Downloading the source and running ./configure --prefix=$HOME/pkg gives me configure: error: ncurses not found Okay, ...
1
vote
1answer
39 views

How to make program which will react on button pressing (such as “more” on 'q') [closed]

I' m trying to realize, how does work pg\more\less utilities. For example, cat somebigfile | more. More now in interactive mode. His fd table is: 0 (read pipe from cat) 1 (stdout) 2 (stderr) I can ...
6
votes
2answers
410 views

Parse terminfo u6 string

Looking at terminfo and Parameterized Strings. Some examples from infocmp -1 xterm: cud=\E[%p1%dB, given argument 13: \E =><ESC> [ => [ %p1 PUSH parameter 1 (13) onto stack %d POP and print ...