FAQ 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. GNU Midnight Commander
  2. Frequently Asked Questions
  3. The newest version of this document is available at
  4. https://www.midnight-commander.org/browser/doc/FAQ
  5. * 1 Getting started
  6. + 1.1 What is Midnight Commander?
  7. + 1.2 Does it run on my machine?
  8. + 1.3 Does it work with my terminal?
  9. + 1.4 What else do I need to run MC?
  10. + 1.5 Is GNU Midnight Commander Public Domain? Copyrighted?
  11. + 1.6 Where can I get GNU Midnight Commander?
  12. + 1.7 I cannot compile MC. What should I do?
  13. * 2 Keyboard
  14. + 2.1 What does documentation mean with the C-?, M-? and F?
  15. keys?
  16. + 2.2 Why don't function keys (or some other key) work?
  17. + 2.3 How do I use function keys F11 to F20?
  18. + 2.4 Why does the ESC key behave funny?
  19. + 2.5 How can I add the plus sign (+) on the command line?
  20. + 2.6 C-o doesn't work!
  21. + 2.7 What 'keys' are the "a1" and "c1" keys mentioned in the
  22. manual?
  23. + 2.8 How do I change the key bindings?
  24. * 3 Mouse
  25. + 3.1 How do I enable mouse support?
  26. + 3.2 How do I cut and paste text with mouse?
  27. + 3.3 How do I get the extension dependent pop-up menu to
  28. pop up?
  29. * 4 Display
  30. + 4.1 Why do I keep getting "Terminal not powerful enough for
  31. SLang" or "Terminal not powerful enough for SLsmg"?
  32. + 4.2 Why don't line drawing characters work?
  33. + 4.3 Can one use latin-1 characters without losing the lines?
  34. + 4.4 I have problems with entering/viewing national
  35. characters!
  36. + 4.5 How can I get colors?
  37. + 4.6 My color_xterm goes completely (or partially) black!
  38. + 4.7 Where can I get xterm or rxvt?
  39. + 4.8 I got colors working with MC but the other programs
  40. don't work at all anymore!
  41. + 4.9 Why are there both terminfo and termcap? Wouldn't one
  42. database be enough?
  43. * 5 Graphical user interface
  44. + 5.1 Xview, Tk and Gnome editions?
  45. + 5.2 Why is MC linked with X libraries?
  46. * 6 Command line problems
  47. + 6.1 How do I stay in the last directory when I exit Midnight
  48. Commander?
  49. + 6.2 How can I access command line history?
  50. + 6.3 How can I complete commands, file names, variable names
  51. and so on?
  52. + 6.4 I am using ksh. Can I use functions defined in the
  53. .kshrc within MC?
  54. + 6.5 Is there any way to include additional options or hot
  55. keys to MC?
  56. + 6.6 When I use Ctrl-O I don't get a subshell. How do I fix
  57. this?
  58. + 6.7 Ctrl-O doesn't work at all. What happens?
  59. * 7 Virtual file systems
  60. + 7.1 How can I see the contents of a tar archive?
  61. + 7.2 How do I get out of a tar archive?
  62. + 7.3 How do I do anonymous ftp with MC?
  63. + 7.4 How do I do non-anonymous ftp with MC?
  64. + 7.5 How do I close an ftp connection?
  65. + 7.6 Why aren't the contents of ftp panel updated?
  66. + 7.7 What kind of proxy server works with Midnight Commander?
  67. * 8 Internal editor
  68. + 8.1 When I try pasting to the internal editor, it indents
  69. the amount of indenting increases with each line!
  70. + 8.2 Is it possible to use Colorer for syntax highlighting?
  71. * 9 Other common problems
  72. + 9.1 Is there any way to 'bookmark' favorite ftp-fs links?
  73. + 9.2 When I start Midnight Commander, nothing happens!
  74. * 10 Development
  75. + 10.1 Who has written Midnight Commander?
  76. + 10.2 Do I dare to use a development version?
  77. + 10.3 How can I report a bug/request for a feature?
  78. + 10.4 How can I join the development?
  79. * 11 More information
  80. + 11.1 This document didn't answer my question. Where else
  81. can I look for an answer?
  82. + 11.2 What mailing lists are there for Midnight Commander?
  83. + 11.3 Where should I look on the World Wide Web for MC stuff?
  84. + 11.4 Are the mailing lists archived anywhere?
  85. * 12 Legal issues
  86. + 12.1 Authorship
  87. + 12.2 Feedback is invited
  88. + 12.3 Disclaimer and copyright
  89. 1 Getting started
  90. 1.1 What is Midnight Commander?
  91. GNU Midnight Commander is a user-friendly yet powerful file manager
  92. and visual shell, useful to novice and guru alike. It provides a
  93. clear, user-friendly, and somewhat protected interface to a Unix
  94. system while making many frequent file operations more efficient and
  95. preserving the full power of the command prompt. After some
  96. practice, you will wonder how you could ever live without it.
  97. 1.2 Does it run on my machine?
  98. GNU Midnight Commander runs on POSIX (Unix-like) operating systems,
  99. such as GNU/Linux, FreeBSD, Mac OS X, Solaris, HP-UX and others. It
  100. can also be compiled under Cygwin on Windows.
  101. GNU Midnight Commander uses GNU Autoconf which should automatically
  102. configure it for every Unix clone. Following configurations have
  103. been tested in the past (this list is very old):
  104. * i386-*-linux1.x, 2.x
  105. * alpha-linux-linux2
  106. * sparc-linux-linux2.x
  107. * sparc64-linux-linux2.1
  108. * mips-sgi-irix5.x, 6.x
  109. * sparc-sun-sunos4.1
  110. * sparc-sun-solaris2.3, 2.4, 2.5
  111. * sparc-sun-netbsd1.0
  112. * hppa-hp-hpux9
  113. * hppa-hp-hpux7
  114. * m68k-apple-aux
  115. * unixware
  116. * mc88110-aviion-dgux5.4R2.01
  117. * i386-*-sco3.2v4.2
  118. * i386-*-sco3.2v5
  119. 1.3 Does it work with my terminal?
  120. Yes, it does.
  121. Because GNU Midnight Commander is a full screen program it doesn't
  122. run on dummy terminals but anything more advanced will do (like
  123. vt100). If your terminal works with vi, emacs, elm or pine it will
  124. work with GNU Midnight Commander.
  125. 1.4 What else do I need to run MC?
  126. You need a POSIX (Unix compatible) operating system. If you are
  127. running Windows, use Cygwin.
  128. To compile any edition you need to have glib >= 2.32 installed.
  129. It's available at https://download.gnome.org/sources/glib/.
  130. If you want to use mouse on the Linux console you need the gpm daemon
  131. from https://www.nico.schottelius.org/software/gpm/. You need nothing
  132. extra to use mouse on xterm.
  133. If you do not want to use the S-Lang library you could try using
  134. ncurses version 4.1 and above.
  135. 1.5 Is GNU Midnight Commander Public Domain? Copyrighted?
  136. Midnight Commander is under GNU Public License which basically means
  137. that you may freely copy, change and distribute it, but that you may
  138. not impose any restrictions on further distribution, and that you
  139. must make the source code available. This is not the same as Public
  140. Domain. For details, the GNU license is included in GNU Midnight
  141. Commander source distribution (the COPYING file).
  142. Midnight Commander is now officially a part of the GNU project.
  143. All the authors of GNU Midnight Commander have given all their rights
  144. on the program to the Free Software Foundation.
  145. 1.6 Where can I get GNU Midnight Commander?
  146. The main site is https://www.midnight-commander.org
  147. 1.7 I cannot compile MC. What should I do?
  148. Make sure you have read the INSTALL file in the sources. Report the
  149. error messages exactly as they appear, mention the versions of your
  150. OS, your compiler and whatever else software you think is relevant.
  151. If you have compile problems in the VFS code, try disabling it by
  152. using "--disable-vfs" option.
  153. f2 Keyboard
  154. 2.1 What does documentation mean with the C-?, M-? and F? keys?
  155. GNU Midnight Commander documentation uses emacs style names for
  156. keyboard keys.
  157. C stands for the Ctrl key. For example, C-f means that you should
  158. hold down the Ctrl key and press the f key.
  159. M stands for the Meta key. Your terminal might call it Alt or
  160. Compose instead of Meta. For example, M-f means that you should hold
  161. down the Meta/Alt/Compose key and press the f key. If your terminal
  162. doesn't have Meta, Alt or Compose or they don't work you can use Esc.
  163. For M-f press the Esc key and then press the f key.
  164. Sometimes Ctrl and Alt are used instead of C and M for simplicity.
  165. Keep in mind that Alt can actually be Meta on some keyboards.
  166. F? stands for a function key. If your terminal doesn't have function
  167. keys or they don't work you can use Esc. For example, for F3 press
  168. the Esc key and then press the 3 key.
  169. 2.2 Why don't function keys (or some other key) work?
  170. Your terminfo or termcap database has missing or incorrect
  171. definitions for function keys. Type "mc -V" to see what terminal
  172. database is being used. If the result is "using the S-Lang library
  173. with terminfo database" and you are using a very old terminfo
  174. database, consider installing one of the enhanced terminfo files
  175. included in GNU Midnight Commander source distribution. For example,
  176. if you are using xterm type "tic xterm.ti".
  177. If the result is "using the S-Lang library with termcap database" you
  178. should fix your /etc/termcap database.
  179. Up-to-date termcap and terminfo databases are available here:
  180. http://www.catb.org/~esr/terminfo/
  181. ftp://ftp.gnu.org/pub/gnu/ncurses/
  182. If you don't have permissions to edit terminal databases you can use
  183. Learn keys feature of Midnight Commander instead. Press Esc 9 o k
  184. and follow instructions.
  185. If all else fails you can emulate function keys by first pressing the
  186. ESC key and then one of the number keys. For example, if you want to
  187. produce F9, press ESC, then 9. If you don't have a ESC key on your
  188. keyboard you can try alt-9 or meta-9.
  189. 2.3 How do I use function keys F11 to F20?
  190. These are normally mapped to function keys F1 to F10 with Shift held,
  191. e.g. function key F13 can be activated by pressing Shift-F3. You can
  192. define the keys this way in the Options->Learn Keys dialog. The
  193. convention for PC keyboards is that F11-20 always means Shift with
  194. F1-10.
  195. You may find that on the Linux console with some keyboard layouts
  196. Shift-Fn is interpreted as F(n+12), not as F(n+10). This is a result
  197. of non-uniformity of keyboard layouts. This is not an intended
  198. behavior and it may be fixed some day. In the meantime, use "Learn
  199. Keys" to remedy this inconvenience.
  200. 2.4 Why does the ESC key behave funny?
  201. Midnight Commander uses the ESC key as a prefix for simulating the
  202. Meta and Alt keys (for terminals which don't have Meta or Alt, see
  203. the three previous questions). For example, pressing ESC-a is the
  204. same as pressing Meta-a. In addition most terminals use ESC for
  205. internal representation of arrow keys, function keys and other
  206. enhanced keys. If you want to use ESC to cancel things you have to
  207. press it twice i.e. ESC-ESC. If you find this cumbersome you can
  208. generally use F10 to cancel. Alternatively turn on the old_esc_mode
  209. setting in the ~/.config/mc/ini file. The
  210. old_esc_mode setting makes ESC work as a prefix only if another key
  211. is pressed within 0.5 seconds. After 0.5 seconds the ESC key cancels.
  212. There is no way to make ESC cancel immediately (if we want to be able
  213. to use arrows keys and function keys).
  214. 2.5 How can I add the plus sign (+) on the command line?
  215. Press C-q first, then press the + sign.
  216. The plus key is the hotkey for the select files command. If you want
  217. to add a literal plus on to the command line you must quote it by
  218. pressing C-q first.
  219. Another common key which needs the C-q prefix is backslash "\".
  220. 2.6 C-o doesn't work!
  221. Maybe C-o is a stty control character on your terminal. See man stty
  222. for details on how to list and change stty control characters.
  223. 2.7 What 'keys' are the "a1" and "c1" keys mentioned in the manual?
  224. A1 is the "Home" key on the keypad (numpad 7 with Num Lock turned
  225. off), which is decoded as a different key from the regular "Home".
  226. Likewise C1 is keypad "End", A3 is keypad "Page Up", C3 is keypad
  227. "Page Down", and B2 is documented to "center of keypad", i.e. the 5
  228. key, though I don't know whether any keyboards actually use that.
  229. They are documented for the curses library (search for "keypad"):
  230. https://pubs.opengroup.org/onlinepubs/007908799/xcurses/curses.h.html
  231. 2.8 How do I change the key bindings?
  232. Key binding con be reconfigure via keymap files: /etc/mc/mc.keymap
  233. and ~/.config/mc/mc.keymap.
  234. You can use the "Learn Keys" dialog to assign keys to some actions
  235. listed in that dialog.
  236. 3 Mouse
  237. 3.1 How do I enable mouse support?
  238. Invoke mc like this (without quotes): "mc -x". If this doesn't work
  239. upgrade to a terminal which compatible with the Xterm mouse
  240. sequences.
  241. Alternatively, on Linux console you can use gpm.
  242. 3.2 How do I cut and paste text with mouse?
  243. Hold down shift key while using mouse to cut and paste.
  244. 4 Display
  245. 4.1 Why do I keep getting "Terminal not powerful enough for SLang" or
  246. "Terminal not powerful enough for SLsmg"?
  247. This means that your terminfo databases do not contain the correct
  248. definitions for your terminal.
  249. You could try using a different terminal setting. If you use csh or
  250. tcsh:
  251. setenv TERM vt100
  252. or if you use sh, bash, ksh or zsh:
  253. export TERM=vt100
  254. 4.2 Why don't line drawing characters work?
  255. Since version 4.0.13 there's the command line option -a to force use
  256. of charaters +, |, - for line drawing. Use the -a option if any
  257. of the suggestions below doesn't help.
  258. In general, there are three cases:
  259. * Lines are shown as ASCII characters like this
  260. +---------+
  261. | |
  262. +---------+
  263. This also happens when you use the -a option. Other than that
  264. possible reason is 1 or 2 (see below).
  265. * Lines are shown as lower case characters like this
  266. lqqqqqqqqqk
  267. x x
  268. mqqqqqqqqqj
  269. Possible reason is 1 or 2 (see below).
  270. * Lines are shown as blanks or missing characters. Possible reason
  271. is 2 or 3 (see below).
  272. The reason for the problem is one of following:
  273. 1. Your terminal might not support line drawing characters. VT100
  274. compatible terminals, rxvt and xterm and color_xterm do support
  275. them.
  276. 2. Your terminfo or termcap database might have missing or incorrect
  277. definitions for line drawing characters. Set the acsc variable
  278. in the terminfo database like this:
  279. acsc=a\376k\277l\332m\300j\331n\305w\302v\301u\264t\303q\304x
  280. \263h\2600\333
  281. Don't forget issue 'tic' command. This supposes you are using PC
  282. character set. The octal values might be different for other
  283. character sets. If you are using termcap instead of terminfo,
  284. you should modify above solution appropriately.
  285. 3. Your terminal font might not support line drawing characters.
  286. Try changing the font.
  287. Here is Miguel's answer to Torben on this subject.
  288. Torben:
  289. When I load consolefonts/iso01.f16, I get perfectly right national
  290. characters, but the line drawing characters in mc get wrong. Is it
  291. a mc problem, or is it a problem with the font? (I guess it is).
  292. Is there a trick?
  293. Miguel:
  294. First of all, we should determine whether the font has line drawing
  295. characters or not.
  296. If it has line drawing characters, then a new terminfo entry should
  297. be written for this specific case. Let's call this linux-iso01.
  298. The acsc variable should be modified to reflect which characters
  299. are used to do the line drawing.
  300. If it does not have line drawing characters, then we should get rid
  301. of the switch to acsc sequences and make the acsc sequence be just
  302. a mapping to the ugly +, -, |, - characters.
  303. You can get your terminfo definition by running the infocmp
  304. program, making the proper changes and running the tic program to
  305. compile your new terminfo database.
  306. 4.3 Can one use latin-1 characters without losing the lines?
  307. Yes, you need a correct font and a correct termcap/terminfo database.
  308. For font, if you use xterm try "xterm -fn fixed".
  309. For termcap/terminfo database, change the acsc capability in the
  310. database.
  311. 4.4 I have problems with entering/viewing national characters!
  312. From the Options - Display Bits dialog select Full 8 bits or ISO
  313. 8859-1. In addition, select 8 bit input from the same dialog.
  314. 4.5 How can I get colors?
  315. Invoke mc like this (without quotes): "mc -c".
  316. If you get colors, be happy.
  317. If your terminal stays black and white, your terminal doesn't support
  318. color. You might want to upgrade to a terminal which compatible with
  319. the ANSI color sequences.
  320. If your terminal goes completely black, see the next question.
  321. More detailed answer:
  322. Check that your terminal supports color. color_xterm, rxvt and Linux
  323. console do support, most other terminals don't. You can test color
  324. support with following simple C program:
  325. #include <stdio.h>
  326. int main (void){
  327. printf ("\033[32m Hello world! \033[m\n");
  328. return 0;
  329. }
  330. Compile and run it. If you see "Hello world!" text in green your
  331. terminal supports color, otherwise not (however, for color_xterm see
  332. also the next question).
  333. Check whether you are using Ncurses or the S-Lang library (type
  334. "mc -V" to find out).
  335. With S-Lang library you can force color support by setting the
  336. environment variable COLORTERM to any value.
  337. If you use ncurses library, check that your terminfo database
  338. supports color. If not, you should install one of the enhanced
  339. terminfo databases included in GNU Midnight Commander source
  340. distribution.
  341. You might want to set the TERM environment variable so that you are
  342. using the correct terminfo database or termcap entry.
  343. If you use color_xterm (or rxvt) the correct value might be
  344. xterm-color, xtermc or simply xterm.
  345. If you use Linux console the correct value for TERM is linux or
  346. console.
  347. 4.6 My color_xterm goes completely (or partially) black!
  348. Some color_xterm terminals define all colors as black instead of the
  349. standard ANSI colors. This makes them go completely black when you
  350. try to use Midnight Commander with colors.
  351. You will have to override the defaults. Create a file
  352. "color.defaults" which has the following contents:
  353. color_xterm*color0: Black
  354. color_xterm*color1: Red
  355. color_xterm*color2: Green
  356. color_xterm*color3: Yellow
  357. color_xterm*color4: Blue
  358. color_xterm*color5: Magenta
  359. color_xterm*color6: Cyan
  360. color_xterm*color7: White
  361. color_xterm*background: White
  362. color_xterm*foreground: Black
  363. (replace color_xterm with the name of your color_xterm, color_xterm
  364. mentions its name in its title bar)
  365. Now type:
  366. xrdb -merge color.defaults
  367. Alternatively you can add the suggested contents of the
  368. color.defaults file to your .Xdefaults or .Xresources file (or what
  369. ever the name of your X configuration file is). Or you can replace
  370. your non-ANSI color_xterm with an ANSI color_xterm.
  371. 4.7 Where can I get xterm or rxvt?
  372. xterm is included with the X Window System, so you probably already
  373. have it if you have X. This version is not actively maintained, but
  374. Thomas Dickey maintains his more advanced version of xterm at
  375. ftp://dickey.his.com/xterm/
  376. rxvt has its own site http://www.rxvt.net/ - get the latest version
  377. there.
  378. 4.8 I got colors working with MC but the other programs don't work at
  379. all anymore!
  380. Midnight Commander uses terminfo database (if available) but many
  381. other programs use termcap database. If you set the TERM environment
  382. variable to a value which has no corresponding entry in termcap
  383. database those programs stop working. You should add the new value
  384. of TERM to the termcap database.
  385. Example: If you have set TERM to xterm-color locate from /etc/termcap
  386. the line which starts:
  387. xterm|vs100|xterm terminal emulator
  388. Change it to start:
  389. xterm|xterm-color|vs100|xterm terminal emulator
  390. 5 Graphical user interface
  391. 5.1 Xview, Tk and Gnome editions?
  392. Xview and Tk and GNOME editions have been removed from the sources.
  393. 5.2 Why is MC linked with X libraries?
  394. GNU Midnight Commander is linked with X libraries to read key
  395. modifiers from the X Server. It may be helpful to distinguish
  396. between keys that the terminal emulator reports in the same way, e.g.
  397. PgUp and Ctrl-PgUp. Versions of GNU Midnight Commander after 4.6.0
  398. will load X libraries dynamically on the systems that support it.
  399. 6 Command line problems
  400. 6.1 How do I stay in the last directory when I exit Midnight Commander?
  401. See the description of the -P option in the Options section of the
  402. manual.
  403. 6.2 How can I access command line history?
  404. Meta-h shows the last commands you executed from the command line.
  405. Duplicates are suppressed from the history. Commands executed from
  406. the subshell prompt are not shown.
  407. You can put previous commands to the command line with Meta-p. Meta-n
  408. moves you forward in history.
  409. Since version 4.1.15 all the input widgets have permanent history.
  410. You can summon the history listbox by pressing M-h.
  411. 6.3 How can I complete commands, file names, variable names and so on?
  412. Just press M-Tab. Press M-Tab again to get a listbox if there are
  413. multiple possible completions.
  414. 6.4 I am using ksh. Can I use functions defined in the .kshrc within
  415. MC?
  416. Sorry, MC only supports bash, tcsh and zsh functions. Ksh functions
  417. are not supported because ksh lacks the necessary hooks needed for
  418. subshell integration.
  419. Switch to bash or zsh. They are both quite compatible with ksh.
  420. Your ksh functions should work as such or after minimal changes.
  421. 6.5 Is there any way to include additional options or hot keys to MC?
  422. Yes, F2 invokes an user menu, which is fully configurable. You can
  423. add any shell commands to the user menu. See the mc(1) man page for
  424. more info.
  425. Another way to add functionality is the external panelize feature.
  426. See the mc(1) man page for more info.
  427. And finally, you can code any feature you want yourself. MC source
  428. code is free which means you can change it anyway you want. There
  429. are some limitations to make sure MC stays free. See GNU General
  430. Public License for details.
  431. 6.6 When I use Ctrl-O I don't get a subshell. How do I fix this?
  432. Only bash, tcsh and zsh can be used as subshell. Use one of those
  433. shells as your default shell, and it will be used as subshell in GNU
  434. Midnight Commander.
  435. 6.7 Ctrl-O doesn't work at all. What happens?
  436. Ctrl-O works if either the subshell is used or the terminal can save
  437. the output of the commands so it can be restored. If neither is
  438. true, there is absolutely nothing interesting behind the panels!
  439. Only few terminals support screen saving. It's xterm, rxvt and other
  440. xterm-like terminals and virtual terminals on Linux and FreeBSD.
  441. 6.8 Why I see lot of strange 'cd "printf ' lines into my .history file?
  442. Add
  443. export HISTCONTROL="ignoreboth"
  444. into your ~/.profile file (.bash_profile) for avoid this.
  445. 6.9 I have a problem with Screen which makes using Midnight Commander
  446. problematic. I use Ctrl-O to disable panels. Output of previous commands,
  447. just a clear, screen is blanked.
  448. Update GNU Screen to the last version. This bug was fixed in
  449. commit ad56f746c6243d45124485d198d577bdbb78071c
  450. Author: Sadrul Habib Chowdhury <sadrul@users.sourceforge.net>
  451. Date: Sun Nov 29 23:34:25 2009 -0500
  452. Fix using alternate screen buffers in some cases.
  453. Screen would reset the 'main' screen buffer if an app tries to
  454. switch to an alternate buffer while it is already using one (in
  455. other words, sends multiple 'smcup' without an 'rmcup'). This should
  456. fix debian #558724
  457. (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558724)
  458. or do not rewrite TERM (mustbe TERM=screen) andrun mc as follow:
  459. echo -e '\e[?1000h' && mc -x
  460. 7 Virtual file systems
  461. 7.1 How can I see the contents of a tar archive?
  462. If you use keyboard just move the selection bar on the tar file and
  463. press enter. If you use mouse just double-click on the tar file.
  464. The recognized suffixes for tar archives are .tar, .tar.gz and .tgz.
  465. You can also enter a tar archive by typing "cd filename/utar://" where
  466. filename is the name of the archive. In this case, the suffix is not
  467. important.
  468. 7.2 How do I get out of a tar archive?
  469. Just press enter on the toplevel ".." file or change to a non-tar
  470. directory. Just typing "cd" with no parameters is enough (it will
  471. take you to your home directory).
  472. 7.3 How do I do anonymous ftp with MC?
  473. Just type "cd ftp://hostname" where hostname is the name of the host
  474. you want to connect. Alternatively, select FTP link from the Left or
  475. Right menu and type the name of the host you want to connect.
  476. 7.4 How do I do non-anonymous ftp with MC?
  477. Non-anonymous ftp works just like the anonymous ftp but you give the
  478. login name with the host name. For example, type "cd
  479. ftp://username@hostname".
  480. 7.5 How do I close an ftp connection?
  481. Just change to a non-ftp directory. Simply typing "cd" with no
  482. parameters is enough (it will take you to your home directory).
  483. GNU Midnight Commander closes ftp connection automatically after a
  484. timeout or on exit. It's possible to force disconnect by selecting
  485. "Command" -> "Active VFS List" in the menu and using the "Free VFSs
  486. Now" button.
  487. 7.6 Why aren't the contents of ftp panel updated?
  488. Update is skipped because there would be a serious performance
  489. penalty. Constantly updating directory panels through a ftp
  490. connection would take too much time.
  491. You can use C-r to force an update.
  492. 7.7 What kind of proxy server works with Midnight Commander?
  493. There are two kinds of ftp proxies: proxies for ftp clients and
  494. proxies for web browsers.
  495. Midnight Commander only supports ftp proxies which are meant for ftp
  496. clients. Common WWW proxies (like Squid) are not supported. A rule
  497. of thumb is that if a ftp proxy requires a web browser, it won't work
  498. with Midnight Commander.
  499. 8 Other common problems
  500. 8.1 When I try pasting to the internal editor, it indents the amount of
  501. indenting increases with each line!
  502. Either turn off 'Return does autoindent' in the editor options or
  503. update GNU Midnight Commander to version 4.6.0 or above - it doesn't
  504. autoindent when you are holding Shift.
  505. 8.2 Is it possible to use Colorer for syntax highlighting?
  506. Yes if you submit the patch. There are no legal problems with it
  507. because it's licensed under GPL now. The homepage of Colorer is
  508. http://colorer.sourceforge.net/
  509. 9 Other common problems
  510. 9.1 Is there any way to 'bookmark' favorite ftp-fs links?
  511. Use the directory hotlist. Just press control-backslash. If your
  512. national keyboard layout doesn't have backslash key, just press the
  513. control key with the key which is the backslash key in the English
  514. keyboard layout.
  515. 9.2 When I start Midnight Commander, nothing happens!
  516. First, invoke MC without subshell support: "mc -u". If this helps
  517. check the shell you are using. Subshell support works best with
  518. bash, although tcsh and zsh are also supported. You might want to
  519. upgrade your shell to a newer version. If you use something else
  520. than bash, tcsh or zsh, subshell support is disabled automatically.
  521. Another reason is problems with gpm. Try using "--nomouse" option to
  522. see if it makes any difference. Restarting gpm can help. Sometimes
  523. it's enough to move the mouse.
  524. Also, if you have the DISPLAY environment variable set, but the X
  525. server is unreachable (e.g. it's firewalled), this can also cause a
  526. delay at startup. Unset DISPLAY to see if that's the case.
  527. 10 Development
  528. 10.1 Who has written Midnight Commander?
  529. Midnight Commander was started by Miguel de Icaza and he is the
  530. maintainer of the package. Other authors have joined the project
  531. later:
  532. * Mauricio Plaza (early releases)
  533. * Janne Kukonlehto (joined Sep 27 1994)
  534. * Radek Doulik (joined Oct 30 1994)
  535. * Fred Leeflang (joined Nov 2 1994)
  536. * Dugan Porter (joined Dec 1 1994)
  537. * Jakub Jelinek (joined Feb 8 1995)
  538. * Ching Hui (joined Jun 27 1995)
  539. * Andrej Borsenkow (joined Jul 1996)
  540. * Paul Sheer (joined Nov 1 1996)
  541. * Norbert Warmuth
  542. * Alex I. Tkachenko
  543. Alessandro Rubini has been specially helpful with debugging and
  544. enhancing of the mouse support. John E. Davis has made his S-Lang
  545. library available to us and answered many questions about it.
  546. Many people have contributed bug reports, feature suggestions and
  547. small code bits (alphabetical order):
  548. * Thomasz Cholewo
  549. * Juan Jose Ciarlante
  550. * Alexander Dong (OS/2 port, NT port updates)
  551. * Erwin van Eijk
  552. * Torben Fjerdingstad
  553. * Massimo Fontanelli
  554. * Juan Grigera (NT port)
  555. * Gerd Knorr
  556. * Sergey Ya. Korshunoff
  557. * Jean-Daniel Luiset
  558. * Wim Osterholt
  559. * Antonio Palama (old DOS port)
  560. * Thomas Pundt
  561. * Marcelo Roccasalva
  562. * Ilya Rybkin
  563. * Vadim Sinolits
  564. * Jon Stevens
  565. * Adam Tla/lka
  566. Current list of active developers can be found here:
  567. https://www.midnight-commander.org/wiki/McDevelopers
  568. This page lists everbody who has provided a patch or
  569. has written code for the Midnight Commander in the past:
  570. https://www.midnight-commander.org/wiki/McContributors
  571. 10.2 Do I dare to use a development version?
  572. Yes, of course. Feel free to test:
  573. https://www.midnight-commander.org/wiki#Download
  574. As we do our development in git, please do a git checkout
  575. of the master branch and build it
  576. But always remember: development versions may have nasty bugs
  577. at some points of time. It's up to you to judge whether the new
  578. features and fixes for the bugs you know outweigh the risk of unknown
  579. bugs.
  580. 10.3 How can I report a bug/request for a feature?
  581. You might first want to get the newest development version to see if
  582. the bug is fixed or the feature is added already.
  583. If this is not the case, feel free to add a ticket in our ticket system,
  584. which is located here: https://www.midnight-commander.org/newticket
  585. If you want to send an email instead write your report to
  586. mc-devel@lists.midnight-commander.org or mc@lists.midnight-commander.org.
  587. These mailing lists are the most certain way to contact the
  588. developers. Remember to mention if you are not on the mailing list
  589. to make sure that you will receive a copy of replies.
  590. Give as much details as possible. A too long message is a lot better
  591. than a too short message.
  592. For segmentation faults a stack backtrace is appreciated. You can
  593. produce stack backtrace as follows:
  594. * If segmentation fault produced a core file:
  595. 1. Load the core file by typing "gdb mc core" or "dbx mc core".
  596. 2. Type "where".
  597. 3. Cut and paste the results to your message.
  598. * If segmentation fault didn't produce a core file:
  599. 1. Load mc by typing "gdb mc" or "dbx mc".
  600. 2. Start mc by typing "run".
  601. 3. Try to reproduce the segmentation fault by doing whatever
  602. you did last time when the segmentation fault occurred.
  603. 4. Type "where".
  604. 5. Cut and paste the results to your message.
  605. 6. For the future you might want to check out what is the
  606. command in your shell to allow producing of the core files.
  607. Usually it is "limit coredumpsize unlimited" or "ulimit
  608. coredumpsize" or "ulimit -c unlimited".
  609. 10.4 How can I join the development?
  610. To join the development just code the feature you want to add and
  611. send your patch for inclusion. Email address is mc-devel@lists.midnight-commander.org.
  612. Before you start coding check the latest development version. It
  613. might be that your feature has already been implemented.
  614. Note that the authors of GNU Midnight Commander have given all their
  615. rights on the program to the Free Software Foundation. You will have
  616. to do the same if you contribute non-trivial patches. Otherwise we
  617. have to reject your patches in order to avoid copyright problems.
  618. 11 More information
  619. 11.1 This document didn't answer my question. Where else can I look for
  620. an answer?
  621. Read messages from the Discussion (mailing list archive) or read the
  622. Manual.
  623. Upgrade to a newer version of Midnight Commander. Many problems are
  624. fixed in the new versions.
  625. If you still can't find an answer, post your question to the Midnight
  626. Commander mailing list. Its address is mc@lists.midnight-commander.org.
  627. 11.2 What mailing lists are there for Midnight Commander?
  628. Following mailing lists discuss about Midnight Commander:
  629. mc@lists.midnight-commander.org
  630. General discussion of GNU Midnight Commander
  631. To subscribe visit
  632. https://lists.midnight-commander.org/mailman/listinfo/mc/
  633. mc-devel@lists.midnight-commander.org
  634. Technical development discussion
  635. To subscribe visit
  636. https://lists.midnight-commander.org/mailman/listinfo/mc-devel/
  637. mc-commits@googlegroups.com
  638. mailing list only for applyed commits into master/stable branches
  639. To subscribe visit
  640. http://groups.google.com/group/mc-commits/subscribe
  641. mc-bugs@googlegroups.com
  642. Mailing list only for tickets and comments (use it as RSS :) )
  643. To subscribe visit
  644. http://groups.google.com/group/mc-bugs/subscribe
  645. 11.3 Where should I look on the World Wide Web for MC stuff?
  646. There is a WWW page for Midnight Commander. The URL is:
  647. https://www.midnight-commander.org/
  648. 11.4 Are the mailing lists archived anywhere?
  649. The mc and mc-devel lists are archived on the World Wide Web. There
  650. are links to the archives on the mailing list pages (see 10.2).
  651. 12 Legal issues
  652. 12.1 Authorship
  653. Questions and Answers was written by Janne Kukonlehto. Parts of it
  654. originate from Ian Jackson, Miguel de Icaza, Dugan Porter, Norbert
  655. Warmuth and Paul Sheer.
  656. 12.2 Feedback is invited
  657. Send your comments about this document and GNU Midnight Commander to
  658. mc@lists.midnight-commander.org
  659. 12.3 Disclaimer and copyright
  660. Note that this document is provided as is. The information in it is
  661. not warranted to be correct; you use it at your own risk.
  662. You can use Questions and Answers according to GNU General Public
  663. License (see the COPYING file in GNU Midnight Commander source
  664. distribution). Questions and Answers is not public domain.