Difference between revisions of "VDU 12"
m (→Description) |
m |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 16: | Line 16: | ||
== Description == | == 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. | + | 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 22:50, 27 November 2023
Clear text area.
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.