Questions tagged [terminfo]

Terminfo is a database of terminal capabilities use by applications that require information about the terminal's features.

Terminfo is a data base describing terminals, used by screen-oriented programs such as nvi(1) and rogue(1).

Terminfo describes terminals by giving a set of capabilities which they have, by specifying how to perform screen operations, and by specifying padding requirements and initialization sequences.

127 questions
62
votes
3 answers

Using the "alternate screen" in a bash script

The alternate screen is used by many "user-interactive" terminal applications like vim, htop, screen, alsamixer, less, ... It is like a different buffer of the terminal content, which disappears when the application exits, so the whole terminal gets…
leemes
  • 44,967
  • 21
  • 135
  • 183
58
votes
13 answers

Screen: Cannot find terminfo entry for 'xterm-256color'

When I run screen on the remote host(running Linux), I obtain the following error: Cannot find terminfo entry for 'xterm-256color'. I am running terminal on Mac OSX Lion to access the remote host. I have googled to find out the solution to this…
Vinayak Agarwal
  • 1,350
  • 3
  • 15
  • 28
44
votes
8 answers

Home/End keys in zsh don't work with putty

I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty (which also emulates xterm) suddendly the home/end keys…
agnul
  • 12,608
  • 14
  • 63
  • 85
42
votes
6 answers

Setupterm could not find terminal, in Python program using curses

I am trying to get a simple curses script to run using Python (with PyCharm 2.0). This is my script: import curses stdscr = curses.initscr() curses.noecho() curses.cbreak() stdscr.keypad(1) while 1: c = stdscr.getch() if c == ord('p'):…
user1017102
  • 787
  • 1
  • 7
  • 14
33
votes
2 answers

Setting The Environment for System.in

I'm designing a console application for a server running RedHat. The end users should be able to run this app with any terminal of their choosing. (For example; Gnome Terminal, Putty SSH/ Telnet, MS Telnet Client and others). In most terminal…
flakes
  • 21,558
  • 8
  • 41
  • 88
32
votes
3 answers

How do I determine if a terminal is color-capable?

I would like to change a program to automatically detect whether a terminal is color-capable or not, so when I run said program from within a non-color capable terminal (say M-x shell in (X)Emacs), color is automatically turned off. I don't want to…
asjo
  • 3,084
  • 2
  • 26
  • 20
31
votes
3 answers

tmux man-page search highlighting

When I search in, for example, man ls while in a tmux session, the search strings don't appear highlighted - the page jumps down so that the search string is on the top line of the buffer, as expected, but it's not highlighted. Doing the same thing…
simont
  • 68,704
  • 18
  • 117
  • 136
27
votes
6 answers

bash script, erase previous line?

In lots of Linux programs, like curl, wget, and anything with a progress meter, they have the bottom line constantly update, every certain amount of time. How do I do that in a bash script? All I can do now is just echo a new line, and that's not…
Matt
  • 2,790
  • 6
  • 24
  • 34
24
votes
6 answers

Zsh zle shift selection

How to use shift to select part of the commandline (like in many text editors) ?
log0
  • 10,489
  • 4
  • 28
  • 62
15
votes
4 answers

ncurses- KEY_ENTER is fail

I've been trying to teach myself ncurses and I'm loving it so far. However, I'm trying to write a small little text editor like pico or nano. I've got it set up fairly well so far. I created a function to map the keys. No matter what I do I can not…
Jaron Bradley
  • 1,079
  • 3
  • 16
  • 24
13
votes
3 answers

top 'xterm': unknown terminal type

I have an error when run TOP command: >top 'xterm': unknown terminal type. > echo $TERM xterm > echo $DISPLAY DYSPLAY: Undefined variable. > cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.3 (Santiago) > ls…
Marco Rocci
  • 355
  • 1
  • 2
  • 10
12
votes
2 answers

tput: unknown terminal

I'm on AIX-6.1 and I'm trying to make use of tput inside my $PS1. I've confirmed I can't even run tput from the commandline. Following is my session: # tput unknown terminal "xterm" # echo $TERM xterm # tput -T ansi unknown terminal "ansi" In…
wasosa
10
votes
2 answers

ZSH Bindkey Reverse Lookup

Can anyone tell me what the key sequence is for these? I know if I do cat and type key presses I can get the code for it but how do I reverse that process to figure out what to press for beginning-of-line, for example? bindkey '^[^[[D'…
maletor
  • 7,072
  • 7
  • 42
  • 63
10
votes
1 answer

What is application mode in terminals/zsh/terminfo?

In several places I see some commands to ensure that terminal (?) is in application mode, then terminfo database to set/query key bindings will work. I tried to find what is this application mode, but I had no success. What is this application mode?…
vinipsmaker
  • 2,215
  • 2
  • 19
  • 33
9
votes
4 answers

Vertical tmux borders dashed only when using iTerm

At my new job I'll need to use a mac, and I'm trying to use tmux with iTerm version 2. While horizontal borders appear to be displayed with the proper ACS box-drawing characters[1], the vertical borders are dashed. This is not a problem in…
Tammer Ibrahim
  • 193
  • 1
  • 5
1
2 3
8 9