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.
Why are we bothered with Putty? It is a Windows application, isn't it?
Yes, but I've already eliminated Putty from the chain, it doesn't affect the issue. I can't seem to rename the thread though, I would otherwise.
Quote:
Originally Posted by pan64
how the localisation/keyboard are set (on the two boxes)?
Both are basic US... err... I don't know about any other localisation options. In fact, one one of the PC's I've booted from Debian live USB stick, it didn't ask me for anything, but it's obviously configured with US keyboard.
As far as I know we can setup terminal type in .bashrc, though in my case it was empty, I'm not sure which is the default terminal type. Can this be related to some terminal setting which SSH use?
Unfortunately I have no idea what's happening. Something similar happened to me before 1995 (yes, more than 20 years). The reason was that time basically different locals. ssh does not really care about anything like this, it will simply send data from A to B and from B to A. The problem I think is that A and B understand the given key sequence differently. Without sitting in front of the keyboard I cannot go further.
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...
Ok guys, thank you very much for the replies, this is a great community as far as I can tell
Unfortunately I didn't solve the issue, but I'm already getting used to using Alt+Enter instead of Ctrl+Enter (and only left Alt is working - right Alt+Enter does the same as Ctrl+Enter i.e. acts as just Enter).
I hope I can live with this
Midnight Commander very recently switched from sLang to nCurses, which has caused some glitches, perhaps that changeover is affecting the key interpretation.'
I use mc extensively in Fedora 25, and the changeover has caused Shift-F6 to want to delete a file rather than rename it. And it's inconsistent, some putty terminals and ssh terminals work or don't, while the console screen seems to show the new (unwanted) behavior.
Midnight Commander very recently switched from sLang to nCurses, which has caused some glitches, perhaps that changeover is affecting the key interpretation.'
I use mc extensively in Fedora 25, and the changeover has caused Shift-F6 to want to delete a file rather than rename it. And it's inconsistent, some putty terminals and ssh terminals work or don't, while the console screen seems to show the new (unwanted) behavior.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.