Skip to content

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

@grymmjack

Description

@grymmjack

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions