terminfo programming

1. Name the terminal

The name of a terminal is the first information given in a terminfo terminal description. This string of names, assuming there is more than one name, is separated by pipe symbols ( | ). The first name given should be the most common abbreviation for the terminal. The last name given should be a long name that fully identifies the terminal. The long name is usually the manufacturer's formal name for the terminal. All names between the first and last entries should be known synonyms for the terminal name. All names but the formal name should be typed in lowercase letters and contain no blanks. Naturally, the formal name is entered as closely as possible to the manufacturer's name.

Here is the name string from the description of the AT&T Teletype 5420 Buffered Display Terminal:

   5420|att5420|AT&T Teletype 5420,
Notice that the first name is the most commonly used abbreviation and the last is the long name. Also notice the comma at the end of the name string.

Here is the name string for our fictitious terminal myterm:

   myterm|mytm|mine|fancy|terminal|My FANCY Terminal,
Terminal names should follow common naming conventions. These conventions start with a root name, like 5425 or myterm, for example. The root name should not contain odd characters, like hyphens, that may not be recognized as a synonym for the terminal name. Possible hardware modes or user preferences should be shown by adding a hyphen and a ``mode indicator'' at the end of the name. For example, the ``wide mode'' (which is shown by a -w) version of our fictitious terminal would be described as myterm-w. 5term( )5
Next topic: 2. Learn about the capabilities
Previous topic: Writing terminal descriptions

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004