'get-char is block. I need a non-blocking version

It seems that get-char from console

val c = get-char(STANDARD-INPUT-STREAM)

is blocking. Also, it starts to return only when the user hit Enter.

Is there a non-blocking version?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source