Clear screen cls

benbaker7

Active member
In gw basic, cls does exactly that. Picaxe basic doesn't seem to support cls, although cr and lf are supported. Is there a work around?
 

bpowell

Senior Member
Yeah, it really depends on the display interface ... if you want to clear an ANSI interface, you can use:

Code:
sertxd ("\033c")
And that'll send a clear-screen command to the terminal. This works for me on PUTTY. Doesn't work on the PICAXE built-in serial monitor; for the PICAXE serial monitor you'll want to:

Code:
sertxd (0x0c)
And then In "Settings" of your terminal, Special Control Code Functions, and select the "Clear Screen on FF [0C]" option. You *may* also want to ensure Settings > "Display non ASCII as HEX" is de-selected to make it look cleaner.
 
Top