Hi,
gg and G are always passed as is while Home, End and other grey/functional keys or combinations are encoded in a terminal-specific way.
The terminal-specific knowledge is stored in terminfo
database and is queried by applications using $TERM
variable. You can run
:echo $TERM
inside Vifm to see the value it actually receives.
If you don't pass the correct $TERM
value to the application, it will impede its ability to draw itself and/or process your input. Often you can get away with using an incorrect value because terminals agree on most of them.
I think Putty has a setting related to how it presents itself to the server via $TERM
. The value of $TERM
should start with putty
(just putty
might work too). You can see which values are known to your server like this:
$ cd /usr/share/terminfo/p/ && ls -x1 putty*
putty
putty+fnkeys
putty+fnkeys+esc
putty+fnkeys+linux
putty+fnkeys+sco
putty+fnkeys+vt100
putty+fnkeys+vt400
putty+fnkeys+xterm
putty+keypad
putty+screen
putty-256color
putty-m1
putty-m1b
putty-m2
putty-noapp
putty-sco
putty-screen
putty-vt100