Skip to content

Commit 566bc73

Browse files
committed
Add CLS command doc
1 parent 1fa42a9 commit 566bc73

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

docs/cls.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#CLS
2+
3+
##Syntax
4+
5+
```
6+
CLS
7+
```
8+
9+
##Description
10+
11+
`CLS` is short for *CLear Screen*, and will do just that: it will clear the screen, setting the background
12+
with the current [PAPER](paper.md) color, and placing the Screen Cursor at (0, 0) - screen top-leftmost corner.
13+
14+
15+
##Examples
16+
17+
```
18+
REM sets the screen black, and INK white
19+
BORDER 0: PAPER 0: INK 7
20+
CLS
21+
PRINT "White text on black background"
22+
```
23+
24+
25+
##Remarks
26+
27+
* This sentence is compatible with Sinclair BASIC
28+
29+
##See also
30+
31+
* [PRINT](print.md)
32+
* [AT](at.md)
33+
* [PAPER](paper.md)
34+
* [BORDER](border.md)
35+
* [INVERSE](inverse.md)
36+
* [INK](ink.md)
37+
* [ITALIC](italic.md)
38+
* [BOLD](bold.md)
39+
* [OVER](over.md)

0 commit comments

Comments
 (0)