LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-18-2017, 08:50 AM   #16
orhank
LQ Newbie
 
Registered: Dec 2012
Location: Istanbul, Turkey
Distribution: Ubuntu 18.04, Solaris 10, Solaris 11, Windows 8.1
Posts: 27
Blog Entries: 1

Rep: Reputation: Disabled

Why are we bothered with Putty? It is a Windows application, isn't it?
 
Old 05-18-2017, 10:55 AM   #17
Andrew256
LQ Newbie
 
Registered: May 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by orhank View Post
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 View Post
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?
 
Old 05-18-2017, 01:03 PM   #18
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,490

Rep: Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532Reputation: 5532
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.
 
Old 05-18-2017, 01:38 PM   #19
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by Andrew256 View Post
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...
you can use the following tiny, portable, several midnight commander clones...
https://github.com/spartrekus?tab=repositories

They work, they are not bloated and they are gnu.
 
Old 05-20-2017, 03:27 PM   #20
Andrew256
LQ Newbie
 
Registered: May 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-21-2017, 12:33 AM   #21
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
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.

This bug report may be interesting reading: https://bugzilla.redhat.com/show_bug.cgi?id=1436394
 
Old 05-21-2017, 09:50 AM   #22
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by Doug G View Post
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.

This bug report may be interesting reading: https://bugzilla.redhat.com/show_bug.cgi?id=1436394
wow, what a complicated keycode. In my opinion, this is very weird, that the enter does not work.
Code:
ch = getch();
switch( ch ){
   case 10:
     // this is enter
     break;
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] vim:ctrl+v command to select some data.But when I push ctrl+v.It doesn't work.. e3399 Linux - Newbie 20 12-07-2010 06:21 AM
Ctrl-enter doesn't work when running Midnight Commander in xterm narnie Linux - Software 6 02-19-2010 10:21 PM
Midnight Commander 4.6.2 (also 4.6.1) - F1 to F12 keys doesnt work dlugasx Solaris / OpenSolaris 1 06-25-2009 09:06 AM
midnight commander in putty 64-bit xp and debian fakie_flip Linux - Software 2 02-20-2008 03:59 AM
Midnight Commander doesn't list file(s) beginning with uppercase? sixerjman Linux - Software 0 02-14-2006 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration