term - conventional names for terminals
Terminal names are maintained as part of the shell environment in the environment variable TERM. See sh(1), profile(4), and environ(5). These names are used by certain commands (for example, tabs, tput, and vi) and certain functions (for example, see curses(3CURSES)).
Files under /usr/share/lib/terminfo are used to name terminals and describe their capabilities. These files are in the format described in terminfo(4). Entries in terminfo source files consist of a number of comma-separated fields. To print a description of a terminal term, use the command infocmp -I term. See infocmp(1M). White space after each comma is ignored. The first line of each terminal description in the terminfo database gives the names by which terminfo knows the terminal, separated by bar (|) characters. The first name given is the most common abbreviation for the terminal (this is the one to use to set the environment variable TERMINFO in $HOME/.profile; see profile(4)), the last name given should be a long name fully identifying the terminal, and all others are understood as synonyms for the terminal name. All names but the last should contain no blanks and must be unique in the first 14 characters; the last name may contain blanks for readability.
Terminal names (except for the last, verbose entry) should be chosen using the following conventions. The particular piece of hardware making up the terminal should have a root name chosen, for example, for the AT&T 4425 terminal, att4425. This name should not contain hyphens, except that synonyms may be chosen that do not conflict with other names. Up to 8 characters, chosen from the set a through z and 0 through 9, make up a basic terminal name. Names should generally be based on original vendors rather than local distributors. A terminal acquired from one vendor should not have more than one distinct basic name. Terminal sub-models, operational modes that the hardware can be in, or user preferences should be indicated by appending a hyphen and an indicator of the mode. Thus, an AT&T 4425 terminal in 132 column mode is att4425-w. The following suffixes should be used where possible:
Suffix | Meaning | Example |
-w | Wide mode (more than 80 columns) | att4425-w |
-am | ||
-nam | ||
-n | ||
-na | ||
-np | ||
-rv |
To avoid conflicts with the naming conventions used in describing the different modes of a terminal (for example, -w), it is recommended that a terminal's root name not contain hyphens. Further, it is good practice to make all terminal names used in the terminfo(4) database unique. Terminal entries that are present only for inclusion in other entries via the use= facilities should have a '+' in their name, as in 4415+nl.
Here are some of the known terminal names: (For a complete list, enter the command ls -C /usr/share/lib/terminfo/? ).
2621,hp2621 | Hewlett-Packard 2621 series |
2631 | Hewlett-Packard 2631 line printer |
2631-c | |
2631-e | |
2640,hp2640 | |
2645,hp2645 | |
3270 | |
33,tty33 | |
35,tty35 | |
37,tty37 | |
4000a | |
4014,tek4014 | |
40,tty40 | |
43,tty43 | |
4410,5410 | |
4410-nfk,5410-nfk | |
4410-nsl,5410-nsl | |
4410-w,5410-w | |
4410v1,5410v1 | |
4410v1-w,5410v1-w | |
4415,5420 | |
4415-nl,5420-nl | |
4415-rv,5420-rv | |
4415-rv-nl,5420-rv-nl | |
4415-w,5420-w | |
4415-w-nl,5420-w-nl | |
4415-w-rv,5420-w-rv | |
4418,5418 | |
4418-w,5418-w | |
4420 | |
4424 | |
4424-2 | |
4425,5425 | |
4425-fk,5425-fk | |
4425-nl,5425-nl | |
4425-w,5425-w | |
4425-w-fk,5425-w-fk | |
4425-nl-w,5425-nl-w | |
4426 | |
450 | |
450-12 | |
500,att500 | |
510,510a | |
513bct,att513 | |
5320 | |
5420_2 | |
5420_2-w | |
5620,dmd | |
5620-24,dmd-24 | |
5620-34,dmd-34 | |
610,610bct | |
610-w,610bct-w | |
630,630MTG | |
7300,pc7300,unix_pc | |
735,ti | |
745 | |
dumb | |
hp | |
lp | |
pt505 | |
pt505-24 | |
sync |
Commands whose behavior depends on the type of terminal should accept arguments of the form -Tterm where term is one of the names given above; if no such argument is present, such commands should obtain the terminal type from the environment variable TERM, which, in turn, should contain term.
/usr/share/lib/terminfo/?/*
sh(1), stty(1), tabs(1), tput(1), vi(1), infocmp(1M), curses(3CURSES), profile(4), terminfo(4), environ(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |