Answer: C non-blocking keyboard input
Dobby33

Dobby33 @dobby33

Joined:
Feb 8, 2025

Answer: C non-blocking keyboard input

Publish Date: Feb 14
0 2

As already stated, you can use sigaction to trap ctrl-c, or select to trap any standard input.

Note however that with the latter method you also need to set the TTY so that it's in character-at-a-time rather than line-at-a-time mode. The latter is the default - if you type in…

Comments 2 total

Add comment