Steve - I see it working but I'm still a little lost on why that works. Why didn't CLS wipe out the old Color 0,0? If CLS only clears text and graphics on a screen (and NOT clear color settings), then what role does it play in color settings? Seems in this case removal or adding more CLS commands did affect the visibility of the blinking curser.
It appears, if you completely remove the CLS from Berts code, you do get the blinking WHITE curser - makes complete sense to me because the color commands then run one after the other (color 0,0 : followed by color 15,0) The last one giving the blinking white curser. But if you seperate those two color commands with a CLS, the former foreground color is chosen by the computer. color 4,0 :ClS:Color 15,0 gets us a RED blinking curser.
Not a big deal but is one of those things that make you go Huuuum.
Why it works is like this:
That prompt (blinker as we’re calling it) has to be *some* color. Generally, you want it to match your screen color as much as possible. By default, your screen starts out with white as the foreground, and the blinker is White (on background color).
Now, since Galleon figured you probably don’t intend to alter that blinker color every time you change the text color, he fixed it so it changes only when CLS is called.
In Bert’s case, he’s setting the foreground color Black, then calling CLS and it’s setting the blinker black:
COLOR 0 ‘foreground color black
CLS ‘clear screen, set blinker to black
Now, when INPUT is called, the background is black, and the blinker is a black foreground, on a black background... It’s actually faithfully doing its job — you just can’t see it as it’s always the same color as the background.
So why’s my second CLS work?
COLOR 15 ‘foreground color bright white
CLS ‘clear screen and set blinker to bright white
Now when printing on the black background, it’s a bright white/black toggle, which is nice and visible for us.
****************
Maybe we should see about adding in a _BLINKERCOLOR command, so people can manually change that color, without needing to use CLS to do so. ;)