Termcap and Terminfo by John Strang, Linda Mui, Tim O'Reilly

Termcap and Terminfo



Termcap and Terminfo pdf free




Termcap and Terminfo John Strang, Linda Mui, Tim O'Reilly ebook
Page: 139
ISBN: 0937175226, 9780937175224
Format: djvu
Publisher: O'Reilly Media


Ncurses and other terminal programming libraries need to know what capabilities your terminal supports, like highlighting, underlining, blinking, and colors. Termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l. There are termcap and terminfo databases, there is X which has a say in the whole matter, and there are the individual applications themselves. NetBSD-6 will now sport the terminfo interface which removes a lot of the problems with the old termcap which is deprecated by The Open Group. Because vt100 compatible terminals have that concept of a "normal" and "application" mode, you either have to set the terminal to the mode you want to use, or find the termcap/terminfo sequences for both modes. The @ symbol tells screen to turn off the specified entries. After bit of digging I finally realised that it isn't enough to have entries for those terminal types in /usr/share/terminfo/*/*. Which will put the needed terminfo files in ~/.terminfo. Stty, prints or changes terminal characteristics, such as baud rate. Tic /usr/share/doc/rxvt-unicode-9.09/etc/rxvt-unicode.termcap. Angband only started supporting more than 16 colors fairly recently, and AFAIK very few variants pulled in that support. "ti" and "te" are termcap entries used to enter and exit the alternate buffer (man termcap or terminfo for more details). And then there are the terminals (xterm, gnome-terminal, KDE console, etc.). Capconvert, automated conversion from termcap to terminfo. Clear, clears the terminal's screen. It can also be used to compare capabilities. This entry was posted in Fedora, Linux. The historical termcap was replaced with a new terminfo. The /usr/bin/infocmp tool may be used to print terminfo definitions (from a database). The /usr/bin/tic tool generates terminfo databases.