INPUT command doesn't wait for key release
Posted: Tue Jan 28, 2025 6:57 pm
				
				When using INPUT$ or INPUT commands using the COCO3 compiler, as soon as you press a key it fills up the line of text. Like it doesn't wait for a key release so you can type the next character.
For the example below, you press a key and then the program ends showing you entered the same key 10 times.
Would you use the DEFINE INPUT/KEYBOARD DELAY command? If so, what is a good example of how to use it?
			For the example below, you press a key and then the program ends showing you entered the same key 10 times.
Would you use the DEFINE INPUT/KEYBOARD DELAY command? If so, what is a good example of how to use it?
Code: Select all
   
   CLS
   CLEAR KEY
   PRINT "PLEASE TYPE IN TEN CHARACTERS"
   PRINT
   v=INPUT$(10)
   PRINT "YOU TYPED: ";v