ContentsIndexPreviousNext

4.4 The Display Interface

The Terminal Manager's keyboard interface has been discussed above. The display interface can also be configured. Its task is to implement, for a particular terminal, those program instructions that specify display attributes. You can accomplish most desired display options by defining, in the terminal database file, the actions that terminal function codes will take. You can specify some other display options by assigning values to special keywords in the ACUCOBOL-GT runtime configuration file.

The steps listed below describe, in a simplified way, the overall process from COBOL statement to screen display:

Function Code Generation

1. The COBOL program sends output to the screen. (For example, the COBOL statement might be: DISPLAY data-item HIGH.)

2. The runtime configuration file may specify an attribute for the DISPLAY keyword. (Continuing with the example, the configuration file might include this entry: COLOR-MAP High=Blue.)

3. The Terminal Manager maps the COBOL attributes to terminal function codes. (High=HI Blue=C2)

Function Code Interpretation

4. The terminal database file maps the function codes to a hardware signal. (HI=\E[0;1m C2=\E[34m)

5. The Terminal Manager sends a hardware signal to the screen. (\E[0;1m \E[34m)

Final Result

6. The display function is executed. (The data item characters are displayed at high intensity in blue.)

This section and section 4.5 describe the runtime configuration file options. Section 4.6 describes the terminal database file function codes and values.

More:

4.4.1 Adding Color

4.4.2 The SCREEN Option

4.4.3 Additional Configuration Variables

4.4.4 Double-Byte Character Handling