Midnight Command (mc.exe) doesn't accept mouse input (selects text instead) #14328

Closed
opened 2026-01-31 04:07:15 +00:00 by claunia · 4 comments
Owner

Originally created by @DrPepperBianco on GitHub (Jun 24, 2021).

I installed Midnight commander on my system (Windows 10). If I launch it "C:\Program Files (x86)\Midnight Commander\mc.exe" via Windows Terminal and try to click on anything it doesn't work. It instead only selects the text.

If I try to google this problem, I only get results, telling me, that "Windows Terminal" support mouse input for Midnight Commander from around March 2020. These articles mean linux though, either via SSH or via WSL. And if I connect via SSH to linux and then use midnight commander the mouse works. But if I start a midnight commander session locally, it doesn't.

I actually had the same problem, when I just started "mc.exe" in a regular console window. But there I opened the properties and deactivates "Quick Edit". Thus selection had to be activated explicitly and other mouse clicks works as expected.

But I didn't found a similar option in the settings of Windows Terminal.

Originally created by @DrPepperBianco on GitHub (Jun 24, 2021). I installed Midnight commander on my system (Windows 10). If I launch it "C:\Program Files (x86)\Midnight Commander\mc.exe" via Windows Terminal and try to click on anything it doesn't work. It instead only selects the text. If I try to google this problem, I only get results, telling me, that "Windows Terminal" support mouse input for Midnight Commander from around March 2020. These articles mean linux though, either via SSH or via WSL. And if I connect via SSH to linux and then use midnight commander the mouse works. But if I start a midnight commander session locally, it doesn't. I actually had the same problem, when I just started "mc.exe" in a regular console window. But there I opened the properties and deactivates "Quick Edit". Thus selection had to be activated explicitly and other mouse clicks works as expected. But I didn't found a similar option in the settings of Windows Terminal.
Author
Owner

@zadjii commented on GitHub (Jun 25, 2021):

What version of the terminal are you using? And what version of mc.exe?

@zadjii commented on GitHub (Jun 25, 2021): What version of the terminal are you using? And what version of mc.exe?
Author
Owner

@KaranKad commented on GitHub (Jun 29, 2021):

Mouse input support for windows applications was added in v1.9.1445.0 Preview. Try using that.

@KaranKad commented on GitHub (Jun 29, 2021): Mouse input support for windows applications was added in v1.9.1445.0 Preview. Try using that.
Author
Owner

@DHowett commented on GitHub (Jun 29, 2021):

Yep! This is correct.

Now, if you're using 1.9+ and mouse input doesn't work for MC (Windows), it could be the case that it is not managing the mouse mode in a way that Terminal can detect.

For maximal behavioral compatibility with Windows applications, we had to make a couple compromises in how mouse mode was detected. Otherwise, all windows applications would try to eat cursor input events ... which would be significantly worse from a user experience standpoint 😦

@DHowett commented on GitHub (Jun 29, 2021): Yep! This is correct. Now, if you're using 1.9+ and mouse input doesn't work for MC (Windows), it could be the case that it is not managing the mouse mode in a way that Terminal can detect. For maximal behavioral compatibility with Windows applications, we had to make a couple compromises in how mouse mode was detected. Otherwise, *all* windows applications would try to eat cursor input events ... which would be significantly worse from a user experience standpoint 😦
Author
Owner

@ghost commented on GitHub (Jul 11, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Jul 11, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14328