VDU 12

From BeebWiki
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 Richard Russell's BBC BASIC for Windows and BBCSDL, this code clears the text window irrespective of VDU 5 mode.