You know when you press and hold a key, it will write once, pause, and then spam itself? I am wondering if this can be changed with C, and what is responsible (the terminal) for this behaviour, and if it will be local to the process.
Only thing I could find is some ubuntu forum describing how to do it in X (which implies the terminal is responsible for getting input to stdin)