Difference between revisions of "VDU 12"

From BeebWiki
Jump to: navigation, search
m (Description)
(Behaviour difference in BB4W and BBCSDL compared to Acorn in VDU5 mode)
Line 17: Line 17:
  
 
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 [[BBC BASIC|BASIC]] statement [[CLS]] does a VDU 12.
 
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 [[BBC BASIC|BASIC]] statement [[CLS]] does a VDU 12.
 +
 +
On Acorn/BBC MOS and RISC OS, and Matrix Brandy, in [[VDU_5|VDU 5]] mode this code clears the graphics window and is synonymous with [[VDU_16|VDU 16]] (CLG). In BB4W and BBCSDL, this code clears the text window irrespective of VDU 5 mode.
  
 
[[Category:VDU commands]]
 
[[Category:VDU commands]]

Revision as of 23:47, 27 November 2023

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.