The Graham Utilities for OS/2 - Version 2


[Warpspeed]

[Table of Contents] [Index] [Previous] [Next]


SA - Screen Attributes

Summary

SA allows the user to specify the current screen attributes, or colours.

Icon

Command Line Format

Usage:  SA [bright] [blinking] [reverse] [underline]
          <colour> on colour
Parameters
bright
Specifies that the foreground colour will be bright. This is an optional parameter.
blinking
Specifies that the displayed characters will blink or flash. This is an optional parameter.
reverse
Specifies that the text to be displayed will be displayed in black on white, unless over ridden by a foreground/background combination. This is an optional parameter.
underline
Specifies that the text to be displayed will be underlined. This will only work on monochrome monitors. Colour monitors will display any underlined text in blue.
colour
Specifies the foreground colour. It can be any one of the valid colours. This is an optional parameter.
on colour
Specifies the background colour. It can be any one of the valid colours. This is an optional parameter.

The valid colours are:

Black
Red
Green
Yellow
Blue
Magenta
Cyan
White

Description

SA allows the user to specify the current screen attributes, or colours. It sets the current screen attributes so that any further displayed text will appear in those attributes unless overridden with a colour specification from another SA or similar command.

Examples

SA RED
This will set the current foreground colour to red. The background colour is set to black.
SA ON RED
This will set the current background colour to white on red. If the foreground colour is not specified, it will default to white.
SA Bright green
This will set the foreground colour to bright green on a black background.
SA REVERSE
This will set the current text colours to black text on a white background.
SA blinking red
This will set the current foreground text colour to blinking red on a black background.