Progress
Client Deployment
Guide
Specifying the Cursor Motion Capability
The absolute cursor-motion (cm) capability allows Progress to move to any row and column on the display. The capability takes a string that is composed of two parts:
The conversion specifications allow Progress to convert an integer row value and an integer column value into the arguments the terminal expects.
The cm string syntax is exactly the same as that used in the standard UNIX
termcap
file, in which the conversion specifications follow the pattern of the UNIXprintf()
command. Table 5–11 lists the supported conversion specifications, each of which begins with a percent sign (%).
The following example is the cursor motion field for the wyse 370 terminal:
- \E[ — The standard ANSI console lead-in sequence (Escape, followed by a left square bracket). Progress transmits this literally.
- %i — Instructs Progress to add one to the row and column values to compensate for a terminal whose origin is 1,1.
- %d — Instructs Progress to send the row and column values to the terminal in ASCII format.
- ; — Separates the row value from the column value.
- H — A terminating character.
To create a cm string for a new terminal type, find the description of this capability in your terminal’s documentation to determine the control characters and the arguments it expects to move the cursor to a random spot on the display. The documentation specifies an algorithm for converting a row/column integer pair to the arguments it needs. The manual also specifies the order in which the row and column values are expected (typically row first), and the character to use to separate the two values. For example, to move to column 65, row 66, a terminal might expect the characters A and B, which have ASCII values of 65 and 66, respectively.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |