? on using TV_TEXT object
AGCB
Posts: 327
in Propeller 1
I don't understand how to set the column/line using the out method of TV_TEXT
I.E.
$0A = set X position (X follows)
I've tried comma separating, parenthesis , you name it and can't figure it out.
What would be the instruction line in the top object for setting the column to 5 ? example please
Thanks
Aaron
PUB out(c) | i, k '' Output a character '' '' $00 = clear screen '' $01 = home '' $08 = backspace '' $09 = tab (8 spaces per) '' $0A = set X position (X follows) '' $0B = set Y position (Y follows) HOW TO DO THIS??? '' $0C = set color (color follows) '' $0D = return '' others = printable characters
I.E.
$0A = set X position (X follows)
I've tried comma separating, parenthesis , you name it and can't figure it out.
What would be the instruction line in the top object for setting the column to 5 ? example please
Thanks
Aaron
Comments
It is the same as the vga_text i used a lot of time:
text.str(string($A,5,$B,11,$C,8,"Your tekst"))
Greeting Abraham Vreugdenhil
I did a similar thing in the LCD Spin Driver like this I can't seem to figure out how to do it in TV_TEXT though
out($0A)
out(x)
out($0B)
out(y)
These are all functionally equivalent: out, tx, char. They send a single byte to the device involved. It would have been nice to use the same name for the same functionality, but they're what we have. I've often modified various display drivers to include an out method in addition to whatever was provided ... for my own convenience.
That's what I wanted. "They send a single byte to the device involved" I was trying to send more than one byte at a time.
Aaron