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