You need to use the tricks linked in this other thread.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Wait for a keypress | 12 | 11009 | November 15, 2025 | |
| Read input stream until the next white space? | 2 | 1754 | July 15, 2022 | |
| a=readuntil(STDIN,"\n") | 3 | 828 | September 12, 2023 | |
| Polling keyboard input looking for e.g. 'q' in a loop to 'gracefully' terminate execution | 2 | 1889 | December 9, 2016 | |
| Timed wait for key press | 14 | 970 | June 28, 2023 |