PDA

View Full Version : VGA.spin or VGA_Text.spin - Clear Screen?



John Kauffman
11-19-2010, 09:06 PM
I have been unable to find an ASCII code or constant to clear screen in VGA.spin or VGA_Text.spin. This would be a code like 9 for tab.

The references I have found to ASCII control codes do not have a code for CLS listed.

Parallax_Serial_Terminal.spin uses:


CS = 16 ''CS: Clear Screen


For following


repeat
VgaText.str(STRING(16,"My Text"))
I get a delta symbol for the 16, plus MyText repeated on new lines

Thanks.

John Abshier
11-19-2010, 09:16 PM
From VGA_Text.spin


PUB out(c) | i, k

'' Output a character
''
'' $00 = clear screen


John Abshier

John Kauffman
11-19-2010, 09:28 PM
Very smooth, thanks.
How did you figure that out? Maybe next time I can solve a similar problem myself.

John Abshier
11-19-2010, 10:36 PM
I just looked at the code.

John Abshier

Ariba
11-20-2010, 03:57 AM
John Kauffman

If you load the VGA_Text object into the PropellerTool and click on ()Documentation under the Tabs, then you get the description extracted from the source code.

Andy