Friday, February 10, 2017

Repeated keys in Cygwin over Remote Desktop

When connected to a Windows PC over a Remote Desktop connection (aka RDP), and the connection has any slowness, the delays can trigger the key repeat timeout, resulting in extra keys being sent to Cygwin applications.

For example, I use cygwin at work, and everything works great. But when I'm at home, connected to my work PC via Remote Desktop, I was constantly having to correct repeated keys when the connection wasn't perfect. The xset command can fix this:

xset r rate 1000 250

This sets the initial repeat delay to 1000 ms (1 second), and the repeate at 250ms.