I'm trying to use the f-keys to switch windows on GNU Screen/PuTTy, but I can't get it to work.
This is my current .screenrc:
bindkey -k k1 select 1
bindkey -k k2 select 2
bindkey -k k3 select 3
(...)
Changing the PuTTy keyboard options to "XTerm R6" did not work. I also don't know how discover what keycode is being received by screen when I press a key on Putty.
Edit:
Problem solved! Turns out I had to close and reopen the screen session for the configuration to take effect (I was detaching and reattaching).
My current .screenrc is:
bindkey "\033OP" select 0
bindkey "\033OQ" select 1
bindkey "\033OR" select 2
bindkey "\033OS" select 3
bindkey "\033[15~" select 4
bindkey "\033[16~" select 5
bindkey "\033[17~" select 6
bindkey "\033[18~" select 7
bindkey "\033[19~" select 8
And PuTTy is set to VT100+.