I'm reviving some old text mode programs where I used INKEY$ to deal with single character input such as with a Y-or-N response to a question. When run to a console window, it doesn't work. I went over the wiki page and see a mention of using _DEST _CONSOLE but that doesn't seem to change anything.
Here's a minimal sample program using some of the INKEY$ code from the wiki. If the first two lines are uncommented, the program does not respond to any keypress.
It looks as if the program window, as opposed to console window, is intercepting the keypresses and not sending them through to the console. You can see this if you just use "$CONSOLE" instead of "$CONSOLE:ONLY". If you give the program window focus, the keypresses go through.
Any guidance? Thanks.
'$CONSOLE:ONLY
'_DEST _CONSOLE
PRINT "Do you want to continue? (Y/N): ";
'semicolon saves position for user entry PRINT K$
'print valid user entry