Visible bell mini-Howto: Basic Concepts About Termcap and Terminfo
4. Basic Concepts About Termcap and TerminfoThe file /etc/termcap is a text file that lists the
terminal capabilities. Several applications use the
termcap information to move the cursor around the screen and do
other screen-oriented tasks. tcsh, bash, vi and all
the curses-based applications use the termcap database.The database describes several terminal types. The TERM environment variable selects the right behaviour
at run-time, by naming a termcap entry to be used by
applications.Within the database, each capability of the terminal appears as a
two-letter code and a representation of the actual escape sequence
used to get the desired effect. The separator character between
different capabilities is the colon (":"). As an example, the audible
bell, with code "bl", usually appears as "bl=^G". This sequence
tells that the bell sound is obtained by printing the control-G
character, the ASCII BEL.In addition to the bl capability, the vb capability is
recognized. It is used to represent the "visible bell". vb is
usually missing in the linux entry of the termcap
file.Most modern applications and libraries use the terminfo database
instead of termcap. This database uses one file per terminal-type
and lives in /usr/lib/terminfo; to avoid using huge
directories, the description of each terminal type is stored in a
directory named after its first letter; the linux entry,
therefore, is /usr/lib/terminfo/l/linux. To build a
terminfo entry you'll ``compile'' the termcap description;
refer to the tic program and its manual page.
i
Wyszukiwarka
Podobne podstrony:
visual bell pl 8visual bell 8 q46jeyxjx4qlbajrd4coeh5h6xkzndblpvkx7aa q46jeyxjx4qlbajrd4coeh5h6xkzndblpvkx7aavisual bell plvisual bell 2 7uyeu6iv7q23ovlwq52gke36yt46jiydylcpjsi 7uyeu6iv7q23ovlwq52gke36yt46jiydylcpjsivisual bell pl 1visual bell pl 2visual bell 5 oovhlxjlj2wr6izrt7p7ax6okno2ccmjiaiuy4a oovhlxjlj2wr6izrt7p7ax6okno2ccmjiaiuy4avisual bell pl 3visual bell pl 6visual bell pl 10visual bell 7 7mwbuybvfgv36u6kcnegjnm3ph7stetaj7rf7by 7mwbuybvfgv36u6kcnegjnm3ph7stetaj7rf7byvisual bell pl 9visual bell pl 9visual bell 1 yg6ecaysoyqc6jbkj4f6geboudcm422f72rl7ri yg6ecaysoyqc6jbkj4f6geboudcm422f72rl7rivisual bell xsvt734qpwvcjgzmtmfkaurjwqzymbihs6fobhq xsvt734qpwvcjgzmtmfkaurjwqzymbihs6fobhqVisual Bell pl (2)visual bell 6 b5fqwyx5z2z3lwk5m6taur2qm5p6zjk4cctzwoa b5fqwyx5z2z3lwk5m6taur2qm5p6zjk4cctzwoavisual bell pl 4visual bell pl 7więcej podobnych podstron