Jump to content

Help with mc


Recommended Posts

Midnight Commander is often recommended in this forum for file editing. I've never been able to get it to work with any reliability. I can navigate through the file structure using the arrow keys but nothing else seems to work properly. The function keys defined in the mc window don't do anything at all as far as I can tell. Pressing number keys will sometimes perform some action but not what is hoped. I'm reluctant to try the "Let's see what this button does" method for fear of deleting/altering files and folders accidentally.

 

Did some digging on the midnightcommander.org website, but they suffer from the same problems as many other projects. Little or no documentation.

 

Is there some trick that I haven't found to get mc to work? Maybe I should be trying a different text editor?

Link to comment

Since I don't use mac I'm not sure if I'm barking up the wrong tree, but possibly you might have better results using putty as the ssh client instead of the native mac app?

 

Does mc work predictably if you use it at the local console instead of from one of your workstations?

I use ipmi rather than a console.

Link to comment

I use mc all the time from my Mac using Terminal. Since it's heavy on the F-keys, it can get a bit cumbersome.

 

A few things I can suggest:

 

• You'll likely need to press and hold the fn key when using F-keys, as the Mac defaults to the Mac-specific functions (like volume, brightness, play/pause, etc.).

 

• You can set the F-keys on your Mac's keyboard to be F-keys primarily and the Mac-specific functions to be secondary with the fn key by changing the setting in the Keyboard system preference. This is a system-wide setting however.

 

• My preference is to use the escape key as a prefix. Tap escape once, then tap the standard 1 key. mc will interpret it as F1. Same for all F keys up to F10.

Link to comment

I use mc all the time from my Mac using Terminal. Since it's heavy on the F-keys, it can get a bit cumbersome.

 

A few things I can suggest:

 

• You'll likely need to press and hold the fn key when using F-keys, as the Mac defaults to the Mac-specific functions (like volume, brightness, play/pause, etc.).

 

• You can set the F-keys on your Mac's keyboard to be F-keys primarily and the Mac-specific functions to be secondary with the fn key by changing the setting in the Keyboard system preference. This is a system-wide setting however.

 

• My preference is to use the escape key as a prefix. Tap escape once, then tap the standard 1 key. mc will interpret it as F1. Same for all F keys up to F10.

Tried Fn. Didn't seem to make any difference. My guess is that Helmonder is probably right, Terminal.app is using the wrong emulator. At one point I managed to get into a "learning" section (don't remember the exact name) where mc would record key presses. I got a few set and then must have pressed the wrong key. mc exited the screen and never could get back into it. Is there some way to reset key commands to default?

Link to comment
  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...