TERM environment variable

MOC version: 
2.5.1

I noticed that when setting the current directory with the "go to a directory" command, the backspace key does not work in the path input field. This seems to be related to the use of tmux, which i'm always using, and more precisely it is the environment variable "TERM", which is set to "screen" by tmux. If I run mocp with TERM=xterm which is the default value in xfce Terminal then backspace works in mocp. As everywhere else backspace works AFAIK in tmux, there might be something related to mocp for this problem.

It seems very likely that the TERM setting is a factor here. Fortunately, I'm fresh from having solved a similar problem so know where to look.

Just to help me, could you please try using the 'Backspace' key, the 'Delete' key, the keypad 'Del' key and the shifted keypad 'Del' key (assuming your keyboard has all of those) and report the results when using a TERM setting of both 'linux' and 'screen'.

You might find it easier to do that by e-mail.

I don't have any keypad, even the one that takes over part of the right hand keys of the keyboard. It seems manufacturers have stopped this option. For your question, the 'Del' key is working in both cases of TERM value, i.e. xterm and tmux.

Previously i tried with manually setting TERM=xterm in tmux and noticed backspace was working in mocp. Now i tried with manually setting TERM=screen without using tmux and i noticed backspace is not working in mocp. This confirms the problem is related to the TERM environment variable only.