VDU 12

From BeebWiki
Revision as of 22:47, 27 November 2023 by Soruk (talk | contribs) (Behaviour difference in BB4W and BBCSDL compared to Acorn in VDU5 mode)
Jump to: navigation, search

Clear text area.

VDU 12
Syntax VDU 12
Keyboard equivalent CTRL L
Description Clears the text area of the screen.

Description

This code clears the text area of the screen and moves the text cursor to the top left. The text window is cleared to the "Text background colour" which is normally black. The BASIC statement CLS does a VDU 12.

On Acorn/BBC MOS and RISC OS, and Matrix Brandy, in VDU 5 mode this code clears the graphics window and is synonymous with VDU 16 (CLG). In BB4W and BBCSDL, this code clears the text window irrespective of VDU 5 mode.