Is there a command line switch or configuration option so that MC starts in terminal mode (same as if I would press ctrl-o after running mc).
The mc(1) manpage mentions no such option.
Looking around in the source shows that this action can be bound to a different key sequence, using
Shell = ... in the keymap file, but that doesn't help invoke it at startup. It may also be invokable through a callback using the
MSG_ACTION event, but I couldn't see a way to reach that from outside the process.
One possibility is to have the Ctrl-o sequence sent automatically when you start
mc. If you are running
mc in a terminal emulator on X11, you could do this using an X automation tool such as xdotool. Put
xdotool key ctrl+o
~/.local/share/mc/bashrc (or equivalent if you are using a different shell).
If you want to enable this only some of the time, set up an alternative config directory and point to it with the environment variable
MC_HOME. You would need to put that same
xdotool line in
~/alt_mc/.local/share/mc/bashrc, and start
This will require duplicating/symlinking any other
mc config settings and files that you have in the usual place.