| United States-English |
|
|
|
![]() |
MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 3 TERMINFO DatabaseCreating Device Descriptions |
|
The easiest way to create a new entry for a device is to find one that is similar, modify it, and compile it using the tic utility. The tic utility installs the new definition in the TERMINFO directory hierarchy. You can change the location of the directory hierarchy by redefining the TERMINFO environment variable. You can test your description in small segments using VI. Keep in mind that a unusual device may not be adequately described by TERMINFO or adequately tested by VI. A terminal can be defined as having certain capabilties that are equivalent to those of another terminal. These capabilities are then read from one terminal description into the other. The use capability names the terminal from which to read the capabilities. Any capabilities listed before the use string override those put in place by use. A capability that should not be used in the terminal desciption can be cancelled by typing an at sign (@) after the name of the capability. The following example bases the definition of a VT-100 terminal without automatic margins on a standard VT-100 terminal definition.
A crude test for getting the right amount of padding for insert-line (if not documented) is to comment out xon, edit a large file at 9600 baud with VI, delete 16 or so lines from the middle of the screen, and press the u key several times quickly. If the display becomes corrupted, insert-line requires more padding. Table 3-6 “Characters with Special Values” summarizes all the special characters sequences discussed to this point. Table 3-6 Characters with Special Values
Capability names are normally kept to two to five characters and normally comply with ANSI X3.64-1979. Each capability has a corresponding variable name used in the program to access it; for example, the variable defined for am is auto_left_margin. The Boolean, number, and string capabilities are listed in the tables on the following pages. Within these tables, each TERMINFO capability name is listed, along with the equivalent termcap name, the variable name, and a brief description. The #i symbol that sometimes appears in the description section of the table refers to the ith parameter. Additional tables sorted by variable name may be found in Table 3-20 “Boolean Capabilities”, Table 3-21 “Numeric Capabilities”, and Table 3-22 “String Capabilities” as a reference for programmers. Table 3-20 “Boolean Capabilities” lists the capabilities by the Boolean variable name; Table 3-21 “Numeric Capabilities” lists the capabilities by the numeric variable name, and Table 3-22 “String Capabilities” lists the capabilities by the string variable name. Table 3-7 “Boolean Capabilities” lists the Boolean capabilities. Table 3-7 Boolean Capabilities
Table 3-8 “Numeric Capabilities” lists the numeric capabilities. Table 3-8 Numeric Capabilities
Table 3-9 “String Capabilities” lists the string capabilities. Table 3-9 String Capabilities
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||