a programming library used for providing a text-based user interface
Questions tagged [ncurses]
120 questions
25
votes
4 answers
How can I check which terminal definitions are available?
The bulk of the question is in title, but to elaborate a little:
On most Linuxes I can find /usr/share/terminfo -type f. But on Solaris machine I have nearby - this directory doesn't even exist.
I could iterate over a list of terminals, and do…
user14382
16
votes
2 answers
How do interactive CLIs work?
How do command-line applications like Vim work? Specifically, how do they take control of the terminal in the manner they do? Also, for future reference, is there a specific term for applications that take control of the terminal the way Vim does?
Koz
- 163
- 1
- 4
16
votes
4 answers
Escape sequences in output of script called from ncurses application
I'm currently running mcabber as my Jabber client (which uses ncurses) in a tmux session on my homeserver. Locally i run iTerm2 as a terminal emulator, which supports the triggering of growl notifications through character escape sequences.
Note:…
BinaryBucks
- 261
- 2
- 6
12
votes
2 answers
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 ... which I have to parse in my head ... which is…
Vorac
- 2,957
- 8
- 36
- 53
12
votes
2 answers
Why does bash link to ncurses?
I think I've noticed this before but never thought about it much; now I'm curious.
> ldd /bin/bash
linux-vdso.so.1 => (0x00007fff2f781000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007f0fdd9a9000)
libdl.so.2 =>…
goldilocks
- 86,451
- 30
- 200
- 258
11
votes
3 answers
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 handle this and other than that my IO should be…
Petr Skocik
- 28,176
- 14
- 81
- 141
10
votes
2 answers
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 keychord is not in terminfo?
$ infocmp -1 | grep…
Igor Liferenko
- 703
- 4
- 16
8
votes
1 answer
Converting html table into ncurses-like ascii table?
I have some documentation in an html table. I want to convert the table to an ascii table, like you see when you get a mysql command line result back, like this:
+------------+------------+
| header | header |
+------------+------------+
|…
user394
- 14,194
- 21
- 66
- 93
8
votes
1 answer
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 ncurses be visible over ssh? I'd also like the…
Dean
- 384
- 1
- 4
- 11
8
votes
2 answers
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 server. Unfortunately, FreeBSD by default only uses…
Wilhelm Schuster
- 115
- 2
- 6
7
votes
2 answers
Log file visualizer in a Terminal (UNIX) (terminal logging replay)
I need to log in to various servers via ssh, and its a useful thing to log the terminal (even things in smitty menus/AIX and with correct/exact date/time). I already have a solution for this:
0)
# with root:
apt-get install bsdutils
# with the…
gasko peter
- 5,434
- 22
- 83
- 145
7
votes
1 answer
Suse 11 vs. Suse 10 difference impacting terminal colors?
I have my dotfiles versioned on github (shameless fork of other people's fine work). At work, I have them on a central linux server (SuSE Enterprise Linux 10). I rsync them from a central management server to target servers (they often don't have…
Scott Heaberlin
- 121
- 5
6
votes
2 answers
Parse terminfo u6 string
Looking at terminfo and Parameterized Strings.
Some examples from infocmp -1 xterm:
cud=\E[%p1%dB, given argument 13:
\E =>
[ => [
%p1 PUSH parameter 1 (13) onto stack
%d POP and print from stack as signed decimal => 13
Result:…
ibuprofen
- 2,781
- 1
- 14
- 33
6
votes
2 answers
Using curses with Linux console
I'm trying to use Curses on Fedora 12 to output status information to a VT (one of the terminals you can get to by pressing Ctrl+Alt+Fx).
When I start up my application on one of VTs ($TERM=linux) the lines for the boxes come out as the characters…
Joe
- 61
- 1
- 2
5
votes
1 answer
The deciphering of ncurses escape sequences
Help me to decipher the escape sequences created by ncurses library and catched by strace. I am exploring how ncurses interacts with terminal and want to understand its "handshake protocol". I have found some descriptions already, but didn't…
MiniMax
- 4,025
- 1
- 17
- 32