It seems this is a problem xterm, or xterm and gnome-terminal repond differently to a common problem. Test case:
1. Do a suspend and resume
2. Open an xterm and a gnome-terminal window
3. In the xterm window, hold down a key (I used p), and observe the key stream being output. Every now and then there is a halt in the output, which can last for many seconds.
4. In the gnome-terminal window, do the same thing. The keys are output normally.
It seems this is a problem xterm, or xterm and gnome-terminal repond differently to a common problem. Test case:
1. Do a suspend and resume
2. Open an xterm and a gnome-terminal window
3. In the xterm window, hold down a key (I used p), and observe the key stream being output. Every now and then there is a halt in the output, which can last for many seconds.
4. In the gnome-terminal window, do the same thing. The keys are output normally.