The COLOR() function, available to the PRINT command, does not always seem to work. In this example, a numeric variable and a string containing some digits are both modified as expected, but a string containing only "!" remains as-is (in GRAPHICS 2, as yellow text; in GRAPHICS 0 text window, as non-inverse-video text).
graphics(2)
S=1234
print #6,"SCORE: "; COLOR(32) S
print "SCORE: "; COLOR(128) S
print #6,"TEST"; COLOR(32) "!"
print "TEST"; COLOR(128) "!"
print #6,"TEST"; COLOR(32) "123"
print "TEST"; COLOR(128) "123"
while 1
wend

The
COLOR()function, available to thePRINTcommand, does not always seem to work. In this example, a numeric variable and a string containing some digits are both modified as expected, but a string containing only "!" remains as-is (in GRAPHICS 2, as yellow text; in GRAPHICS 0 text window, as non-inverse-video text).