SWI-Prolog
Is there a way to drain STDIN by reading characters in non-blocking mode?
Help!
how-to
,
character-io
swi
March 15, 2021, 12:37am
3
you may also want to check with_tty_raw/1, as pointed out by Jan here:
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Get_single_char for current input stream
Help!
12
1279
April 3, 2019
Timeout option in read_term according to call_with_time_limit/2 ? (How to check for non-blocking input.)
Help!
6
404
September 19, 2019
I want to read a stream that contains newlines to end-of-file character
Help!
how-to
16
2078
September 7, 2020
Something similar to _kbhit()?
Help!
9
474
January 21, 2023
How does one read keyboard input using SWI-prolog without local echo, specifically the arrow keys?
Help!
6
3076
November 6, 2020