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
0
votes
1 answer

Delay in terminfo parameterized strings

In the manpage of terminfo, it is mentioned that $<> in the encoding for specifying delay in ms, and within it's angular brackets is the a number with at most one decimal place of precision. And with the following python script I confirmed that $<…
tkhurana96
  • 919
  • 7
  • 25
0
votes
1 answer

Why does terminfo disagree with read?

I'm using xterm. If I type infocmp $TERM | grep end, I see that kend=\EOF. However, if I type read, and then the End key, I see that the sequence \E[F is generated. This seems to be a problem with other keys, too. Surely the values should be…
blippy
  • 1,490
  • 1
  • 13
  • 22
0
votes
1 answer

osx _curses.error: setupterm: could not find terminfo database

I'm using python curses and developing under PyCharm. but whatever a simple curses program, it always gives me such an exception. what i had tried were: add export TERM="xterm-256color" and export TERMINFO="/usr/share/terminfo", but there was…
Crabime
  • 644
  • 11
  • 27
0
votes
1 answer

What do the @ (at symbols) in a terminfo manipulation code mean?

I'm trying to convert a terminfo string from xterm to something that will work with iTerm2 in order to get 24bit colors working in emacs. The investigating and research I've done so far leads me to believe that the terminfo manipulation codes I'm…
purpletonic
  • 1,858
  • 2
  • 18
  • 29
0
votes
1 answer

Can I use tparm() without tputs or putp

My understanding is that the function char *tparm(char *str, ...); just converts the given string str to an expanded parameterized version which will be fine to use with stdout outputting functions like printf or cout. But the man page mentions…
user964843
0
votes
1 answer

How to adapt output to changing terminal's width

I'm trying to write a function that would produce a simple widget when run in Python's console. This widget should be terminal-size-aware. After displaying the widget I will wait for user's keyboard input and adjust the content according to what the…
Pasha
  • 6,298
  • 2
  • 22
  • 34
0
votes
1 answer

Changing ncurses 6 "terminfo-dirs" after compilation/installation

There is a ncurses6 originally installed in a user home dir, let's say "/home/test", so a test environment was built over this ncurses path, a lot of (in development) apps were compiled and is working now, depending only of the current HOME env…
Luciano
  • 2,695
  • 6
  • 38
  • 53
0
votes
1 answer

How to specify multiple entries in TERM environment variable?

Reading through http://invisible-island.net/ncurses/terminfo.src.html it sounds as if it should be possible to assign multiple entries (e.g. "ansi+erase" and "ansi+cup") to the TERM environment variable. Is it possible to specify multiple…
Gili
  • 86,244
  • 97
  • 390
  • 689
0
votes
1 answer

How to use the Operator font with neovim?

I am trying to setup my neovim with the operator mono. I am running neovim in iterm2, so I have used the profile preferences to select the Operator font, and that is more or less working. However I would rather use my vimrc to specify the font for…
fraxture
  • 5,113
  • 4
  • 43
  • 83
0
votes
1 answer

How do you change terminal settings on Fedora 20 with no termcap file only terminfo

set and tset do not change terminal type from xterm-256 color to linux any ideas/
0
votes
2 answers

How to use Terminfo's Capability type correctly. Are monad transformers the answer?

I've been struggling to simplify a small program using System.Console.Terminfo. I've gotten as far as mappending multiple Capability together, but whenever I need to evaluate them, I have to use getCapability and then use a case to pattern-match the…
user2063685
  • 159
  • 6
0
votes
1 answer

If I login linux using serial port console, does it using the terminfo or termcap?

linux console implemented by the VT subsystem of the linux kernel, when I login in form the serial port console, does it using the terminfo or termcap?
dudengke
  • 489
  • 2
  • 6
  • 18
0
votes
0 answers

Does any terminal support \r (carriage return) and \b (backspace)?

I wrote nice PS1 formatter: PS1='\n===============================================\r$?|\u@\h \w \nbash# ' which shown prompt like: 0|user@desktop ~/devel/emacs =================================== bash# I use trick with \r to return cursor to the…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
0
votes
1 answer

Terminfo: left arrow is mapped to backspace code (8) on default OSX terminal. Why is it so? And how to change it?

I am writing simple terminal so I am trying to understand some basic things about control symbols, escape sequences and how all that is related to terminfo and termios. What I find awkward is that according to the input I have from tty and according…
Stanislav Pankevich
  • 11,044
  • 8
  • 69
  • 129
0
votes
1 answer

rxvt ignoring DECCKM sequence

I'm writing a CLI server. In my project I do the following (simplification): curses.setupterm("rxvt") smkx = curses.tigetstr("smkx") write_to_terminal_client(smkx) The detected smkx sequence is only "\E=" which matches the "infocmp rxvt" (a poor…
Marcin
  • 897
  • 1
  • 7
  • 19
1 2 3
8
9