Shop OBEX P1 Docs P2 Docs Learn Events
VGA.spin or VGA_Text.spin - Clear Screen? — Parallax Forums

VGA.spin or VGA_Text.spin - Clear Screen?

John KauffmanJohn Kauffman Posts: 653
edited 2010-11-19 20:57 in Propeller 1
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.

Comments

  • John AbshierJohn Abshier Posts: 1,116
    edited 2010-11-19 14:16
    From VGA_Text.spin
    PUB out(c) | i, k
    
    '' Output a character
    ''
    ''     $00 = clear screen
    

    John Abshier
  • John KauffmanJohn Kauffman Posts: 653
    edited 2010-11-19 14:28
    Very smooth, thanks.
    How did you figure that out? Maybe next time I can solve a similar problem myself.
  • John AbshierJohn Abshier Posts: 1,116
    edited 2010-11-19 15:36
    I just looked at the code.

    John Abshier
  • AribaAriba Posts: 2,690
    edited 2010-11-19 20:57
    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
Sign In or Register to comment.