[Info-vax] The option to the Cobol foreground-color/background-color options
Dave Froble
davef at tsoft-inc.com
Sat Aug 14 12:00:27 EDT 2021
On 8/14/2021 10:46 AM, Jan-Erik Söderholm wrote:
> Den 2021-08-14 kl. 14:43, skrev Jan-Erik Söderholm:
>> Hi.
>>
>> When defining screens using the "screen section" in Cobol,
>> one can add "foreground-color is n" and "background-color is n".
>>
>> Now, the numeric parameter n has valid values between 0 and 7.
>> But our terminal emulator (and the ANSI/VT ESC sequence standard)
>> has 16 settings. In our emulator (Extra!) they are 0-15.
>>
>> 0="black"
>> 7="white"
>> 15="bright white"
>>
>> If I try to set the value to 15 I get:
>>
>>
>> %COBOL-F-SCRCOLVAL, FOREGROUND-COLOR or BACKGROUND-COLOR clause
>> value must be between 0 and 7 inclusive.
>>
>> We are looking at options like redefining "colour 7" in Extra!
>> to be 255,255,255 (pure white) instead of the current 192,192,192
>> which results in a light grey background.
>>
>> I'll ask VSI directly also if this restriction can be expanded
>> to include all colour options as can be seen here:
>> https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
>> but thought I'd just ask if someone have seen this before
>> and might have some other solution.
>>
>> Regards,
>> Jan-Erik.
>>
>>
>
> I have added one additional request to VSI. An option in the
> "screen section" that simply disables all colour changing
> commands from the compiler. Our default colours in the
> terminal emulator are OK and do not need any changes.
>
> Something like:
>
> screen section.
> 01 scrPageHeader blank screen no-color-changes.
> 02 value "Hello world - Screen section" line 2 column 1.
>
> Or something similar...
>
>
So what you're saying is that Cobol knows better than you what the
screen colors should be?
Got to wonder how that survived this long ...
--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486
More information about the Info-vax
mailing list