| Summary: | app-misc/mc fails if export TERM="xterm" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Benny Pedersen <me> |
| Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | marecki, slashbeast |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | emerge --info | ||
|
Description
Benny Pedersen
2021-07-19 11:02:46 UTC
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. |