1
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+.
Do you want to change the TTY? Like you do with ctrl+alt+fn? – fmanco – 2012-07-06T18:54:49.017
@criziot No, I want to change windows inside a GNU Screen session – lzm – 2012-07-06T18:59:18.827
Sorry. I miss the "screen" part. Maybe this can help.
– fmanco – 2012-07-06T19:03:25.493That helped (ctrl-v), but I still cant get it to work. I also tried the instructions here with no success.
– lzm – 2012-07-06T19:13:10.7471Nice you found a solution. But don't put it the in the Question. Answer your own question. – fmanco – 2012-07-06T21:08:57.647