[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
@R
) The Clear Screen, Cursor Stays command works in any video mode. It is exactly like the Clear Screen, Home Cursor command, except that the position of the cursor is not changed.
In text mode (Cogsys mode 0), the screen is cleared by writing spaces to
all positions. In Mode 1, zero (black) is written to all pixels. In Mode
2, however, the screen is set to the color specified by the contents of
the Cogsys variable COGVAR_CLEARCOLOR
, which is variable number
, by default. All Cogsys variables are
set to zero initially; so the default Mode 2 behavior is to create a
black screen.
@R
@R
COGVAR_CLEARCOLOR
.
The position of the cursor is not changed.
@R
only worked in text mode, and the now now-obsolete
#H
command was used to clear the video modes. Cursor positioning with #H
was mode dependent--in 256-color modes (what is now called Mode 2, then Mode 101), the
cursor was homed. In other modes, it was not.
Thus, references to the #H
in 256 color modes should be replaced with
@C
. References to #H
in other graphics modes should be
replaced with @R
.
@R
1000 times in text mode
press return to erase this text,
but#R@R continue writing at same position.
%M2$AV=10@R
COGVAR_CLEARCOLOR
variable to 10,
which is the standard palette index (A. Standard Palette) to green. The @R
clears the screen
to green, and the cursor does not move.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |