Progress
Client Deployment
Guide
PROTERMCAP Syntax
This section explains the following:
Syntax rules that apply only to specific sections of the PROTERMCAP file are explained in context.
General Syntax
A PROTERMCAP entry is a single logical line that contains many fields. The syntax for an entry is as follows:
- Each field is terminated by a colon (:). (Use the octal equivalent \072 to specify a colon that is not a terminator.)
- Unless stated otherwise, a field cannot contain embedded separators. Spaces and tabs improve readability, but they are considered empty fields and must be terminated by a colon.
- Comment lines begin with a pound sign (#), and can only occur at the beginning and end of each PROTERMCAP terminal entry (that is, before the terminal name line and after the pointer to key functions line).
- To enhance readability, the PROTERMCAP file, as installed, contains as many physical lines as there are fields. Each physical line in the entry contains the following, in the order listed:
The following code fragment from the entry for the Wyse 370 shows the use of the colon, tab, space, backslash, and return characters:
String Syntax
Certain fields in the capabilities, key bindings, and color sections are specified using strings. Strings are typically a combination of command sequences, literal values, and encoded arguments that tell Progress how to control some aspect of the display.
Table 5–7 show the symbols that are common to all strings. Symbols that are unique to strings specified in the capabilities, key bindings, or color sections are explained in context.
Some terminal types require you to specify a delay period, also called a padding constant, with certain string capabilities. The delay, in milliseconds, gives the terminal adequate time to execute the command. Specify this delay as an integer value after the equals sign (=) in a string, as shown in the following example:
This tells Progress to wait 20 milliseconds after sending the cursor motion (cm) command sequence.
You can optionally follow an integer delay value with an asterisk (*) for commands that affect more than one line of the display. In this case, Progress delays the specified time for each line affected by the command. However, this significantly degrades performance and usually is not required.
When you specify proportional delay, you must specify an integer as the delay in a string field. It cannot have a fractional part; for example, a delay of 1.5* is not valid.
NOTE: Do not specify a padding constant with the GS, GH, GV, GE, G1, G2, G3, and G4 capabilities.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |