[net.micro.cbm] cursor problem

hfjmf@hogpd.UUCP (J.FARBER) (01/16/84)

I want to read input from the keyboard a character at a time,
echo the input to the screen, and display a cursor at the current location.
Getting characters is no problem, but displaying the cursor is.

To enable the cursor, I poke 204,0.
This works for 'normal' text entry, but newlines and arrow keys often
leave an inverse cursor block on the screen, and sometime gobble up
the cursor until another character (or several) is typed.

It looks like there's some kind of timing/phase problem: The \n or
arrow keys move the cursor without resetting contrast of the previous
screen location.  (That's part of it, I think.)

Does anyone have a solution?

Here's a sample program:

	 5 poke 204,0	rem enable cursor
	10 get c$
	20 if c$="" then goto 10
	25 poke 204,1	rem disable cursor
	30 print c$
	40 goto 5

Jim Farber
hogpd!hfjmf