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

How can I find documentation/knowledge/mentorship/ancient tomes for terminal definitions? (getting vim terminal title setting to work with tmux)

I have scoured the internet for an explanation, but the cryptic terseness of t_ts and t_fs makes it impossible to find helpful information about how I can expect systems to work. Here is an overview of my existing knowledge, and I'd love it if…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
2
votes
1 answer

`%l` encoding in terminfo parameterized strings

I am implementing a parser in C++ for parameterized strings(which are used for specifying some terminal capabilities for a terminal). Then I came across this % encoding on the man page of terminfo: %l push…
tkhurana96
  • 919
  • 7
  • 25
2
votes
1 answer

how to set colors in terminal using terminfo

I'm trying to print colors using terminfo database and have successfully parsed the terminal database files present for each terminal. In my case I've gnome terminal which definitely supports colors. Now there are several commands in terminfo…
user964843
2
votes
1 answer

How many spaces to a tab on this tty

I have a perl script that is writing to stdout which is a tty. Is there a way to determine how many spaces to a tab on that tty?
pythonic metaphor
  • 10,296
  • 18
  • 68
  • 110
2
votes
2 answers

Obtain cursor color in terminal

Is there any way to determine what the color of the cursor is in a terminal running something like vim? I know that you can use tput cols and tput rows to determine the height and width of the terminal, are there similar tools for cursor…
Grioip
  • 31
  • 2
2
votes
3 answers

Is there a list of ANSI color escape codes somewhere in the standard libraries?

I write a lot of little helper scripts, and often these print coloured text in the terminal. For the simplicity of their packaging and distribution, I often want these little scripts to be without any dependencies. Hence I'm duplicating data like…
wim
  • 338,267
  • 99
  • 616
  • 750
2
votes
1 answer

Printing double-size characters with Ncurses

Many terminal emulators (xterm, Konsole) support double-size characters. Ncurses does not support this and as far as I know, ncurses will not print escape characters (\033 will be unescaped and printed in clear text). Is it possible at all to print…
matiasf
  • 1,098
  • 1
  • 9
  • 17
2
votes
2 answers

tput: unknown terminal "xterm-256color"

I'm running OS X 10.10.5. I'm getting an error trying to open a terminal: tput: unknown terminal "xterm-256color" This is obviously a missing termcap entry. $ port list ncurses ncurses @6.0 devel/ncurses Any ideas…
dbl001
  • 2,259
  • 8
  • 39
  • 53
2
votes
2 answers

yet another unknown terminal type

From Ubuntu, I open gnome-terminal, and ssh to a OS X. OS X version is: $ sw_vers ProductName: Mac OS X ProductVersion: 10.9.5 BuildVersion: 13F34 I have for example the file xterm-256color: $ ls…
user744629
  • 1,961
  • 1
  • 18
  • 27
2
votes
1 answer

Why does setupterm terminate the program?

This is sample program from "Beginning Linux Programming" book: #include #include #include #include int main() { setupterm("unlisted", fileno(stdout), (int *)0); printf("Done.\n"); …
Alex F
  • 42,307
  • 41
  • 144
  • 212
2
votes
1 answer

tmux, Solarized, and terminfo

This is a very specific issue but, based on what I've seen online, a surprisingly common one. I'm on a rather old version of Scientific Linux 5, which is based on Red Hat. I use vim with the Solarized vim color scheme, and my TERM environment…
Mike
  • 1,569
  • 2
  • 14
  • 20
1
vote
2 answers

Is there a tool to clean the output of the script(1) tool?

script(1) is a tool for keeping a record of an interactive terminal session; by default it writes to the file transcript. My problem is that I use ksh93, which has readline features, and so the transcript is mucked up with all sorts of terminal…
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
1
vote
3 answers

Unable to turn off automatic margins by termcap in Mac

I need to turn automatic margins off according the following statement from Screen's manual in my Mac If your terminal is a "true" auto-margin terminal (it doesn't allow the last position on the screen to be updated without scrolling…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
1
vote
1 answer

magic number in compiled format of tic

I am reading about the terminfo file format and the format of tic compiled files. I found the documentation of this format, but in this documentation they write about the first two bytes in the file as 1A 01 in order of precedence. To check, I…
idabsent
  • 21
  • 4
1
vote
3 answers

ncurses program using MinGW-w64 fails with "Error opening terminal: xterm"

I am trying to write a very simple ncurses program, just to play around with, using mingw-w64 on Windows 10. I installed the mingw-w64-x86_64-ncurses package with pacman, and am using the MSYS2 MinGW64 environment terminal. I have no experience with…
1 2 3
8 9