2001-08-25 02:46:57 +04:00
|
|
|
GNU Midnight Commander
|
2003-06-09 20:19:44 +04:00
|
|
|
Frequently Asked Questions
|
1998-10-29 01:14:51 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
The newest version of this document is available at
|
2023-01-02 23:43:20 +03:00
|
|
|
https://www.midnight-commander.org/browser/doc/FAQ
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* 1 Getting started
|
|
|
|
+ 1.1 What is Midnight Commander?
|
1998-10-29 01:14:51 +03:00
|
|
|
+ 1.2 Does it run on my machine?
|
1998-02-27 07:54:42 +03:00
|
|
|
+ 1.3 Does it work with my terminal?
|
|
|
|
+ 1.4 What else do I need to run MC?
|
2001-08-25 02:46:57 +04:00
|
|
|
+ 1.5 Is GNU Midnight Commander Public Domain? Copyrighted?
|
|
|
|
+ 1.6 Where can I get GNU Midnight Commander?
|
2009-06-30 17:58:27 +04:00
|
|
|
+ 1.7 I cannot compile MC. What should I do?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* 2 Keyboard
|
|
|
|
+ 2.1 What does documentation mean with the C-?, M-? and F?
|
|
|
|
keys?
|
2001-08-08 10:09:39 +04:00
|
|
|
+ 2.2 Why don't function keys (or some other key) work?
|
1998-02-27 07:54:42 +03:00
|
|
|
+ 2.3 How do I use function keys F11 to F20?
|
|
|
|
+ 2.4 Why does the ESC key behave funny?
|
|
|
|
+ 2.5 How can I add the plus sign (+) on the command line?
|
2001-08-08 10:09:39 +04:00
|
|
|
+ 2.6 C-o doesn't work!
|
|
|
|
+ 2.7 What 'keys' are the "a1" and "c1" keys mentioned in the
|
|
|
|
manual?
|
2003-03-10 10:50:26 +03:00
|
|
|
+ 2.8 How do I change the key bindings?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* 3 Mouse
|
|
|
|
+ 3.1 How do I enable mouse support?
|
|
|
|
+ 3.2 How do I cut and paste text with mouse?
|
2001-08-24 11:02:24 +04:00
|
|
|
+ 3.3 How do I get the extension dependent pop-up menu to
|
1998-10-29 01:14:51 +03:00
|
|
|
pop up?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* 4 Display
|
|
|
|
+ 4.1 Why do I keep getting "Terminal not powerful enough for
|
2001-08-08 10:09:39 +04:00
|
|
|
SLang" or "Terminal not powerful enough for SLsmg"?
|
1998-10-29 01:14:51 +03:00
|
|
|
+ 4.2 Why don't line drawing characters work?
|
1998-02-27 07:54:42 +03:00
|
|
|
+ 4.3 Can one use latin-1 characters without losing the lines?
|
|
|
|
+ 4.4 I have problems with entering/viewing national
|
|
|
|
characters!
|
|
|
|
+ 4.5 How can I get colors?
|
|
|
|
+ 4.6 My color_xterm goes completely (or partially) black!
|
2001-08-10 09:26:56 +04:00
|
|
|
+ 4.7 Where can I get xterm or rxvt?
|
2003-08-15 19:26:48 +04:00
|
|
|
+ 4.8 I got colors working with MC but the other programs
|
|
|
|
don't work at all anymore!
|
2003-06-09 20:19:44 +04:00
|
|
|
+ 4.9 Why are there both terminfo and termcap? Wouldn't one
|
1998-02-27 07:54:42 +03:00
|
|
|
database be enough?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* 5 Graphical user interface
|
2001-08-08 10:09:39 +04:00
|
|
|
+ 5.1 Xview, Tk and Gnome editions?
|
2003-06-09 20:19:44 +04:00
|
|
|
+ 5.2 Why is MC linked with X libraries?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* 6 Command line problems
|
|
|
|
+ 6.1 How do I stay in the last directory when I exit Midnight
|
|
|
|
Commander?
|
2001-08-08 10:09:39 +04:00
|
|
|
+ 6.2 How can I access command line history?
|
1998-02-27 07:54:42 +03:00
|
|
|
+ 6.3 How can I complete commands, file names, variable names
|
|
|
|
and so on?
|
2003-06-09 20:19:44 +04:00
|
|
|
+ 6.4 I am using ksh. Can I use functions defined in the
|
|
|
|
.kshrc within MC?
|
1998-10-29 01:14:51 +03:00
|
|
|
+ 6.5 Is there any way to include additional options or hot
|
|
|
|
keys to MC?
|
2004-01-30 11:44:00 +03:00
|
|
|
+ 6.6 When I use Ctrl-O I don't get a subshell. How do I fix
|
|
|
|
this?
|
|
|
|
+ 6.7 Ctrl-O doesn't work at all. What happens?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* 7 Virtual file systems
|
|
|
|
+ 7.1 How can I see the contents of a tar archive?
|
|
|
|
+ 7.2 How do I get out of a tar archive?
|
|
|
|
+ 7.3 How do I do anonymous ftp with MC?
|
|
|
|
+ 7.4 How do I do non-anonymous ftp with MC?
|
|
|
|
+ 7.5 How do I close an ftp connection?
|
|
|
|
+ 7.6 Why aren't the contents of ftp panel updated?
|
2001-08-08 10:09:39 +04:00
|
|
|
+ 7.7 What kind of proxy server works with Midnight Commander?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
* 8 Internal editor
|
2003-08-15 19:26:48 +04:00
|
|
|
+ 8.1 When I try pasting to the internal editor, it indents
|
2003-06-09 20:19:44 +04:00
|
|
|
the amount of indenting increases with each line!
|
2003-08-15 19:26:48 +04:00
|
|
|
+ 8.2 Is it possible to use Colorer for syntax highlighting?
|
2003-07-12 05:13:37 +04:00
|
|
|
|
|
|
|
* 9 Other common problems
|
|
|
|
+ 9.1 Is there any way to 'bookmark' favorite ftp-fs links?
|
2003-08-15 19:26:48 +04:00
|
|
|
+ 9.2 When I start Midnight Commander, nothing happens!
|
2003-06-09 20:19:44 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
* 10 Development
|
|
|
|
+ 10.1 Who has written Midnight Commander?
|
|
|
|
+ 10.2 Do I dare to use a development version?
|
|
|
|
+ 10.3 How can I report a bug/request for a feature?
|
|
|
|
+ 10.4 How can I join the development?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
* 11 More information
|
2003-08-15 19:26:48 +04:00
|
|
|
+ 11.1 This document didn't answer my question. Where else
|
|
|
|
can I look for an answer?
|
2003-07-12 05:13:37 +04:00
|
|
|
+ 11.2 What mailing lists are there for Midnight Commander?
|
|
|
|
+ 11.3 Where should I look on the World Wide Web for MC stuff?
|
|
|
|
+ 11.4 Are the mailing lists archived anywhere?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
* 12 Legal issues
|
|
|
|
+ 12.1 Authorship
|
|
|
|
+ 12.2 Feedback is invited
|
|
|
|
+ 12.3 Disclaimer and copyright
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
1 Getting started
|
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
1.1 What is Midnight Commander?
|
|
|
|
|
2001-08-25 01:38:37 +04:00
|
|
|
GNU Midnight Commander is a user-friendly yet powerful file manager
|
2003-08-15 19:26:48 +04:00
|
|
|
and visual shell, useful to novice and guru alike. It provides a
|
1998-02-27 07:54:42 +03:00
|
|
|
clear, user-friendly, and somewhat protected interface to a Unix
|
|
|
|
system while making many frequent file operations more efficient and
|
2003-08-15 19:26:48 +04:00
|
|
|
preserving the full power of the command prompt. After some
|
|
|
|
practice, you will wonder how you could ever live without it.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
1.2 Does it run on my machine?
|
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
GNU Midnight Commander runs on POSIX (Unix-like) operating systems,
|
|
|
|
such as GNU/Linux, FreeBSD, Mac OS X, Solaris, HP-UX and others. It
|
2003-08-15 19:26:48 +04:00
|
|
|
can also be compiled under Cygwin on Windows.
|
2003-06-09 20:19:44 +04:00
|
|
|
|
|
|
|
GNU Midnight Commander uses GNU Autoconf which should automatically
|
|
|
|
configure it for every Unix clone. Following configurations have
|
2003-08-15 19:26:48 +04:00
|
|
|
been tested in the past (this list is very old):
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* i386-*-linux1.x, 2.x
|
|
|
|
* alpha-linux-linux2
|
|
|
|
* sparc-linux-linux2.x
|
1998-04-30 07:21:52 +04:00
|
|
|
* sparc64-linux-linux2.1
|
1998-02-27 07:54:42 +03:00
|
|
|
* mips-sgi-irix5.x, 6.x
|
|
|
|
* sparc-sun-sunos4.1
|
|
|
|
* sparc-sun-solaris2.3, 2.4, 2.5
|
|
|
|
* sparc-sun-netbsd1.0
|
|
|
|
* hppa-hp-hpux9
|
|
|
|
* hppa-hp-hpux7
|
|
|
|
* m68k-apple-aux
|
|
|
|
* unixware
|
|
|
|
* mc88110-aviion-dgux5.4R2.01
|
|
|
|
* i386-*-sco3.2v4.2
|
|
|
|
* i386-*-sco3.2v5
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
1.3 Does it work with my terminal?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Yes, it does.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Because GNU Midnight Commander is a full screen program it doesn't
|
|
|
|
run on dummy terminals but anything more advanced will do (like
|
|
|
|
vt100). If your terminal works with vi, emacs, elm or pine it will
|
|
|
|
work with GNU Midnight Commander.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
1.4 What else do I need to run MC?
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
You need a POSIX (Unix compatible) operating system. If you are
|
|
|
|
running Windows, use Cygwin.
|
2001-05-18 20:52:26 +04:00
|
|
|
|
2023-08-27 13:49:00 +03:00
|
|
|
To compile any edition you need to have glib >= 2.32 installed.
|
2020-12-26 15:50:59 +03:00
|
|
|
It's available at https://download.gnome.org/sources/glib/.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
If you want to use mouse on the Linux console you need the gpm daemon
|
2020-12-26 15:50:59 +03:00
|
|
|
from https://www.nico.schottelius.org/software/gpm/. You need nothing
|
|
|
|
extra to use mouse on xterm.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
If you do not want to use the S-Lang library you could try using
|
2003-06-09 20:19:44 +04:00
|
|
|
ncurses version 4.1 and above.
|
2001-05-18 20:52:26 +04:00
|
|
|
|
2001-08-25 02:46:57 +04:00
|
|
|
1.5 Is GNU Midnight Commander Public Domain? Copyrighted?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Midnight Commander is under GNU Public License which basically means
|
|
|
|
that you may freely copy, change and distribute it, but that you may
|
2003-08-15 19:26:48 +04:00
|
|
|
not impose any restrictions on further distribution, and that you
|
|
|
|
must make the source code available. This is not the same as Public
|
|
|
|
Domain. For details, the GNU license is included in GNU Midnight
|
|
|
|
Commander source distribution (the COPYING file).
|
2001-08-25 02:46:57 +04:00
|
|
|
|
|
|
|
Midnight Commander is now officially a part of the GNU project.
|
|
|
|
All the authors of GNU Midnight Commander have given all their rights
|
|
|
|
on the program to the Free Software Foundation.
|
|
|
|
|
|
|
|
1.6 Where can I get GNU Midnight Commander?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2023-01-02 23:43:20 +03:00
|
|
|
The main site is https://www.midnight-commander.org
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2009-06-30 17:58:27 +04:00
|
|
|
1.7 I cannot compile MC. What should I do?
|
2003-06-09 20:19:44 +04:00
|
|
|
|
|
|
|
Make sure you have read the INSTALL file in the sources. Report the
|
|
|
|
error messages exactly as they appear, mention the versions of your
|
2003-08-15 19:26:48 +04:00
|
|
|
OS, your compiler and whatever else software you think is relevant.
|
2003-06-09 20:19:44 +04:00
|
|
|
If you have compile problems in the VFS code, try disabling it by
|
2009-06-30 17:58:27 +04:00
|
|
|
using "--disable-vfs" option.
|
2003-06-09 20:19:44 +04:00
|
|
|
|
2009-06-23 13:50:58 +04:00
|
|
|
f2 Keyboard
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
2.1 What does documentation mean with the C-?, M-? and F? keys?
|
|
|
|
|
2001-08-25 02:46:57 +04:00
|
|
|
GNU Midnight Commander documentation uses emacs style names for
|
|
|
|
keyboard keys.
|
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
C stands for the Ctrl key. For example, C-f means that you should
|
|
|
|
hold down the Ctrl key and press the f key.
|
|
|
|
|
|
|
|
M stands for the Meta key. Your terminal might call it Alt or
|
2003-08-15 19:26:48 +04:00
|
|
|
Compose instead of Meta. For example, M-f means that you should hold
|
2003-06-09 20:19:44 +04:00
|
|
|
down the Meta/Alt/Compose key and press the f key. If your terminal
|
|
|
|
doesn't have Meta, Alt or Compose or they don't work you can use Esc.
|
|
|
|
For M-f press the Esc key and then press the f key.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Sometimes Ctrl and Alt are used instead of C and M for simplicity.
|
2003-06-09 20:19:44 +04:00
|
|
|
Keep in mind that Alt can actually be Meta on some keyboards.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
F? stands for a function key. If your terminal doesn't have function
|
2003-06-09 20:19:44 +04:00
|
|
|
keys or they don't work you can use Esc. For example, for F3 press
|
|
|
|
the Esc key and then press the 3 key.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
2.2 Why don't function keys (or some other key) work?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Your terminfo or termcap database has missing or incorrect
|
|
|
|
definitions for function keys. Type "mc -V" to see what terminal
|
|
|
|
database is being used. If the result is "using the S-Lang library
|
|
|
|
with terminfo database" and you are using a very old terminfo
|
|
|
|
database, consider installing one of the enhanced terminfo files
|
|
|
|
included in GNU Midnight Commander source distribution. For example,
|
1998-02-27 07:54:42 +03:00
|
|
|
if you are using xterm type "tic xterm.ti".
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If the result is "using the S-Lang library with termcap database" you
|
|
|
|
should fix your /etc/termcap database.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Up-to-date termcap and terminfo databases are available here:
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2009-06-23 13:50:58 +04:00
|
|
|
http://www.catb.org/~esr/terminfo/
|
|
|
|
ftp://ftp.gnu.org/pub/gnu/ncurses/
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If you don't have permissions to edit terminal databases you can use
|
2003-08-15 19:26:48 +04:00
|
|
|
Learn keys feature of Midnight Commander instead. Press Esc 9 o k
|
|
|
|
and follow instructions.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If all else fails you can emulate function keys by first pressing the
|
2003-08-15 19:26:48 +04:00
|
|
|
ESC key and then one of the number keys. For example, if you want to
|
|
|
|
produce F9, press ESC, then 9. If you don't have a ESC key on your
|
1998-02-27 07:54:42 +03:00
|
|
|
keyboard you can try alt-9 or meta-9.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
2.3 How do I use function keys F11 to F20?
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
These are normally mapped to function keys F1 to F10 with Shift held,
|
|
|
|
e.g. function key F13 can be activated by pressing Shift-F3. You can
|
|
|
|
define the keys this way in the Options->Learn Keys dialog. The
|
|
|
|
convention for PC keyboards is that F11-20 always means Shift with
|
|
|
|
F1-10.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-09-23 09:33:15 +04:00
|
|
|
You may find that on the Linux console with some keyboard layouts
|
|
|
|
Shift-Fn is interpreted as F(n+12), not as F(n+10). This is a result
|
|
|
|
of non-uniformity of keyboard layouts. This is not an intended
|
|
|
|
behavior and it may be fixed some day. In the meantime, use "Learn
|
|
|
|
Keys" to remedy this inconvenience.
|
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
2.4 Why does the ESC key behave funny?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Midnight Commander uses the ESC key as a prefix for simulating the
|
2003-08-15 19:26:48 +04:00
|
|
|
Meta and Alt keys (for terminals which don't have Meta or Alt, see
|
|
|
|
the three previous questions). For example, pressing ESC-a is the
|
|
|
|
same as pressing Meta-a. In addition most terminals use ESC for
|
|
|
|
internal representation of arrow keys, function keys and other
|
|
|
|
enhanced keys. If you want to use ESC to cancel things you have to
|
|
|
|
press it twice i.e. ESC-ESC. If you find this cumbersome you can
|
|
|
|
generally use F10 to cancel. Alternatively turn on the old_esc_mode
|
2010-12-30 22:10:20 +03:00
|
|
|
setting in the ~/.config/mc/ini file. The
|
|
|
|
old_esc_mode setting makes ESC work as a prefix only if another key
|
|
|
|
is pressed within 0.5 seconds. After 0.5 seconds the ESC key cancels.
|
|
|
|
There is no way to make ESC cancel immediately (if we want to be able
|
|
|
|
to use arrows keys and function keys).
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
2.5 How can I add the plus sign (+) on the command line?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Press C-q first, then press the + sign.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
The plus key is the hotkey for the select files command. If you want
|
1998-02-27 07:54:42 +03:00
|
|
|
to add a literal plus on to the command line you must quote it by
|
|
|
|
pressing C-q first.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Another common key which needs the C-q prefix is backslash "\".
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
2.6 C-o doesn't work!
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Maybe C-o is a stty control character on your terminal. See man stty
|
1998-10-29 01:14:51 +03:00
|
|
|
for details on how to list and change stty control characters.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
2.7 What 'keys' are the "a1" and "c1" keys mentioned in the manual?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
|
|
|
The "a1" key is the key which has the "a1" caption on it.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
The "c1" key is the key which has the "c1" caption on it.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
If you have to ask what these two keys are your keyboard hasn't
|
2003-08-15 19:26:48 +04:00
|
|
|
probably got them. Actually, I have never seen a keyboard which has
|
1998-10-29 01:14:51 +03:00
|
|
|
got them.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-03-10 10:50:26 +03:00
|
|
|
2.8 How do I change the key bindings?
|
|
|
|
|
2020-12-26 15:50:59 +03:00
|
|
|
Key binding con be reconfigure via keymap files: /etc/mc/mc.keymap
|
|
|
|
and ~/.config/mc/mc.keymap.
|
|
|
|
|
|
|
|
You can use the "Learn Keys" dialog to assign keys to some actions
|
|
|
|
listed in that dialog.
|
2003-03-10 10:50:26 +03:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
3 Mouse
|
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
3.1 How do I enable mouse support?
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Invoke mc like this (without quotes): "mc -x". If this doesn't work
|
|
|
|
upgrade to a terminal which compatible with the Xterm mouse
|
|
|
|
sequences.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
Alternatively, on Linux console you can use gpm.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
3.2 How do I cut and paste text with mouse?
|
|
|
|
|
2001-08-24 11:02:24 +04:00
|
|
|
Hold down shift key while using mouse to cut and paste.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
4 Display
|
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
4.1 Why do I keep getting "Terminal not powerful enough for SLang" or
|
|
|
|
"Terminal not powerful enough for SLsmg"?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
This means that your terminfo databases do not contain the correct
|
|
|
|
definitions for your terminal.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
You could try using a different terminal setting. If you use csh or
|
1998-02-27 07:54:42 +03:00
|
|
|
tcsh:
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
setenv TERM vt100
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
or if you use sh, bash, ksh or zsh:
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
export TERM=vt100
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
4.2 Why don't line drawing characters work?
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Since version 4.0.13 there's the command line option -a to force use
|
2020-12-26 15:50:59 +03:00
|
|
|
of charaters +, |, - for line drawing. Use the -a option if any
|
|
|
|
of the suggestions below doesn't help.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-24 11:02:24 +04:00
|
|
|
In general, there are three cases:
|
1998-02-27 07:54:42 +03:00
|
|
|
* Lines are shown as ASCII characters like this
|
|
|
|
|
|
|
|
+---------+
|
|
|
|
| |
|
|
|
|
+---------+
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
This also happens when you use the -a option. Other than that
|
2001-08-25 02:46:57 +04:00
|
|
|
possible reason is 1 or 2 (see below).
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
* Lines are shown as lower case characters like this
|
|
|
|
|
|
|
|
lqqqqqqqqqk
|
|
|
|
x x
|
|
|
|
mqqqqqqqqqj
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2001-08-25 02:46:57 +04:00
|
|
|
Possible reason is 1 or 2 (see below).
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
* Lines are shown as blanks or missing characters. Possible reason
|
2001-08-25 02:46:57 +04:00
|
|
|
is 2 or 3 (see below).
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
The reason for the problem is one of following:
|
2001-08-08 10:09:39 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
1. Your terminal might not support line drawing characters. VT100
|
|
|
|
compatible terminals, rxvt and xterm and color_xterm do support
|
|
|
|
them.
|
2001-08-25 02:46:57 +04:00
|
|
|
2. Your terminfo or termcap database might have missing or incorrect
|
2003-08-15 19:26:48 +04:00
|
|
|
definitions for line drawing characters. Set the acsc variable
|
|
|
|
in the terminfo database like this:
|
|
|
|
acsc=a\376k\277l\332m\300j\331n\305w\302v\301u\264t\303q\304x
|
|
|
|
\263h\2600\333
|
|
|
|
Don't forget issue 'tic' command. This supposes you are using PC
|
|
|
|
character set. The octal values might be different for other
|
|
|
|
character sets. If you are using termcap instead of terminfo,
|
|
|
|
you should modify above solution appropriately.
|
|
|
|
3. Your terminal font might not support line drawing characters.
|
|
|
|
Try changing the font.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Here is Miguel's answer to Torben on this subject.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Torben:
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
When I load consolefonts/iso01.f16, I get perfectly right national
|
2003-08-15 19:26:48 +04:00
|
|
|
characters, but the line drawing characters in mc get wrong. Is it
|
1998-02-27 07:54:42 +03:00
|
|
|
a mc problem, or is it a problem with the font? (I guess it is).
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Is there a trick?
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Miguel:
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
First of all, we should determine whether the font has line drawing
|
|
|
|
characters or not.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If it has line drawing characters, then a new terminfo entry should
|
2003-08-15 19:26:48 +04:00
|
|
|
be written for this specific case. Let's call this linux-iso01.
|
|
|
|
The acsc variable should be modified to reflect which characters
|
|
|
|
are used to do the line drawing.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If it does not have line drawing characters, then we should get rid
|
|
|
|
of the switch to acsc sequences and make the acsc sequence be just
|
|
|
|
a mapping to the ugly +, -, |, - characters.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
You can get your terminfo definition by running the infocmp
|
|
|
|
program, making the proper changes and running the tic program to
|
|
|
|
compile your new terminfo database.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
4.3 Can one use latin-1 characters without losing the lines?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Yes, you need a correct font and a correct termcap/terminfo database.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
For font, if you use xterm try "xterm -fn fixed".
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
For termcap/terminfo database, change the acsc capability in the
|
|
|
|
database.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
4.4 I have problems with entering/viewing national characters!
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
From the Options - Display Bits dialog select Full 8 bits or ISO
|
2003-08-15 19:26:48 +04:00
|
|
|
8859-1. In addition, select 8 bit input from the same dialog.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
4.5 How can I get colors?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Invoke mc like this (without quotes): "mc -c".
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If you get colors, be happy.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If your terminal stays black and white, your terminal doesn't support
|
2003-08-15 19:26:48 +04:00
|
|
|
color. You might want to upgrade to a terminal which compatible with
|
1998-02-27 07:54:42 +03:00
|
|
|
the ANSI color sequences.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-24 11:02:24 +04:00
|
|
|
If your terminal goes completely black, see the next question.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
More detailed answer:
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Check that your terminal supports color. color_xterm, rxvt and Linux
|
|
|
|
console do support, most other terminals don't. You can test color
|
2001-08-25 02:46:57 +04:00
|
|
|
support with following simple C program:
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main (void){
|
|
|
|
printf ("\033[32m Hello world! \033[m\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Compile and run it. If you see "Hello world!" text in green your
|
1998-02-27 07:54:42 +03:00
|
|
|
terminal supports color, otherwise not (however, for color_xterm see
|
|
|
|
also the next question).
|
2001-08-25 02:46:57 +04:00
|
|
|
|
|
|
|
Check whether you are using Ncurses or the S-Lang library (type
|
|
|
|
"mc -V" to find out).
|
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
With S-Lang library you can force color support by setting the
|
1998-02-27 07:54:42 +03:00
|
|
|
environment variable COLORTERM to any value.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
If you use ncurses library, check that your terminfo database
|
|
|
|
supports color. If not, you should install one of the enhanced
|
|
|
|
terminfo databases included in GNU Midnight Commander source
|
|
|
|
distribution.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
|
|
|
You might want to set the TERM environment variable so that you are
|
|
|
|
using the correct terminfo database or termcap entry.
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If you use color_xterm (or rxvt) the correct value might be
|
|
|
|
xterm-color, xtermc or simply xterm.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If you use Linux console the correct value for TERM is linux or
|
|
|
|
console.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
4.6 My color_xterm goes completely (or partially) black!
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Some color_xterm terminals define all colors as black instead of the
|
2003-08-15 19:26:48 +04:00
|
|
|
standard ANSI colors. This makes them go completely black when you
|
|
|
|
try to use Midnight Commander with colors.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
You will have to override the defaults. Create a file
|
|
|
|
"color.defaults" which has the following contents:
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
color_xterm*color0: Black
|
|
|
|
color_xterm*color1: Red
|
|
|
|
color_xterm*color2: Green
|
|
|
|
color_xterm*color3: Yellow
|
|
|
|
color_xterm*color4: Blue
|
|
|
|
color_xterm*color5: Magenta
|
|
|
|
color_xterm*color6: Cyan
|
|
|
|
color_xterm*color7: White
|
|
|
|
color_xterm*background: White
|
|
|
|
color_xterm*foreground: Black
|
|
|
|
|
|
|
|
(replace color_xterm with the name of your color_xterm, color_xterm
|
|
|
|
mentions its name in its title bar)
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Now type:
|
|
|
|
|
|
|
|
xrdb -merge color.defaults
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Alternatively you can add the suggested contents of the
|
|
|
|
color.defaults file to your .Xdefaults or .Xresources file (or what
|
|
|
|
ever the name of your X configuration file is). Or you can replace
|
|
|
|
your non-ANSI color_xterm with an ANSI color_xterm.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-10 09:26:56 +04:00
|
|
|
4.7 Where can I get xterm or rxvt?
|
|
|
|
|
|
|
|
xterm is included with the X Window System, so you probably already
|
2003-08-15 19:26:48 +04:00
|
|
|
have it if you have X. This version is not actively maintained, but
|
2001-08-10 09:26:56 +04:00
|
|
|
Thomas Dickey maintains his more advanced version of xterm at
|
|
|
|
ftp://dickey.his.com/xterm/
|
|
|
|
|
2020-12-26 15:50:59 +03:00
|
|
|
rxvt has its own site http://www.rxvt.net/ - get the latest version
|
2001-08-10 09:26:56 +04:00
|
|
|
there.
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
4.8 I got colors working with MC but the other programs don't work at
|
|
|
|
all anymore!
|
1998-10-29 01:14:51 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Midnight Commander uses terminfo database (if available) but many
|
2003-08-15 19:26:48 +04:00
|
|
|
other programs use termcap database. If you set the TERM environment
|
1998-02-27 07:54:42 +03:00
|
|
|
variable to a value which has no corresponding entry in termcap
|
2003-08-15 19:26:48 +04:00
|
|
|
database those programs stop working. You should add the new value
|
|
|
|
of TERM to the termcap database.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Example: If you have set TERM to xterm-color locate from /etc/termcap
|
|
|
|
the line which starts:
|
|
|
|
|
|
|
|
xterm|vs100|xterm terminal emulator
|
|
|
|
|
|
|
|
Change it to start:
|
|
|
|
|
|
|
|
xterm|xterm-color|vs100|xterm terminal emulator
|
|
|
|
|
|
|
|
5 Graphical user interface
|
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
5.1 Xview, Tk and Gnome editions?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2001-08-25 01:38:37 +04:00
|
|
|
Xview and Tk and GNOME editions have been removed from the sources.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
5.2 Why is MC linked with X libraries?
|
|
|
|
|
|
|
|
GNU Midnight Commander is linked with X libraries to read key
|
|
|
|
modifiers from the X Server. It may be helpful to distinguish
|
|
|
|
between keys that the terminal emulator reports in the same way, e.g.
|
|
|
|
PgUp and Ctrl-PgUp. Versions of GNU Midnight Commander after 4.6.0
|
|
|
|
will load X libraries dynamically on the systems that support it.
|
|
|
|
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
6 Command line problems
|
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
6.1 How do I stay in the last directory when I exit Midnight Commander?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
See the description of the -P option in the Options section of the
|
|
|
|
manual.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
6.2 How can I access command line history?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2009-06-23 13:50:58 +04:00
|
|
|
Meta-h shows the last commands you executed from the command line.
|
2003-06-09 20:19:44 +04:00
|
|
|
Duplicates are suppressed from the history. Commands executed from
|
|
|
|
the subshell prompt are not shown.
|
|
|
|
|
2009-06-23 13:50:58 +04:00
|
|
|
You can put previous commands to the command line with Meta-p. Meta-n
|
2003-06-09 20:19:44 +04:00
|
|
|
moves you forward in history.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Since version 4.1.15 all the input widgets have permanent history.
|
|
|
|
You can summon the history listbox by pressing M-h.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
6.3 How can I complete commands, file names, variable names and so on?
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Just press M-Tab. Press M-Tab again to get a listbox if there are
|
1998-02-27 07:54:42 +03:00
|
|
|
multiple possible completions.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
6.4 I am using ksh. Can I use functions defined in the .kshrc within
|
|
|
|
MC?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Sorry, MC only supports bash, tcsh and zsh functions. Ksh functions
|
1998-02-27 07:54:42 +03:00
|
|
|
are not supported because ksh lacks the necessary hooks needed for
|
|
|
|
subshell integration.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Switch to bash or zsh. They are both quite compatible with ksh.
|
|
|
|
Your ksh functions should work as such or after minimal changes.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
6.5 Is there any way to include additional options or hot keys to MC?
|
|
|
|
|
2004-01-30 11:44:00 +03:00
|
|
|
Yes, F2 invokes an user menu, which is fully configurable. You can
|
|
|
|
add any shell commands to the user menu. See the mc(1) man page for
|
|
|
|
more info.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-10 11:31:40 +04:00
|
|
|
Another way to add functionality is the external panelize feature.
|
|
|
|
See the mc(1) man page for more info.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
And finally, you can code any feature you want yourself. MC source
|
|
|
|
code is free which means you can change it anyway you want. There
|
|
|
|
are some limitations to make sure MC stays free. See GNU General
|
|
|
|
Public License for details.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2004-01-30 11:44:00 +03:00
|
|
|
6.6 When I use Ctrl-O I don't get a subshell. How do I fix this?
|
|
|
|
|
|
|
|
Only bash, tcsh and zsh can be used as subshell. Use one of those
|
|
|
|
shells as your default shell, and it will be used as subshell in GNU
|
|
|
|
Midnight Commander.
|
|
|
|
|
|
|
|
6.7 Ctrl-O doesn't work at all. What happens?
|
|
|
|
|
|
|
|
Ctrl-O works if either the subshell is used or the terminal can save
|
|
|
|
the output of the commands so it can be restored. If neither is
|
|
|
|
true, there is absolutely nothing interesting behind the panels!
|
|
|
|
|
|
|
|
Only few terminals support screen saving. It's xterm, rxvt and other
|
|
|
|
xterm-like terminals and virtual terminals on Linux and FreeBSD.
|
|
|
|
|
2020-12-26 15:50:59 +03:00
|
|
|
6.8 Why I see lot of strange 'cd "printf ' lines into my .history file?
|
|
|
|
|
|
|
|
Add
|
|
|
|
|
|
|
|
export HISTCONTROL="ignoreboth"
|
|
|
|
|
|
|
|
into your ~/.profile file (.bash_profile) for avoid this.
|
|
|
|
|
|
|
|
6.9 I have a problem with Screen which makes using Midnight Commander
|
|
|
|
problematic. I use Ctrl-O to disable panels. Output of previous commands,
|
|
|
|
just a clear, screen is blanked.
|
|
|
|
|
|
|
|
Update GNU Screen to the last version. This bug was fixed in
|
|
|
|
|
|
|
|
commit ad56f746c6243d45124485d198d577bdbb78071c
|
|
|
|
Author: Sadrul Habib Chowdhury <sadrul@users.sourceforge.net>
|
|
|
|
Date: Sun Nov 29 23:34:25 2009 -0500
|
|
|
|
|
|
|
|
Fix using alternate screen buffers in some cases.
|
|
|
|
|
|
|
|
Screen would reset the 'main' screen buffer if an app tries to
|
|
|
|
switch to an alternate buffer while it is already using one (in
|
|
|
|
other words, sends multiple 'smcup' without an 'rmcup'). This should
|
|
|
|
fix debian #558724
|
|
|
|
|
|
|
|
(see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558724)
|
|
|
|
|
|
|
|
or do not rewrite TERM (mustbe TERM=screen) andrun mc as follow:
|
|
|
|
|
|
|
|
echo -e '\e[?1000h' && mc -x
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
7 Virtual file systems
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
7.1 How can I see the contents of a tar archive?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If you use keyboard just move the selection bar on the tar file and
|
2003-08-15 19:26:48 +04:00
|
|
|
press enter. If you use mouse just double-click on the tar file.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
The recognized suffixes for tar archives are .tar, .tar.gz and .tgz.
|
2020-12-26 15:50:59 +03:00
|
|
|
You can also enter a tar archive by typing "cd filename/utar://" where
|
2003-08-15 19:26:48 +04:00
|
|
|
filename is the name of the archive. In this case, the suffix is not
|
|
|
|
important.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
7.2 How do I get out of a tar archive?
|
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
Just press enter on the toplevel ".." file or change to a non-tar
|
|
|
|
directory. Just typing "cd" with no parameters is enough (it will
|
|
|
|
take you to your home directory).
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
7.3 How do I do anonymous ftp with MC?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Just type "cd ftp://hostname" where hostname is the name of the host
|
2003-08-15 19:26:48 +04:00
|
|
|
you want to connect. Alternatively, select FTP link from the Left or
|
1998-02-27 07:54:42 +03:00
|
|
|
Right menu and type the name of the host you want to connect.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
7.4 How do I do non-anonymous ftp with MC?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Non-anonymous ftp works just like the anonymous ftp but you give the
|
2003-08-15 19:26:48 +04:00
|
|
|
login name with the host name. For example, type "cd
|
1998-02-27 07:54:42 +03:00
|
|
|
ftp://username@hostname".
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
7.5 How do I close an ftp connection?
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Just change to a non-ftp directory. Simply typing "cd" with no
|
|
|
|
parameters is enough (it will take you to your home directory).
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
GNU Midnight Commander closes ftp connection automatically after a
|
|
|
|
timeout or on exit. It's possible to force disconnect by selecting
|
|
|
|
"Command" -> "Active VFS List" in the menu and using the "Free VFSs
|
|
|
|
Now" button.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
7.6 Why aren't the contents of ftp panel updated?
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Update is skipped because there would be a serious performance
|
2003-08-15 19:26:48 +04:00
|
|
|
penalty. Constantly updating directory panels through a ftp
|
|
|
|
connection would take too much time.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
You can use C-r to force an update.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-08 10:09:39 +04:00
|
|
|
7.7 What kind of proxy server works with Midnight Commander?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
|
|
|
There are two kinds of ftp proxies: proxies for ftp clients and
|
|
|
|
proxies for web browsers.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-10-29 01:14:51 +03:00
|
|
|
Midnight Commander only supports ftp proxies which are meant for ftp
|
2003-06-09 20:19:44 +04:00
|
|
|
clients. Common WWW proxies (like Squid) are not supported. A rule
|
|
|
|
of thumb is that if a ftp proxy requires a web browser, it won't work
|
1998-10-29 01:14:51 +03:00
|
|
|
with Midnight Commander.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
8 Other common problems
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
8.1 When I try pasting to the internal editor, it indents the amount of
|
2003-07-12 05:13:37 +04:00
|
|
|
indenting increases with each line!
|
|
|
|
|
2003-12-24 10:23:26 +03:00
|
|
|
Either turn off 'Return does autoindent' in the editor options or
|
2003-07-12 05:13:37 +04:00
|
|
|
update GNU Midnight Commander to version 4.6.0 or above - it doesn't
|
|
|
|
autoindent when you are holding Shift.
|
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
8.2 Is it possible to use Colorer for syntax highlighting?
|
2003-07-12 05:13:37 +04:00
|
|
|
|
|
|
|
Yes if you submit the patch. There are no legal problems with it
|
|
|
|
because it's licensed under GPL now. The homepage of Colorer is
|
|
|
|
http://colorer.sourceforge.net/
|
|
|
|
|
|
|
|
|
|
|
|
9 Other common problems
|
|
|
|
|
|
|
|
9.1 Is there any way to 'bookmark' favorite ftp-fs links?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
Use the directory hotlist. Just press control-backslash. If your
|
1998-02-27 07:54:42 +03:00
|
|
|
national keyboard layout doesn't have backslash key, just press the
|
|
|
|
control key with the key which is the backslash key in the English
|
|
|
|
keyboard layout.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
9.2 When I start Midnight Commander, nothing happens!
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
First, invoke MC without subshell support: "mc -u". If this helps
|
2003-06-09 20:19:44 +04:00
|
|
|
check the shell you are using. Subshell support works best with
|
|
|
|
bash, although tcsh and zsh are also supported. You might want to
|
|
|
|
upgrade your shell to a newer version. If you use something else
|
|
|
|
than bash, tcsh or zsh, subshell support is disabled automatically.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
Another reason is problems with gpm. Try using "--nomouse" option to
|
|
|
|
see if it makes any difference. Restarting gpm can help. Sometimes
|
|
|
|
it's enough to move the mouse.
|
|
|
|
|
|
|
|
Also, if you have the DISPLAY environment variable set, but the X
|
|
|
|
server is unreachable (e.g. it's firewalled), this can also cause a
|
|
|
|
delay at startup. Unset DISPLAY to see if that's the case.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-24 11:02:24 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
10 Development
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
10.1 Who has written Midnight Commander?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Midnight Commander was started by Miguel de Icaza and he is the
|
2003-08-15 19:26:48 +04:00
|
|
|
maintainer of the package. Other authors have joined the project
|
1998-02-27 07:54:42 +03:00
|
|
|
later:
|
1998-10-29 01:14:51 +03:00
|
|
|
* Mauricio Plaza (early releases)
|
|
|
|
* Janne Kukonlehto (joined Sep 27 1994)
|
1998-02-27 07:54:42 +03:00
|
|
|
* Radek Doulik (joined Oct 30 1994)
|
|
|
|
* Fred Leeflang (joined Nov 2 1994)
|
|
|
|
* Dugan Porter (joined Dec 1 1994)
|
|
|
|
* Jakub Jelinek (joined Feb 8 1995)
|
|
|
|
* Ching Hui (joined Jun 27 1995)
|
|
|
|
* Andrej Borsenkow (joined Jul 1996)
|
|
|
|
* Paul Sheer (joined Nov 1 1996)
|
|
|
|
* Norbert Warmuth
|
|
|
|
* Alex I. Tkachenko
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2009-06-30 17:58:27 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Alessandro Rubini has been specially helpful with debugging and
|
2003-08-15 19:26:48 +04:00
|
|
|
enhancing of the mouse support. John E. Davis has made his S-Lang
|
2001-08-08 10:09:39 +04:00
|
|
|
library available to us and answered many questions about it.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Many people have contributed bug reports, feature suggestions and
|
|
|
|
small code bits (alphabetical order):
|
|
|
|
* Thomasz Cholewo
|
|
|
|
* Juan Jose Ciarlante
|
|
|
|
* Alexander Dong (OS/2 port, NT port updates)
|
|
|
|
* Erwin van Eijk
|
|
|
|
* Torben Fjerdingstad
|
|
|
|
* Massimo Fontanelli
|
|
|
|
* Juan Grigera (NT port)
|
|
|
|
* Gerd Knorr
|
|
|
|
* Sergey Ya. Korshunoff
|
|
|
|
* Jean-Daniel Luiset
|
|
|
|
* Wim Osterholt
|
|
|
|
* Antonio Palama (old DOS port)
|
|
|
|
* Thomas Pundt
|
|
|
|
* Marcelo Roccasalva
|
|
|
|
* Ilya Rybkin
|
|
|
|
* Vadim Sinolits
|
|
|
|
* Jon Stevens
|
|
|
|
* Adam Tla/lka
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2009-06-30 17:58:27 +04:00
|
|
|
Current list of active developers can be found here:
|
2023-01-02 23:43:20 +03:00
|
|
|
https://www.midnight-commander.org/wiki/McDevelopers
|
2009-06-30 17:58:27 +04:00
|
|
|
|
|
|
|
This page lists everbody who has provided a patch or
|
2020-12-26 15:50:59 +03:00
|
|
|
has written code for the Midnight Commander in the past:
|
2023-01-02 23:43:20 +03:00
|
|
|
https://www.midnight-commander.org/wiki/McContributors
|
2009-06-30 17:58:27 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
10.2 Do I dare to use a development version?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2009-06-30 17:58:27 +04:00
|
|
|
Yes, of course. Feel free to test:
|
2023-01-02 23:43:20 +03:00
|
|
|
https://www.midnight-commander.org/wiki#Download
|
2009-06-30 17:58:27 +04:00
|
|
|
As we do our development in git, please do a git checkout
|
|
|
|
of the master branch and build it
|
|
|
|
|
|
|
|
But always remember: development versions may have nasty bugs
|
2003-06-09 20:19:44 +04:00
|
|
|
at some points of time. It's up to you to judge whether the new
|
|
|
|
features and fixes for the bugs you know outweigh the risk of unknown
|
|
|
|
bugs.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
10.3 How can I report a bug/request for a feature?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
You might first want to get the newest development version to see if
|
|
|
|
the bug is fixed or the feature is added already.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2020-12-26 15:50:59 +03:00
|
|
|
If this is not the case, feel free to add a ticket in our ticket system,
|
2023-01-02 23:43:20 +03:00
|
|
|
which is located here: https://www.midnight-commander.org/newticket
|
2009-06-30 17:58:27 +04:00
|
|
|
|
2023-01-02 23:43:20 +03:00
|
|
|
If you want to send an email instead write your report to
|
|
|
|
mc-devel@lists.midnight-commander.org or mc@lists.midnight-commander.org.
|
2009-06-30 17:58:27 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
These mailing lists are the most certain way to contact the
|
|
|
|
developers. Remember to mention if you are not on the mailing list
|
2001-08-25 01:38:37 +04:00
|
|
|
to make sure that you will receive a copy of replies.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
Give as much details as possible. A too long message is a lot better
|
1998-02-27 07:54:42 +03:00
|
|
|
than a too short message.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
For segmentation faults a stack backtrace is appreciated. You can
|
1998-02-27 07:54:42 +03:00
|
|
|
produce stack backtrace as follows:
|
|
|
|
* If segmentation fault produced a core file:
|
|
|
|
1. Load the core file by typing "gdb mc core" or "dbx mc core".
|
|
|
|
2. Type "where".
|
|
|
|
3. Cut and paste the results to your message.
|
|
|
|
* If segmentation fault didn't produce a core file:
|
|
|
|
1. Load mc by typing "gdb mc" or "dbx mc".
|
|
|
|
2. Start mc by typing "run".
|
2003-08-15 19:26:48 +04:00
|
|
|
3. Try to reproduce the segmentation fault by doing whatever
|
|
|
|
you did last time when the segmentation fault occurred.
|
1998-02-27 07:54:42 +03:00
|
|
|
4. Type "where".
|
|
|
|
5. Cut and paste the results to your message.
|
|
|
|
6. For the future you might want to check out what is the
|
|
|
|
command in your shell to allow producing of the core files.
|
|
|
|
Usually it is "limit coredumpsize unlimited" or "ulimit
|
|
|
|
coredumpsize" or "ulimit -c unlimited".
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
10.4 How can I join the development?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
To join the development just code the feature you want to add and
|
2023-01-02 23:43:20 +03:00
|
|
|
send your patch for inclusion. Email address is mc-devel@lists.midnight-commander.org.
|
2003-08-15 19:26:48 +04:00
|
|
|
Before you start coding check the latest development version. It
|
|
|
|
might be that your feature has already been implemented.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2001-08-25 01:38:37 +04:00
|
|
|
Note that the authors of GNU Midnight Commander have given all their
|
2003-08-15 19:26:48 +04:00
|
|
|
rights on the program to the Free Software Foundation. You will have
|
|
|
|
to do the same if you contribute non-trivial patches. Otherwise we
|
1998-02-27 07:54:42 +03:00
|
|
|
have to reject your patches in order to avoid copyright problems.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
11 More information
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
11.1 This document didn't answer my question. Where else can I look for
|
|
|
|
an answer?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
|
|
|
Read messages from the Discussion (mailing list archive) or read the
|
|
|
|
Manual.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Upgrade to a newer version of Midnight Commander. Many problems are
|
1998-02-27 07:54:42 +03:00
|
|
|
fixed in the new versions.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
If you still can't find an answer, post your question to the Midnight
|
2023-01-02 23:43:20 +03:00
|
|
|
Commander mailing list. Its address is mc@lists.midnight-commander.org.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
11.2 What mailing lists are there for Midnight Commander?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Following mailing lists discuss about Midnight Commander:
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2023-01-02 23:43:20 +03:00
|
|
|
mc@lists.midnight-commander.org
|
2001-08-25 01:38:37 +04:00
|
|
|
General discussion of GNU Midnight Commander
|
2001-05-18 20:28:22 +04:00
|
|
|
To subscribe visit
|
2023-01-02 23:43:20 +03:00
|
|
|
https://lists.midnight-commander.org/mailman/listinfo/mc/
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2023-01-02 23:43:20 +03:00
|
|
|
mc-devel@lists.midnight-commander.org
|
1998-02-27 07:54:42 +03:00
|
|
|
Technical development discussion
|
2001-05-18 20:28:22 +04:00
|
|
|
To subscribe visit
|
2023-01-02 23:43:20 +03:00
|
|
|
https://lists.midnight-commander.org/mailman/listinfo/mc-devel/
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2009-06-30 17:58:27 +04:00
|
|
|
mc-commits@googlegroups.com
|
|
|
|
mailing list only for applyed commits into master/stable branches
|
|
|
|
To subscribe visit
|
|
|
|
http://groups.google.com/group/mc-commits/subscribe
|
|
|
|
|
|
|
|
mc-bugs@googlegroups.com
|
|
|
|
Mailing list only for tickets and comments (use it as RSS :) )
|
|
|
|
To subscribe visit
|
|
|
|
http://groups.google.com/group/mc-bugs/subscribe
|
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
11.3 Where should I look on the World Wide Web for MC stuff?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
There is a WWW page for Midnight Commander. The URL is:
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2023-01-02 23:43:20 +03:00
|
|
|
https://www.midnight-commander.org/
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
11.4 Are the mailing lists archived anywhere?
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
The mc and mc-devel lists are archived on the World Wide Web. There
|
|
|
|
are links to the archives on the mailing list pages (see 10.2).
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
12 Legal issues
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
12.1 Authorship
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-06-09 20:19:44 +04:00
|
|
|
Questions and Answers was written by Janne Kukonlehto. Parts of it
|
1998-02-27 07:54:42 +03:00
|
|
|
originate from Ian Jackson, Miguel de Icaza, Dugan Porter, Norbert
|
|
|
|
Warmuth and Paul Sheer.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
12.2 Feedback is invited
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2001-08-25 01:38:37 +04:00
|
|
|
Send your comments about this document and GNU Midnight Commander to
|
2023-01-02 23:43:20 +03:00
|
|
|
mc@lists.midnight-commander.org
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-07-12 05:13:37 +04:00
|
|
|
12.3 Disclaimer and copyright
|
1998-10-29 01:14:51 +03:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
Note that this document is provided as is. The information in it is
|
1998-02-27 07:54:42 +03:00
|
|
|
not warranted to be correct; you use it at your own risk.
|
2001-08-25 02:46:57 +04:00
|
|
|
|
2003-08-15 19:26:48 +04:00
|
|
|
You can use Questions and Answers according to GNU General Public
|
|
|
|
License (see the COPYING file in GNU Midnight Commander source
|
|
|
|
distribution). Questions and Answers is not public domain.
|