12-05-2025, 06:10 PM
(12-04-2025, 07:08 PM)ahenry3068 Wrote:(12-04-2025, 06:51 PM)Dimster Wrote: What if the colors could be converted to strings... I know what your thinking .. brilliant idea...This isn't exactly the same. But you MIGHT find this useful.
So it would go like this
$Color:32
Presently it goes like this:
Color Brown
_Uprintstring (C,R)," This is the color brown"
C=C+75
Color Lime
_Uprintstring (C,R)," and now the color is Lime"
But, whatif
Color Brown
Lime$=str$(Color Lime)
_Uprintstring (C,R)," This is the color Brown"+Lime$+" and now the color is Lime"
Easy peasy right.
By the way. This is EXACTLY how the old Commodore platforms already work as well as anytime your doing stuff on a terminal. It's not really a full string but it is a control character that does stuff like move the cursor around, clear screens AND control colors. Programming tools for those platform often let you enter that string symbolically. That's where I got the idea for my tprint SUB in the first place. tprint cheats in a manner of speaking in that it uses the color command internally. But for usage it lets me write my code the way I'm used to on other platforms !

