• 0

Sinclair ZX Spectrum - 'CLS' command...


Question

I've been trying to find out what the 'CLS' acronym represents for Sinclair ZX Spectrum BASIC.

I know what it does, it clears the screen, but that would make 'CTS'... does it mean 'Clear Le Screen'. That would make a French-English Hybrid Acronym, however.

Does it mean 'Cathode Line Scan' or 'Clear Line Scan' or 'Clean Line Scan'...?

I was only, like, about 10 when I learnt this, so I always think it means 'Clear Le Screen' for some reason.

Cheers,

Keith

Link to comment
https://www.neowin.net/forum/topic/524497-sinclair-zx-spectrum-cls-command/
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  simpleyred said:

I think it actually means "Clear Screen" CLear Screen

You're right.

Let's look at an example of this. Use NEW to clear the previous
program from the +3, select +3 BASIC, then type in and run this
program. (This is clearly meant for two people to play!)...

	10 REM Guess the number
	20 INPUT "Enter a secret number",a: CLS
	30 INPUT "Guess the number",b
	40 IF b=a THEN PRINT "That is correct": STOP
	50 IF ba THEN PRINT "That is too big, try again"
	70 GO TO 30

Note that the CLS command (at the end of line 20) means 'clear the
screen'. We have used it in this program to stop the other person
seeing the secret number after it is entered.

For the OP: There are numerous manuals online for you to check out if you need/want to (there's still a massive following for old school computing/programming, but i'm sure you already know that).

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.