Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>cls clear screen</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CLS                      Clear Screen

 CLS [0 | 1 | 2]

    Clears the screen, as described below, and returns the cursor to the
    Home position (row 1, column 1).

           0    CLS 0 clears all text and graphics.

           1    CLS 1 clears just the graphics viewport, if a VIEW
                statement has been issued. If no VIEW statement has been
                issued, CLS 1 clears the entire screen.

           2    CLS 2 clears just the text window. The bottom screen line
                (line 25 or line 43) is left unchanged.

   ----------------------------------------------------------------------

      Notes:    CLS with no argument clears the entire screen, unless a
                VIEW statement has been used to create a viewport in
                graphics mode--in which case CLS clears only the current
                viewport.

                CLS resets the "last point referenced" (LPR) so that the
                next graphics command that uses the STEP option references
                the center of the screen.

                In text mode, CLS clears the active page to the background
                color. In graphics mode, CLS clears the entire screen
                buffer to the background color.

                Other ways to clear the screen include SCREEN, WIDTH, and
                Ctrl-Home.

See Also: COLOR SCREEN VIEW

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson