Midnight Commander - Ctrl-enter doesn't work in Putty
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Midnight Commander - Ctrl-enter doesn't work in Putty
Hi everyone
I'm literally banging my head against the table because googling doesn't help much.
I'm running Debian Wheezy and Midnight Commander there. When I open MC in a console directly on the server, Ctrl+enter hotkey puts currently selected file into commandline. But when I use MC in Putty, ctrl+enter enters the folder or executes the file instead, i.e. like just "enter". And I desperately need it to act like it needs to (puts selected file/folder in commandline) because my muscle memory is already trained.
I know that I can use Alt+enter or Ctrl-x>t instead, but that's not it.
I've tried different terminal types (xterm, linux), tried to explicitly map ctrl-enter in mc.keymap, nothing helps. I have no choice but to ask for help...
probably you need to configure putty to handle Ctrl or Ctrl-Enter differently (is there a key binding somewhere?)
Actually I don't think this is Putty's fault, because if I login from another bash shell of another machine to Debian server and open MC, I get the same issue, while directly in the console there is no issue.
I think it might be something to do with terminal settings, but it got loads of settings and I've tried a bunch of them already...
^ so what is this other shell (not putty?), and what is this other machine?
If I open bash shell on another linux PC, and connect to the target PC using 'ssh <host> -l <login>', then open MC and I get the same issue (Ctrl-enter in MC acts like just Enter) So the issue is reproduced both in Putty and in Bash, therefore I suspect it's not putty but some sshd or terminal settng/mapping...
ssh cannot have any influence on it. What do you mean by direct console (without X?) what kind of wm do you have?
Ok, I did the following test and this is getting strange:
I run two Debian VM's on a VMware hypervisor. Let's call them VM_A and VM_B
When I connect to VM_A using VMware workstation (which simulates physicall access to the PC) I don't have this issue. Then, I connect to VM_B using VMware Workstation and from THERE I open ssh sesstion to VM_A, and I get this issue. So, to make it easier:
VMWare Workstation > VM_A = no issue
VMWare Worsktation > VM_B > SSH to VM_A = yes issue
Thank you very much for not abandoning me so far guys, I really want to know why is this happening.
How about using...
CTRL-SHIFT-C to copy a string
CTRL-SHIFT-V to paste it where your cursor is.
I often use CTRL-C in a web browser or a PDF document to copy a link and use CTRL-SHIFT-V in a terminal window to paste it where the cursor is currently located.
Try alt-Enter. The help in mc on fedora 25 states Alt-Enter copies the current file to command line, then says Ctrl-Enter does the same but may not work on some remote terminals.
From a w10 computer to my f25 computer, Ctrl-Enter does not work in a putty connection, but Alt-Enter does.
So many variations - on gnome terminal, (Fedora 25) F1 for help in mc didn't work at all as terminal caught it first. Had to disable the binding in terminal (who needs it after all). With tilix, all the keys I use get passed straight through ...
So many variations - on gnome terminal, (Fedora 25) F1 for help in mc didn't work at all as terminal
Same with Xfce on F25, but you can use the alternate method for function keys which is there because many desktops intercept some function keys particularly F1
Press and release esc followed by the number of the function key you want. So to get to the mc help, press & release esc followed by the number 1
are these consoles or some kind of terminal apps? (GUI, or without gui ??)
Yes, they are GUI apps, but to eliminate them I've did the cleanest test possible:
2 physical PCs in a local network. Keyboard and mouse connected directly, no desktops or X's of any kind, just a plain clean console. I open MC on both PCs directly - no issue. I open SSH session from one of them to another (doesn't matter which) - issue is reproduced.
So the only difference is SSH session, I can't find anything else that can affect this behavior.
Quote:
Originally Posted by Doug G
Try alt-Enter
Yes, Alt+enter works, the problem is that I've used to Ctrl+enter in FAR manager so much I can't live without it. More importantly, I think it's important to have a consistent hotkeys across all similar programs we use (file managers, text editors e.t.c) to use muscle memory to full capacity and maximize productivity.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.