Difference between revisions of "VDU 12"

From BeebWiki
Jump to: navigation, search
m (Description)
m
 
(One intermediate revision by the same user not shown)
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 Richard Russell's BBC BASIC for Windows and BBCSDL, this code clears the text window irrespective of VDU 5 mode.
  
 
[[Category:VDU commands]]
 
[[Category:VDU commands]]

Latest revision as of 23:50, 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 Richard Russell's BBC BASIC for Windows and BBCSDL, this code clears the text window irrespective of VDU 5 mode.