41
<CW>
Clear Window
Screen Handling & Text
Description
Turn all pixels off within a defined window
Parameters
None
Initial Value
All pixels are off
Modes
Row Mode only
Notes
This command also homes the cursor in the defined window area, equivalent to issuing a <HC>
command.
Apart from its main use in just clearing the contents of a window, it can also be used to create frames
to contain text and graphics. Using this technique is much faster than using a <BD> Box Draw
command in Pixel Mode.
Uses
The <CW> command allows:
•
A known starting point before updating a window
•
Creation of a simple border
Example
<RM>
Set Row Mode
<FS>
Turn all screen pixels on
<DW2,5,20,100>
Define a window two rows from top and bottom, 20 pixels in from
both sides
<CW>
Set all the pixels in the window area to off
See Also
BD
Box Draw
CS
Clear Screen
FW
Fill Window
HC
Home Cursor