Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input ignored in OSX/Linux when $CONSOLE:ONLY #33

Open
grymmjack opened this issue Sep 15, 2022 · 0 comments
Open

Input ignored in OSX/Linux when $CONSOLE:ONLY #33

grymmjack opened this issue Sep 15, 2022 · 0 comments

Comments

@grymmjack
Copy link

grymmjack commented Sep 15, 2022

It seems that input or keypresses are ignored when using $CONSOLE:ONLY in OSX and Linux.

$CONSOLE:ONLY
PRINT "Sleep?"
SLEEP

Prints "Sleep?" then just hangs, and echos the keys I'm hitting forever.

$CONSOLE:ONLY
INPUT "Input"; I$

Works as intended.

$CONSOLE:ONLY
PRINT "Inkey?"
DO: K$ = INKEY$: LOOP WHILE K$ = ""

Prints "Inkey?" then just hangs, and echos the keys i'm hitting forever.

This works however:

_CONSOLE ON
_DEST CONSOLE
_SOURCE CONSOLE
PRINT "foo"
DO: K$ = INKEY$: LOOP WHILE K$ = ""

But it still shows a window, not just only the console output...

Additionally this also is ignoring input on OSX (tried this as a work-around):

' Setup the console
$CONSOLE
$SCREENHIDE
_CONSOLE ON
_DEST _CONSOLE
_SOURCE _CONSOLE

The issue seems related to $SCREENHIDE as when that is not in use it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant