Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

Hello.

I noticed that when I work in vifm (Ubuntu 22.04) by connecting to this server via Putty (Windows 10), the Home, End keys do not work for me. At the same time, the combinations of gg and G work out correctly. Working directly on this server in the console, the Home and End keys work correctly.

What could be the problem?

vifm ver 0.12
Support of extended keys is on.

1 Answer

0 votes
by
selected by
 
Best answer

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
by

It works. Thank you.

...