The action of ACUCOBOL-GT on a terminal with non-hidden attributes is determined by the setting of the RESTRICTED_VIDEO_MODE runtime configuration variable. This variable can take several different settings to control the rules ACUCOBOL-GT uses for these terminals.
By default, the RESTRICTED-VIDEO-MODE value is zero, which causes the Terminal Manager to ignore attributes other than intensity; the application will run correctly, but without any video attributes. This is convenient when you are running a program that has not been written to conform to the following rules.
To use video attributes with these terminals, you must set RESTRICTED-VIDEO-MODE to a non-zero value; the syntax is:
RESTRICTED-VIDEO-MODE value
Optional values are:
1 | When the variable is set to 1, the Terminal Manager uses rules that tend to emphasize getting the fields in the right location over getting all the attributes
correct. These rules are as follows:
|
3 | When RESTRICTED-VIDEO-MODE is set to 3, the Terminal Manager follows all the rules listed under value1 except for rule (c). This causes all ACCEPT and DISPLAY statements that reference column 1 to be placed in column 2. This setting prevents you from placing data in column 1, but causes all fields placed in column 1 to line up vertically regardless of which attributes they use. |
5 | When RESTRICTED-VIDEO-MODE is set to 5, the Terminal Manager follows all the rules listed under 1 except for rule (b). The attribute character is placed in the first position of the field, and the field is moved to the right one character. This setting will cause all fields to shift to the right by one, but will not overwrite data if two fields are adjacent. |
7 | When RESTRICTED-VIDEO-MODE is set to 7, the Terminal Manager follows all the rules listed for 1 except for rules (b) and (c). Thus, every ACCEPT and DISPLAY will always be preceded by an attribute character, and this character will always occupy the first field position. This value emphasizes getting the attributes correct over getting the fields in the correct screen location. |
These rules give a certain amount of flexibility, but also have restrictions.