A special string field, tc, can be placed at the end of an entry with the name of a similar terminal. The Vermont Views routine will append the definition for the similar terminal to the end of the present definition. The combined length of the two definitions must be less than 3072 bytes. Commands specified first will always override commands specified later.
Only a single tc will be processed. If an included entry also has a tc specified it will not be read.
Table 58.3: vvtermcap Cursor-Motion Formatting Conventions
| %d | As in printf() |
| %2 | Like %2d in printf() |
| %3 | Like %3d in printf() |
| %. | Like %c in printf() |
| %+x | Value += x, then does a %. |
| %>xy | If value > x then value +=y; no output |
| %r | Reverses order of row and column; no output |
| %i | Increments row/column (1 origin) |
| %% | Gives a single % |
| %n | Exclusive OR row and column with 0140 |
| %B | BCD (16*(value/10)) + (value%10); no output |
| %D | Reverse coding (value-2*(value%16)); no output |
A Boolean command in the similar-terminal entry can be cancelled by following its mnemonic with an '@'. For instance, "cl@" disables the clear screen control sequence. This convention is most useful if you are using the similar terminal field, since an '@' suppresses parsing of the capability in entries read later.
As an example, let's create a definition for a different console terminal attached to the IBM PC AT running XENIX. This new definition will be exactly like the old one except that there will be 132 columns.
|