use flag edit is not working if TERM="xterm", then F2 to F9 is not working at all so mc meny sets is require linux to work Reproducible: Always Steps to Reproduce: 1. export TERM="xterm" 2. mc 3. press F4 Actual Results: noting happens Expected Results: edit the current selected file fun part there is F1 and F10 works
What terminal?
Please also add the output of emerge --info app-misc/mc as comment to this bug.
Created attachment 725164 [details] emerge --info as requested TERM="xterm" fails on menu keys, only TERM="linux" works
Ooookay, where to start. One, if you start with TERM=linux that means you are on a Linux text console - which quite definitely is NOT an X terminal of any sort. Two, having just reproduced the "problem" by logging in on tty2, seting TERM=xterm and running Midnight Commander, I could also see that "Esc 2", "Esc 3" and so on continued to work fine in spite of corresponding Function keys not being recognised - meaning that the problem clearly lies not with mc itself but with the terminal's inability to generate appropriate codes. Three, terminals are in general supposed to set TERM to a correct value by themselves and changing this by hand is something one does at one's own risk.