When calling TIOCSCTTY, it helps to pass it an fd that's still open,
[sgt/putty] / unix / xkeysym.c
2003-04-27 simonSupport for non-ISO-8859-1 X keysyms. So in particular...