Tandy 1000 Basic Reference Manual page 125

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter
10 I
BASIC Ke.ywords
C OLOR/Text
Statement
COLOR [foreground]
,
[
background]
[,
border11
Selects the display colors for the foreground, background, and
border for displaying in text mode. To be in text mode, you must
have selected Screen Mode 0 with the SCREEN statement.
Foreground
is an integer in the range 0 to 31, specifying the
foreground color. Colors 16-31 cause blinking foreground.
To
fig-
ure the color, add 16 to the color numbers defined in the 16 Color
Set in Chapter 8.
Background
is an integer in the range 0 to 7, specifying the
background color.
COLORiText can use any of the colors in the 16 Color Set as
fore-
ground.
See Chapter 8 for more information.
Note: If you set foreground the same as background,
the characters are invisible.
Border
is an integer in the range 0 to 15, specifying the border
color.
If you omit any parameter, BASIC assumes the previous values
or the default values.
Examples
COLOR 0 , 7
selects black characters on a white background.
COLOR 1
, 0
selects blue characters on a black background.
COLOR 4 , 0
selects red characters on a black background.
123

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents