Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc (Midnight Commander) mouse not work if Term=xterm-256color #1596

Closed
jack6th opened this issue Mar 17, 2019 · 5 comments
Closed

mc (Midnight Commander) mouse not work if Term=xterm-256color #1596

jack6th opened this issue Mar 17, 2019 · 5 comments

Comments

@jack6th
Copy link

jack6th commented Mar 17, 2019

Mintty -> options -> terminal -> type -> xterm-256color.
It can use 256 color skins (mc -> F9 -> Options -> Appearance). But mouse not works.
Mouse works when Term=xterm-vt220. But it cannot use 256 color skins.

@maehne
Copy link

maehne commented Nov 29, 2019

I am observing exactly the same issue.

@ssgromov
Copy link

ssgromov commented Dec 3, 2019

Same here, I finally opted for vt220 and used a custom color scheme from msys2 terminal.
Of course, it is not a substitute for 256 color terminal.

@vampirefrog
Copy link

I'm experiencing a similar problem, and if I try to use rxvt-256color the mouse works in mc, but the home and end keys don't. There's also a delay when pressing ESC ESC to exit mcedit, oddly enough. If I ssh to a linux box, the mc there works fine regardless of $TERM, with 256 colors.

@jack6th
Copy link
Author

jack6th commented Nov 21, 2020

I solved it.
It is not the problem of mc but terminfo.
I patched terminfo with the command:
infocmp xterm-256color|sed -E 's/(kmous=\\E\[)</\1M/'|tic -o ~/.terminfo -
Now mc works with xterm-256color.

@jack6th jack6th closed this as completed Nov 21, 2020
@ssgromov
Copy link

I solved it.
It is not the problem of mc but terminfo.
I patched terminfo with the command:
infocmp xterm-256color|sed -E 's/(kmous=\\E\[)</\1M/'|tic -o ~/.terminfo -
Now mc works with xterm-256color.

Hey @jack6th, thanks a mil -- that solved problems for me not only on msys, but also on WSL/SLES/opensuse terminals in OSes using new ncurses. Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants