Reverted the use of bool in favour of gboolean
[midnight-commander.git] / doc / mc.1.in
blob9e908e6ee03948f9b151f5f8aed9736646571373
1 .\"TOPICS "Topics:"
2 .TH MC 1 "September 2007" "MC Version 4.6.2-pre1" "GNU Midnight Commander"
3 .\"SKIP_SECTION"
4 .SH "NAME"
5 mc \- Visual shell for Unix-like systems.
6 .\"SKIP_SECTION"
7 .SH "USAGE"
8 .B mc
9 [\-abcCdfhPstuUVx] [\-l log] [dir1 [dir2]] [-e [file]] [-v file]
10 .\"NODE "DESCRIPTION"
11 .SH "DESCRIPTION"
12 GNU Midnight Commander is a directory browser/file manager for
13 Unix-like operating systems.
14 .\"NODE "OPTIONS"
15 .\".\"DONT_SPLIT"
16 .SH "OPTIONS"
17 .TP
18 .I \-a, \-\-stickchars
19 Disable usage of graphic characters for line drawing.
20 .TP
21 .I \-b, \-\-nocolor
22 Force black and white display.
23 .TP
24 .I \-c, \-\-color
25 Force color mode, please check the section
26 .\"LINK2"
27 Colors
28 .\"Colors"
29 for more information.
30 .TP
31 .I \-C arg, \-\-colors=arg
32 Specify a different color set in the command line.  The format of arg is
33 documented in the
34 .\"LINK2"
35 Colors
36 .\"Colors"
37 section.
38 .TP
39 .I \-d, \-\-nomouse
40 Disable mouse support.
41 .TP
42 .I \-e [file], \-\-edit[=file]
43 Start the internal editor.  If the file is specified, open it on
44 startup.  See also
45 .BR "mcedit (1)" .
46 .TP
47 .I \-f, \-\-datadir
48 Display the compiled-in search paths for Midnight Commander files.
49 .TP
50 .I \-k, \-\-resetsoft
51 Reset softkeys to their default from the termcap/terminfo
52 database. Only useful on HP terminals when the function keys don't work.
53 .TP
54 .I \-l file, \-\-ftplog=file
55 Save the ftpfs dialog with the server in file.
56 .TP
57 .I \-P file, \-\-printwd=file
58 Print the last working directory to the specified file.  This option is
59 not meant to be used directly.  Instead, it's used from a special shell
60 script that automatically changes the current directory of the shell to
61 the last directory the Midnight Commander was in.  Source the file
62 .B @prefix@/share/mc/bin/mc.sh
63 (bash and zsh users) or
64 .B @prefix@/share/mc/bin/mc.csh
65 (tcsh users) respectively to define
66 .B mc
67 as an alias to the appropriate shell script.
68 .TP
69 .I \-s, \-\-slow
70 Turn on the slow terminal mode, in this mode the program will not
71 draw expensive line drawing characters and will toggle verbose mode
72 off.
73 .TP
74 .I \-t, \-\-termcap
75 Used only if the code was compiled with Slang and terminfo: it makes
76 the Midnight Commander use the value of the
77 .B TERMCAP
78 variable for the terminal information instead of the information on
79 the system wide terminal database
80 .TP
81 .I \-u, \-\-nosubshell
82 Disable use of the concurrent shell (only makes sense if the Midnight
83 Commander has been built with concurrent shell support).
84 .TP
85 .I \-U, \-\-subshell
86 Enable use of the concurrent shell support (only makes sense if the
87 Midnight Commander was built with the subshell support set as an
88 optional feature).
89 .TP
90 .I \-v file, \-\-view=file
91 Start the internal viewer to view the specified file.  See also
92 .BR "mcview (1)" .
93 .TP
94 .I \-V, \-\-version
95 Display the version of the program.
96 .TP
97 .I \-x, \-\-xterm
98 Force xterm mode.  Used when running on xterm-capable terminals (two
99 screen modes, and able to send mouse escape sequences).
101 If specified, the first path name is the directory to show in the
102 selected panel; the second path name is the directory to be shown in
103 the other panel.
104 .\"NODE "Overview"
105 .SH "Overview"
106 The screen of the Midnight Commander is divided into four parts.
107 Almost all of the screen space is taken up by two directory panels.
108 By default, the second line from the bottom of the screen is the
109 shell command line, and the bottom line shows the function key labels.
110 The topmost line is the
111 .\"LINK2"
112 menu bar line\&.
113 .\"Menu Bar"
114 The menu bar line may not be visible, but appears if you click the
115 topmost line with the mouse or press the F9 key.
117 The Midnight Commander provides a view of two directories at the same
118 time. One of the panels is the current panel (a selection bar is in
119 the current panel). Almost all operations take place on the current
120 panel. Some file operations like Rename and Copy by default use the
121 directory of the unselected panel as a destination (don't worry, they
122 always ask you for confirmation first). For more information, see the
123 sections on the
124 .\"LINK2"
125 Directory Panels\&,
126 .\"Directory Panels"
128 .\"LINK2"
129 Left and Right Menus
130 .\"Left and Right Menus"
131 and the
132 .\"LINK2"
133 File Menu\&.
134 .\"File Menu"
136 You can execute system commands from the Midnight Commander by simply
137 typing them. Everything you type will appear on the shell command line,
138 and when you press Enter the Midnight Commander will execute the
139 command line you typed; read the
140 .\"LINK2"
141 Shell Command Line
142 .\"Shell Command Line"
144 .\"LINK2"
145 Input Line Keys
146 .\"Input Line Keys"
147 sections to learn more about the command line.
148 .\"NODE "Mouse Support"
149 .SH "Mouse Support"
150 The Midnight Commander comes with mouse support.  It is activated
151 whenever you are running on an
152 .B xterm(1)
153 terminal (it even works if you take a telnet, ssh or rlogin connection to
154 another machine from the xterm) or if you are running on a Linux
155 console and have the
156 .B gpm
157 mouse server running.
159 When you left click on a file in the directory panels, that file is
160 selected; if you click with the right button, the file is marked (or
161 unmarked, depending on the previous state).
163 Double-clicking on a file will try to execute the command if it is
164 an executable program; and if the
165 .\"LINK2"
166 extension file
167 .\"Extension File Edit"
168 has a program specified for the file's extension, the specified
169 program is executed.
171 Also, it is possible to execute the commands assigned to the function
172 key labels by clicking on them.
174 If a mouse button is clicked on the top frame line of the directory panel,
175 it is scrolled one page up.  Likewise, a click on the bottom frame line
176 will cause scrolling one page down.  This frame line method works also
177 in the
178 .\"LINK2"
179 Help Viewer
180 .\"Contents"
181 and the
182 .\"LINK2"
183 Directory Tree\&.
184 .\"Directory Tree"
186 The default auto repeat rate for the mouse buttons is 400
187 milliseconds. This may be changed to other values by editing the
188 .\"LINK2"
189 \&~/.mc/ini
190 .\"Save Setup"
191 file and changing the
192 .I mouse_repeat_rate
193 parameter.
195 If you are running the Midnight Commander with the mouse support, you
196 can get the default mouse behavior (cutting and pasting text) by holding
197 down the Shift key.
198 .SH ""
199 .\"NODE "Keys"
200 .SH "Keys"
201 Some commands in the Midnight Commander involve the use of the
202 .I Control
203 (sometimes labeled CTRL or CTL) and the
204 .I Meta
205 (sometimes labeled ALT or even Compose) keys. In this manual we will
206 use the following abbreviations:
208 .B C-<chr>
209 means hold the Control key while typing the character <chr>.
210 Thus C-f would be: hold the Control key and type f.
212 .B Alt-<chr>
213 means hold the Meta or Alt key down while typing <chr>.
214 If there is no Meta or Alt key, type
215 .IR ESC , 
216 release it, then type the character <chr>.
218 .B S-<chr>
219 means hold the Shift key down while typing <chr>.
221 All input lines in the Midnight Commander use an approximation to
222 the GNU Emacs editor's key bindings.
224 There are many sections which tell about the keys. The following are
225 the most important.
228 .\"LINK2"
229 File Menu
230 .\"File Menu"
231 section documents the keyboard shortcuts for the commands appearing in
232 the File menu. This section includes the function keys. Most of these
233 commands perform some action, usually on the selected file or the
234 tagged files.
237 .\"LINK2"
238 Directory Panels
239 .\"Directory Panels"
240 section documents the keys which select a file or tag files as a
241 target for a later action (the action is usually one from the file
242 menu).
245 .\"LINK2"
246 Shell Command Line
247 .\"Shell Command Line"
248 section list the keys which are used for entering and editing command
249 lines. Most of these copy file names and such from the directory
250 panels to the command line (to avoid excessive typing) or access the
251 command line history.
253 .\"LINK2"
254 Input Line Keys
255 .\"Input Line Keys"
256 are used for editing input lines. This means both the command line and
257 the input lines in the query dialogs.
258 .\"NODE "  Miscellaneous Keys"
259 .SH "  Miscellaneous Keys"
260 Here are some keys which don't fall into any of the other categories:
261 .TP 
262 .B Enter
263 if there is some text in the command line (the one at the bottom of
264 the panels), then that command is executed. If there is no text in the
265 command line then if the selection bar is over a directory the
266 Midnight Commander does a
267 .B chdir(2)
268 to the selected directory and reloads the information on the panel;
269 if the selection is an executable file then it is executed. Finally,
270 if the extension of the selected file name matches one of the
271 extensions in the
272 .\"LINK2"
273 extensions file
274 .\"Extension File Edit"
275 then the corresponding command is executed.
277 .B C-l
278 repaint all the information in the Midnight Commander.
280 .B C-x c
281 run the
282 .\"LINK2"
283 Chmod
284 .\"Chmod"
285 command on a file or on the tagged files.
286 .TP 
287 .B C-x o
288 run the
289 .\"LINK2"
290 Chown
291 .\"Chown"
292 command on the current file or on the tagged files.
294 .B C-x l
295 run the link command.
297 .B C-x s
298 run the symbolic link command.
300 .B C-x i
301 set the other panel display mode to information.
303 .B C-x q
304 set the other panel display mode to quick view.
306 .B C-x !
307 execute the
308 .\"LINK2"
309 External panelize
310 .\"External panelize"
311 command.
313 .B C-x h
314 run the
315 .\"LINK2"
316 add directory to hotlist
317 .\"Hotlist"
318 command.
320 .B Alt-!
321 executes the Filtered view command, described in the
322 .\"LINK2"
323 view command\&.
324 .\"Internal File Viewer"
326 .B Alt-?
327 executes the
328 .\"LINK2"
329 Find file
330 .\"Find File"
331 command.
333 .B Alt-c
334 pops up the
335 .\"LINK2"
336 quick cd
337 .\"Quick cd"
338 dialog.
340 .B C-o
341 when the program is being run in the Linux or FreeBSD console or under
342 an xterm, it will show you the output of the previous command.  When ran
343 on the Linux console, the Midnight Commander uses an external program
344 (cons.saver) to handle saving and restoring of information on the
345 screen.
347 When the subshell support is compiled in, you can type C-o at any time
348 and you will be taken back to the Midnight Commander main screen, to
349 return to your application just type C-o.  If you have an application
350 suspended by using this trick, you won't be able to execute other
351 programs from the Midnight Commander until you terminate the suspended
352 application.
353 .\"NODE "  Directory Panels"
354 .SH "  Directory Panels"
355 This section lists the keys which operate on the directory panels. If
356 you want to know how to change the appearance of the panels take a
357 look at the section on
358 .\"LINK2"
359 Left and Right Menus\&.
360 .\"Left and Right Menus"
362 .B Tab, C-i
363 change the current panel. The old other panel becomes the new current
364 panel and the old current panel becomes the new other panel. The
365 selection bar moves from the old current panel to the new current
366 panel.
368 .B Insert, C-t
369 to tag files you may use the Insert key (the kich1 terminfo sequence)
370 or the C-t (Control-t) sequence. To untag files, just retag a tagged
371 file.
373 .B Alt-g, Alt-r, Alt-j
374 used to select the top file in a panel, the middle file and the bottom one,
375 respectively.
377 .B C-s, Alt-s
378 start a filename search in the directory listing. When the search is
379 active, the user input will be added to the search string instead of
380 the command line. If the
381 .I Show mini-status
382 option is enabled the search string is shown on the mini-status
383 line. When typing, the selection bar will move to the next file
384 starting with the typed letters. The
385 .I backspace
387 .I DEL
388 keys can be used to correct typing mistakes. If C-s is pressed
389 again, the next match is searched for.
391 .B Alt-t
392 toggle the current display listing to show the next display listing
393 mode.
394 With this it is possible to quickly switch to brief listing, long
395 listing, user defined listing mode, and back to the default.
397 .B C-\\\\ (control-backslash)
398 show the
399 .\"LINK2"
400 directory hotlist
401 .\"Hotlist"
402 and change to the selected directory.
404 .B + \ (plus)
405 this is used to select (tag) a group of files. The Midnight Commander
406 will prompt for a regular expression describing the group. When
407 .I Shell Patterns
408 are enabled, the regular expression is much like the regular
409 expressions in the shell (* standing for zero or more characters and ?
410 standing for one character). If
411 .I Shell Patterns
412 is off, then the tagging of files is done with normal regular
413 expressions (see ed (1)).
415 If the expression starts or ends with a slash (/), then it will select
416 directories instead of files.
418 .B \\\\ (backslash)
419 use the "\\" key to unselect a group of files. This is the opposite of
420 the Plus key.
422 .B up-key, C-p
423 move the selection bar to the previous entry in the panel.
425 .B down-key, C-n
426 move the selection bar to the next entry in the panel.
428 .B home, a1, Alt-<
429 move the selection bar to the first entry in the panel.
431 .B end, c1, Alt->
432 move the selection bar to the last entry in the panel.
434 .B next-page, C-v
435 move the selection bar one page down.
437 .B prev-page, Alt-v
438 move the selection bar one page up.
440 .B Alt-o
441 If the currently selected file is a directory, load that directory on
442 the other panel and moves the selection to the next file.
444 .B Alt-i
445 make the current directory of the current panel also the current
446 directory of the other panel.  Put the other panel to the listing mode
447 if needed.  If the current panel is panelized, the other panel doesn't
448 become panelized.
450 .B C-PageUp, C-PageDown
451 only when supported by the terminal: change to ".." and to the currently
452 selected directory respectively.
454 .B Alt-y
455 moves to the previous directory in the history, equivalent to clicking
457 .I <
458 with the mouse.
460 .B Alt-u
461 moves to the next directory in the history, equivalent to clicking the
462 .I >
463 with the mouse.
465 .B Alt-Shift-h, Alt-H
466 displays the directory history, equivalent to depressing the 'v' with
467 the mouse.
468 .\"NODE "  Shell Command Line"
469 .SH "  Shell Command Line"
470 This section lists keys which are useful to avoid excessive typing when
471 entering shell commands.
473 .B Alt-Enter
474 copy the currently selected file name to the command line.
476 .B C-Enter
477 same a Alt-Enter.  May not work on remote systems and some terminals.
479 .B C-Shift-Enter
480 copy the full path name of the currently selected file to the command
481 line.  May not work on remote systems and some terminals.
483 .B Alt-Tab
484 does the filename, command, variable, username and hostname
485 .\"LINK2"
486 completion
487 .\"Completion"
488 for you.
490 .B C-x t, C-x C-t
491 copy the tagged files (or if there are no tagged files, the selected
492 file) of the current panel (C-x t) or of the other panel (C-x C-t) to
493 the command line.
495 .B C-x p, C-x C-p
496 the first key sequence copies the current path name to the command
497 line, and the second one copies the unselected panel's path name to
498 the command line.
500 .B C-q
501 the quote command can be used to insert characters that are otherwise
502 interpreted by the Midnight Commander (like the '+' symbol)
504 .B Alt-p, Alt-n
505 use these keys to browse through the command history. Alt-p takes you
506 to the last entry, Alt-n takes you to the next one.
508 .B Alt-h
509 displays the history for the current input line.
510 .\"NODE "  General Movement Keys"
511 .SH "  General Movement Keys"
512 The help viewer, the file viewer and the directory tree use common
513 code to handle moving. Therefore they accept exactly the same
514 keys. Each of them also accepts some keys of its own.
516 Other parts of the Midnight Commander use some of the same movement
517 keys, so this section may be of use for those parts too.
519 .B Up, C-p
520 moves one line backward.
522 .B Down, C-n
523 moves one line forward.
525 .B Prev Page, Page Up, Alt-v
526 moves one page up.
528 .B Next Page, Page Down, C-v
529 moves one page down.
531 .B Home, A1
532 moves to the beginning.
534 .B End, C1
535 move to the end.
537 The help viewer and the file viewer accept the following keys in
538 addition the to ones mentioned above:
540 .B b, C-b, C-h, Backspace, Delete
541 moves one page up.
543 .B Space bar
544 moves one page down.
546 .B u, d
547 moves one half of a page up or down.
549 .B g, G
550 moves to the beginning or to the end.
551 .\"NODE "  Input Line Keys"
552 .SH "  Input Line Keys"
553 The input lines (they are used for the
554 .\"LINK2"
555 command line
556 .\"Shell Command Line"
557 and for the query dialogs in the program) accept these keys:
559 .B C-a
560 puts the cursor at the beginning of line.
562 .B C-e
563 puts the cursor at the end of the line.
565 .B C-b, move-left
566 move the cursor one position left.
568 .B C-f, move-right
569 move the cursor one position right.
571 .B Alt-f
572 moves one word forward.
574 .B Alt-b
575 moves one word backward.
577 .B C-h, backspace
578 delete the previous character.
580 .B C-d, Delete
581 delete the character in the point (over the cursor).
583 .B C-@
584 sets the mark for cutting.
586 .B C-w
587 copies the text between the cursor and the mark to a kill buffer and
588 removes the text from the input line.
590 .B Alt-w
591 copies the text between the cursor and the mark to a kill buffer.
593 .B C-y
594 yanks back the contents of the kill buffer.
596 .B C-k
597 kills the text from the cursor to the end of the line.
599 .B Alt-p, Alt-n
600 Use these keys to browse through the command history. Alt-p takes you
601 to the last entry, Alt-n takes you to the next one.
603 .B Alt-C-h, Alt-Backspace
604 delete one word backward.
606 .B Alt-Tab
607 does the filename, command, variable, username and hostname
608 .\"LINK2"
609 completion
610 .\"Completion"
611 for you.
612 .SH ""
613 .\"NODE "Menu Bar"
614 .SH "Menu Bar"
615 The menu bar pops up when you press F9 or click the mouse on the top
616 row of the screen. The menu bar has five menus: "Left", "File",
617 "Command", "Options" and "Right".
620 .\"LINK2"
621 Left and Right Menus
622 .\"Left and Right Menus"
623 allow you to modify the appearance of the left and right directory
624 panels.
627 .\"LINK2"
628 File Menu
629 .\"File Menu"
630 lists the actions you can perform on the currently selected file or
631 the tagged files.
634 .\"LINK2"
635 Command Menu
636 .\"Command Menu"
637 lists the actions which are more general and bear no relation to the
638 currently selected file or the tagged files.
641 .\"LINK2"
642 Options Menu
643 .\"Options Menu"
644 lists the actions which allow you to customize the Midnight Commander.
645 .\"NODE "  Left and Right Menus"
646 .SH "  Left and Right (Above and Below) Menus"
647 The outlook of the directory panels can be changed from the
648 .B Left
650 .B Right
651 menus (they are named
652 .B Above
654 .B Below
655 when the horizontal panel split is chosen from the
656 .\"LINK2"
657 Layout
658 .\"Layout"
659 options dialog).
660 .\"NODE "    Listing Mode..."
661 .SH "    Listing Mode..."
662 The listing mode view is used to display a listing of files, there are
663 four different listing modes available:
664 .BR Full ,
665 .BR Brief ,
666 .B Long
668 .BR User .
669 The full directory view shows the file name, the size of the file and
670 the modification time.
672 The brief view shows only the file name and it has two columns
673 (therefore showing twice as many files as other views). The long view
674 is similar to the output of
675 .B "ls -l"
676 command. The long view takes the whole screen width.
678 If you choose the "User" display format, then you have to specify
679 the display format.
681 The user display format must start with a panel size specifier.  This
682 may be "half" or "full", and they specify a half screen panel and a
683 full screen panel respectively.
685 After the panel size, you may specify the two columns mode on the
686 panel, this is done by adding the number "2" to the user format
687 string.
689 After this you add the name of the fields with an optional size
690 specifier.  This are the available fields you may display:
692 .B name
693 displays the file name.
695 .B size
696 displays the file size.
698 .B bsize
699 is an alternative form of the
700 .B size
701 format. It displays the size of the files and for directories it just
702 shows SUB-DIR or UP--DIR.
704 .B type
705 displays a one character wide type field.  This character is similar to
706 what is displayed by ls with the -F flag -
707 .B *
708 for executable files,
709 .B /
710 for directories,
711 .B @
712 for links,
713 .B =
714 for sockets,
715 .B -
716 for character devices,
717 .B +
718 for block devices,
719 .B |
720 for pipes,
721 .B ~
722 for symbolic links to directories and
723 .B !
724 for stale symlinks (links that point nowhere).
726 .B mark
727 an asterisk if the file is tagged, a space if it's not.
729 .B mtime
730 file's last modification time.
732 .B atime
733 file's last access time.
735 .B ctime
736 file's status change time.
738 .B perm
739 a string representing the current permission bits of the file.
741 .B mode
742 an octal value with the current permission bits of the file.
744 .B nlink
745 the number of links to the file.
747 .B ngid
748 the GID (numeric).
750 .B nuid
751 the UID (numeric).
753 .B owner
754 the owner of the file.
756 .B group
757 the group of the file.
759 .B inode
760 the inode of the file.
762 Also you can use following keywords to define the panel layout:
764 .B space
765 a space in the display format.
767 .B |
768 add a vertical line to the display format.
770 To force one field to a fixed size (a size specifier), you just add
771 .B :
772 followed by the number of characters you want the field to have.  If the
773 number is followed by the symbol
774 .BR + ,
775 then the size specifies the minimal field size - if the program finds
776 out that there is more space on the screen, it will then expand that
777 field.
779 For example, the
780 .B Full
781 display corresponds to this format:
783 half type name | size | mtime
785 And the
786 .B Long
787 display corresponds to this format:
789 full perm space nlink space owner space group space size space mtime
790 space name
792 This is a nice user display format:
794 half name | size:7 | type mode:3
796 Panels may also be set to the following modes:
798 .B "Info"
799 The info view display information related to the currently
800 selected file and if possible information about the current file
801 system.
803 .B "Tree"
804 The tree view is quite similar to the
805 .\"LINK2"
806 directory tree
807 .\"Directory Tree"
808 feature. See the section about it for more information.
810 .B "Quick View"
811 In this mode, the panel will switch to a reduced
812 .\"LINK2"
813 viewer
814 .\"Internal File Viewer"
815 that displays the contents of the currently selected file, if you
816 select the panel (with the tab key or the mouse), you will have access
817 to the usual viewer commands.
818 .\"NODE "    Sort Order..."
819 .SH "    Sort Order..."
820 The eight sort orders are by name, by extension, by modification time,
821 by access time, and by inode information modification time, by size,
822 by inode and unsorted.  In the Sort order dialog box you can choose
823 the sort order and you may also specify if you want to sort in reverse
824 order by checking the reverse box.
826 By default directories are sorted before files but this can be changed
827 from the
828 .\"LINK2"
829 Options menu
830 .\"Options Menu"
831 (option
832 .BR "Mix all files" ).
833 .\"NODE "    Filter..."
834 .SH "    Filter..."
835 The filter command allows you to specify a shell pattern (for example
836 .BR "*.tar.gz" )
837 which the files must match to be shown. Regardless
838 of the filter pattern, the directories and the links to directories
839 are always shown in the directory panel.
840 .\"NODE "    Reread"
841 .SH "    Reread"
842 The reread command reload the list of files in the directory. It is
843 useful if other processes have created or removed files.  If you
844 have panelized file names in a panel this will reload the directory
845 contents and remove the panelized information (See the section
846 .\"LINK2"
847 External panelize
848 .\"External panelize"
849 for more information).
850 .\"NODE "  File Menu"
851 .SH "  File Menu"
852 The Midnight Commander uses the F1 - F10 keys as keyboard shortcuts
853 for commands appearing in the file menu.  The escape sequences for the
854 function keys are terminfo capabilities kf1 trough kf10.  On terminals
855 without function key support, you can achieve the same functionality by
856 pressing the ESC key and then a number in the range 1 through 9 and 0
857 (corresponding to F1 to F9 and F10 respectively).
859 The File menu has the following commands (keyboard shortcuts in parentheses):
861 .B Help (F1)
863 Invokes the built-in hypertext help viewer. Inside the
864 .\"LINK2"
865 help viewer\&,
866 .\"Contents"
867 you can use the Tab key to select the next link and the Enter key to
868 follow that link. The keys Space and Backspace are used to move
869 forward and backward in a help page. Press F1 again to get the full
870 list of accepted keys.
872 .B Menu (F2)
874 Invoke the
875 .\"LINK2"
876 user menu\&.
877 .\"Menu File Edit"
878 The user menu provides an easy way to provide users with a menu and
879 add extra features to the Midnight Commander.
881 .B View (F3, Shift-F3)
883 View the currently selected file. By default this invokes the
884 .\"LINK2"
885 Internal File Viewer
886 .\"Internal File Viewer"
887 but if the option "Use internal view" is off, it invokes an external
888 file viewer specified by the
889 .B VIEWER
890 environment variable.  If
891 .B VIEWER
892 is undefined, the
893 .B PAGER
894 environment variable is tried.  If
895 .B PAGER
896 is also undefined, the "view" command is invoked.  If you use Shift-F3
897 instead, the viewer will be invoked without doing any formatting or
898 preprocessing to the file.
900 .B Filtered View (Alt-!)
902 This command prompts for a command
903 and its arguments (the argument defaults to the currently selected
904 file name), the output from such command is shown in the internal file
905 viewer.
907 .B Edit (F4, F14)
909 Press F4 to edit the highlighted file.  Press F14 (usually Shift-F4)
910 to start the editor with a new, empty file.
911 Currently they invoke the
912 .B vi
913 editor, or the editor specified in the
914 .B EDITOR
915 environment variable, or the
916 .\"LINK2"
917 Internal File Editor
918 .\"Internal File Editor"
919 if the use_internal_edit option is on.
921 .B Copy (F5, F15)
923 Press F5 to pop up an input dialog to copy the currently selected file (or
924 the tagged files, if there is at least one file tagged) to the
925 directory/filename you specify in the input dialog.  The destination 
926 defaults to the directory in the non-selected panel. During this
927 process, you can press C-c or ESC to abort the operation. For details
928 about source mask (which will be usually either * or ^\\(.*\\)$ depending
929 on setting of Use shell patterns) and possible wildcards in the destination
931 .\"LINK2"
932 Mask copy/rename\&.
933 .\"Mask Copy/Rename"
935 F15 (usually Shift-F5) is similar, but defaults to the directory in the
936 selected panel. It always operates on the selected file, regardless of
937 any tagged files.
939 On some systems, it is possible to do the copy in the background by
940 clicking on the background button (or pressing Alt-b in the dialog
941 box).  The
942 .\"LINK2"
943 Background Jobs
944 .\"Background jobs"
945 is used to control the background process.
947 .B Link (C-x l)
949 Create a hard link to the current file.
951 .B SymLink (C-x s)
953 Create a symbolic link to the current file. To those of you who don't
954 know what links are: creating a link to a file is a bit like copying
955 the file, but both the source filename and the destination filename
956 represent the same file image. For example, if you edit one of these
957 files, all changes you make will appear in both files. Some people call
958 links aliases or shortcuts.
960 A hard link appears as a real file. After making it, there is no way of
961 telling which one is the original and which is the link. If you delete
962 either one of them the other one is still intact. It is very difficult
963 to notice that the files represent the same image. Use hard links when
964 you don't even want to know.
966 A symbolic link is a reference to the name of the original file. If
967 the original file is deleted the symbolic link is useless. It is quite
968 easy to notice that the files represent the same image. The Midnight
969 Commander shows an "@"-sign in front of the file name if it is a
970 symbolic link to somewhere (except to directory, where it shows a tilde (~)).
971 The original file which the link points to is shown on mini-status line if the
972 .I "Show mini-status"
973 option is enabled. Use symbolic links when you want to avoid the
974 confusion that can be caused by hard links.
976 .B Rename/Move (F6, F16)
978 Press F6 to pop up an input dialog to copy the currently selected file (or
979 the tagged files, if there is at least one file tagged) to the
980 directory/filename you specify in the input dialog.  The destination 
981 defaults to the directory in the non-selected panel. For more details
982 look at Copy (F5) operation above, most of the things are quite similar.
984 F16 (usually Shift-F6) is similar, but defaults to the directory in the
985 selected panel. It always operates on the selected file, regardless of
986 any tagged files.
988 On some systems, it is possible to do the copy in the background by
989 clicking on the background button (or pressing Alt-b in the dialog
990 box).  The
991 .\"LINK2"
992 Background Jobs
993 .\"Background jobs"
994 is used to control the background process.
996 .B Mkdir (F7)
998 Pop up an input dialog and creates the directory specified.
1000 .B Delete (F8)
1002 Delete the currently selected file or the tagged files in the
1003 currently selected panel. During the process, you can press C-c or
1004 ESC to abort the operation.
1006 .B Quick cd (Alt-c)
1007 Use the
1008 .\"LINK2"
1009 quick cd
1010 .\"Quick cd"
1011 command if you have full command line and want to cd somewhere.
1013 .B Select group (+)
1015 This is used to select (tag) a group of files. The Midnight Commander
1016 will prompt for a regular expression describing the group. When
1017 .I Shell Patterns
1018 are enabled, the regular expression is much like the filename globbing
1019 in the shell (* standing for zero or more characters and ?  standing
1020 for one character). If
1021 .I Shell Patterns
1022 is off, then the tagging of files is done with normal regular
1023 expressions (see ed (1)).
1025 To mark directories instead of files, the expression must start or end
1026 with a '/'.
1028 .B Unselect group (\\\\)
1030 Used to unselect a group of files. This is the opposite of the
1031 .I "Select group"
1032 command.
1034 .B Quit (F10, Shift-F10)
1036 Terminate the Midnight Commander.  Shift-F10 is used when you want to
1037 quit and you are using the shell wrapper.  Shift-F10 will not take you
1038 to the last directory you visited with the Midnight Commander, instead
1039 it will stay at the directory where you started the Midnight Commander.
1040 .\"NODE "    Quick cd"
1041 .SH "    Quick cd"
1042 This command is useful if you have a full command line and want to
1043 .\"LINK2"
1045 .\"The cd internal command"
1046 somewhere without having to yank and paste the command line. This command
1047 pops up a small dialog, where you enter everything you would enter after
1048 .B cd
1049 on the command line and then you press enter. This features all the things
1050 that are already in the
1051 .\"LINK2"
1052 internal cd command\&.
1053 .\"The cd internal command"
1054 .\"NODE "  Command Menu"
1055 .SH "  Command Menu"
1057 .\"LINK2"
1058 Directory tree
1059 .\"Directory Tree"
1060 command shows a tree figure of the directories.
1063 .\"LINK2"
1064 Find file
1065 .\"Find File"
1066 command allows you to search for a specific file.
1068 The "Swap panels" command swaps the contents of the two directory panels.
1070 The "Panels on/off" command shows the output of the last shell command.
1071 This works only on xterm and on Linux and FreeBSD console.
1073 The Compare directories (C-x d) command compares the directory
1074 panels with each other. You can then use the Copy (F5) command to make
1075 the panels identical. There are three compare methods. The quick method
1076 compares only file size and file date. The thorough method makes a
1077 full byte-by-byte compare. The thorough method is not available if the
1078 machine does not support the mmap(2) system call.  The size-only
1079 compare method just compares the file sizes and does not check the
1080 contents or the date times, it just checks the file size.
1082 The Command history command shows a list of typed commands. The
1083 selected command is copied to the command line. The command history
1084 can also be accessed by typing Alt-p or Alt-n.
1087 .\"LINK2"
1088 Directory hotlist (C-\\)
1089 .\"Hotlist"
1090 command makes changing of the current directory to often used directories
1091 faster.
1094 .\"LINK2"
1095 External panelize
1096 .\"External panelize"
1097 allows you to execute an external program, and make the output of that
1098 program the contents of the current panel.
1100 .\"LINK2"
1101 Extension file edit
1102 .\"Extension File Edit"
1103 command allows you to specify programs to executed when you try to
1104 execute, view, edit and do a bunch of other thing on files
1105 with certain extensions (filename endings). The
1106 .\"LINK2"
1107 Menu file edit
1108 .\"Menu File Edit"
1109 command may be used for editing the user menu (which appears by
1110 pressing F2).
1111 .\"NODE "    Directory Tree"
1112 .SH "    Directory Tree"
1113 The Directory Tree command shows a tree figure of the directories. You
1114 can select a directory from the figure and the Midnight Commander will
1115 change to that directory.
1117 There are two ways to invoke the tree. The real directory tree command
1118 is available from Commands menu. The other way is to select tree view
1119 from the Left or Right menu.
1121 To get rid of long delays the Midnight Commander creates the tree
1122 figure by scanning only a small subset of all the directories. If the
1123 directory which you want to see is missing, move to its parent
1124 directory and press C-r (or F2).
1126 You can use the following keys:
1128 .\"LINK2"
1129 General movement keys
1130 .\"General Movement Keys"
1131 are accepted.
1133 .B Enter.
1134 In the directory tree, exits the directory tree and changes to this
1135 directory in the current panel. In the tree view, changes to this
1136 directory in the other panel and stays in tree view mode in the
1137 current panel.
1139 .B C-r, F2 (Rescan).
1140 Rescan this directory. Use this when the tree figure is out of date:
1141 it is missing subdirectories or shows some subdirectories which don't
1142 exist any more.
1144 .B F3 (Forget).
1145 Delete this directory from the tree figure. Use this to remove clutter
1146 from the figure. If you want the directory back to the tree figure
1147 press F2 in its parent directory.
1149 .B F4 (Static/Dynamic).
1150 Toggle between the dynamic navigation mode (default) and the static
1151 navigation mode.
1153 In the static navigation mode you can use the Up and Down keys to
1154 select a directory. All known directories are shown.
1156 In the dynamic navigation mode you can use the Up and Down keys to
1157 select a sibling directory, the Left key to move to the parent
1158 directory, and the Right key to move to a child directory. Only the
1159 parent, sibling and children directories are shown, others are left
1160 out. The tree figure changes dynamically as you traverse.
1162 .B F5 (Copy).
1163 Copy the directory.
1165 .B F6 (RenMov).
1166 Move the directory.
1168 .B F7 (Mkdir).
1169 Make a new directory below this directory.
1171 .B F8 (Delete).
1172 Delete this directory from the file system.
1174 .B C-s, Alt-s.
1175 Search the next directory matching the search string. If there is
1176 no such directory these keys will move one line down.
1178 .B C-h, Backspace.
1179 Delete the last character of the search string.
1181 .B Any other character.
1182 Add the character to the search string and move to the next directory
1183 which starts with these characters. In the tree view you must first
1184 activate the search mode by pressing C-s. The search string is shown
1185 in the mini status line.
1187 The following actions are available only in the directory tree. They
1188 aren't supported in the tree view.
1190 .B F1 (Help).
1191 Invoke the help viewer and show this section.
1193 .B Esc, F10.
1194 Exit the directory tree. Do not change the directory.
1196 The mouse is supported. A double-click behaves like Enter. See
1197 also the section on
1198 .\"LINK2"
1199 mouse support\&.
1200 .\"Mouse Support"
1201 .\"NODE "    Find File"
1202 .SH "    Find File"
1203 The Find File feature first asks for the start directory for the
1204 search and the filename to be searched for. By pressing the Tree
1205 button you can select the start directory from the
1206 .\"LINK2"
1207 directory tree
1208 .\"Directory Tree"
1209 figure.
1211 The contents field accepts regular expressions similar to egrep(1). That
1212 means you have to escape characters with a special meaning to egrep with "\\",
1213 e.g. if you search for "strcmp (" you will have to input "strcmp \\("
1214 (without the double quotes).
1216 You can start the search by pressing the OK button.
1217 During the search you can stop from the Stop button and continue from
1218 the Start button.
1220 You can browse the filelist with the up and down arrow keys. The Chdir
1221 button will change to the directory of the currently selected
1222 file. The Again button will ask for the parameters for a new
1223 search. The Quit button quits the search operation. The Panelize
1224 button will place the found files to the current directory panel so
1225 that you can do additional operations on them (view, copy, move,
1226 delete and so on). After panelizing you can press C-r to return to the
1227 normal file listing.
1229 It is possible to have a list of directories that the Find File command
1230 should skip during the search (for example, you may want to avoid
1231 searches on a CD-ROM or on a NFS directory that is mounted across a slow
1232 link).
1234 Directories to be skipped should be set on the variable
1235 .B find_ignore_dirs
1236 in the
1237 .B Misc
1238 section of your ~/.mc/ini file.
1240 Directory components should be separated with a colon, here is an
1241 example:
1244 [Misc]
1245 find_ignore_dirs=/cdrom:/nfs/wuarchive:/afs
1248 You may consider using the
1249 .\"LINK2"
1250 External panelize
1251 .\"External panelize"
1252 command for some operations. Find file command is for simple queries
1253 only, while using External panelize you can do as mysterious searches
1254 as you would like.
1255 .\"NODE "    External panelize"
1256 .SH "    External panelize"
1257 The External panelize allows you to execute an external program, and
1258 make the output of that program the contents of the current panel.
1260 For example, if you want to manipulate in one of the panels all the
1261 symbolic links in the current directory, you can use external
1262 panelization to run the following command:
1265 find . -type l -print
1268 Upon command completion, the directory contents of the panel will no
1269 longer be the directory listing of the current directory, but all the
1270 files that are symbolic links.
1272 If you want to panelize all of the files that have been downloaded
1273 from your FTP server, you can use this awk command to extract the file
1274 name from the transfer log files:
1277 awk '$9 ~! /incoming/ { print $9 }' < /usr/adm/xferlog
1280 You may want to save often used panelize commands under a descriptive name,
1281 so that you can recall them quickly. You do this by typing the command on
1282 the input line and pressing Add new button. Then you enter a name under
1283 which you want the command to be saved. Next time, you just choose that
1284 command from the list and do not have to type it again.
1285 .\"NODE "    Hotlist"
1286 .SH "    Hotlist"
1287 The Directory hotlist command shows the labels of the directories
1288 in the directory hotlist.  The Midnight Commander will change to the
1289 directory corresponding to the selected label.  From the hotlist dialog,
1290 you can remove already created label/directory pairs and add new ones.
1291 To add new directories quickly, you can use the Add to hotlist command
1292 (C-x h), which adds the current directory into the directory hotlist,
1293 asking just for the label for the directory.
1295 This makes cd to often used directories faster. You may consider using the
1296 CDPATH variable as described in
1297 .\"LINK2"
1298 internal cd command
1299 .\"The cd internal command"
1300 description.
1301 .\"NODE "    Extension File Edit"
1302 .SH "    Extension File Edit"
1303 This will invoke your editor on the file
1304 .IR ~/.mc/bindings .
1305 The format of this file following:
1307 All lines starting with # or empty lines are thrown away.
1309 Lines starting in the first column should have following format:
1311 .IR keyword/expr ,
1312 i.e. everything after the slash until new line is
1313 .IR expr .
1315 .I keyword
1316 can be:
1318 .I shell
1320 .I expr
1321 is an extension (no wildcards).  File matches it its name ends
1322 with
1323 .IR expr .
1324 Example:
1325 .I shell/.tar
1326 matches
1327 .IR *.tar .
1329 .I regex
1331 .I expr
1332 is a regular expression.  File matches if its name matches the regular
1333 expression.
1335 .I directory
1337 .I expr
1338 is a regular expression.  File matches if it is a directory and its name
1339 matches the regular expression.
1341 .I type
1343 .I expr
1344 is a regular expression.  File matches if the output of
1345 .I file %f
1346 without the initial "filename:" part matches regular expression
1347 .IR expr .
1349 .I default
1350 \- matches any file.
1351 .I expr
1352 is ignored.
1354 .I include
1355 \- denotes a common section.
1356 .I expr
1357 is the name of the section.
1359 Other lines should start with a space or tab and should be of the format:
1360 .I keyword=command
1361 (with no spaces around =), where
1362 .I keyword
1363 should be:
1364 .I Open
1365 (invoked on Enter or double click),
1366 .I View
1367 (F3),
1368 .I Edit
1369 (F4) or
1370 .I Include
1371 (to add rules from the common section).
1372 .I command
1373 is any one-line shell command, with the simple
1374 .\"LINK2"
1375 macro substitution\&.
1376 .\"Macro Substitution"
1378 Rules are matched from top to bottom, thus the order is important.  If
1379 the appropriate action is missing, search continues as if this rule
1380 didn't match (i.e. if a file matches the first and second entry and View
1381 action is missing in the first one, then on pressing F3 the View action
1382 from the second entry will be used).
1383 .I default
1384 should match all the actions.
1385 .\"NODE "    Background jobs"
1386 .SH "    Background Jobs"
1387 This lets you control the state of any background Midnight Commander
1388 process (only copy and move files operations can be done in the
1389 background).  You can stop, restart and kill a background job from
1390 here.
1391 .\"NODE "    Menu File Edit"
1392 .SH "    Menu File Edit"
1393 The user menu is a menu of useful actions that can be customized by
1394 the user. When you access the user menu, the
1395 file .mc.menu from the current directory is used if it exists,
1396 but only if it is owned by user or root and is not world-writable.
1397 If no such file found, ~/.mc/menu is tried in the same way,
1398 and otherwise mc uses the default system-wide menu
1399 @prefix@/share/mc/mc.menu.
1401 The format of the menu file is very simple. Lines that start with
1402 anything but space or tab are considered entries for the menu (in
1403 order to be able to use it like a hot key, the first character should
1404 be a letter). All the lines that start with a space or a tab are the
1405 commands that will be executed when the entry is selected.
1407 When an option is selected all the command lines of the option are
1408 copied to a temporary file in the temporary directory (usually
1409 /usr/tmp) and then that file is executed. This allows the user to put
1410 normal shell constructs in the menus. Also simple macro substitution
1411 takes place before executing the menu code. For more information, see
1412 .\"LINK2"
1413 macro substitution\&.
1414 .\"Macro Substitution"
1416 Here is a sample mc.menu file:
1419 A       Dump the currently selected file
1420         od -c %f
1422 B       Edit a bug report and send it to root
1423         I=`mktemp ${MC_TMPDIR:-/tmp}/mail.XXXXXX` || exit 1
1424         vi $I
1425         mail -s "Midnight Commander bug" root < $I
1426         rm -f $I
1428 M       Read mail
1429         emacs -f rmail
1431 N       Read Usenet news
1432         emacs -f gnus
1434 H       Call the info hypertext browser
1435         info
1437 J       Copy current directory to other panel recursively
1438         tar cf - . | (cd %D && tar xvpf -)
1440 K       Make a release of the current subdirectory
1441         echo -n "Name of distribution file: "
1442         read tar
1443         ln -s %d `dirname %d`/$tar
1444         cd ..
1445         tar cvhf ${tar}.tar $tar
1447 = f *.tar.gz | f *.tgz & t n
1448 X       Extract the contents of a compressed tar file
1449         tar xzvf %f
1452 .B Default Conditions
1454 Each menu entry may be preceded by a condition. The condition must
1455 start from the first column with a '=' character. If the condition is
1456 true, the menu entry will be the default entry.
1459 Condition syntax:       = <sub-cond>
1460   or:                   = <sub-cond> | <sub-cond> ...
1461   or:                   = <sub-cond> & <sub-cond> ...
1463 Sub-condition is one of following:
1465   y <pattern>           syntax of current file matching pattern?
1466                         (for edit menu only)
1467   f <pattern>           current file matching pattern?
1468   F <pattern>           other file matching pattern?
1469   d <pattern>           current directory matching pattern?
1470   D <pattern>           other directory matching pattern?
1471   t <type>              current file of type?
1472   T <type>              other file of type?
1473   x <filename>          is it executable filename?
1474   ! <sub-cond>          negate the result of sub-condition
1477 Pattern is a normal shell pattern or a regular expression, according
1478 to the shell patterns option. You can override the global value of
1479 the shell patterns option by writing "shell_patterns=x" on the first
1480 line of the menu file (where "x" is either 0 or 1).
1482 Type is one or more of the following characters:
1485   n     not a directory
1486   r     regular file
1487   d     directory
1488   l     link
1489   c     character device
1490   b     block device
1491   f     FIFO (pipe)
1492   s     socket
1493   x     executable file
1494   t     tagged
1497 For example 'rlf' means either regular file, link or fifo. The 't'
1498 type is a little special because it acts on the panel instead of the
1499 file. The condition '=t t' is true if there are tagged files in the
1500 current panel and false if not.
1502 If the condition starts with '=?' instead of '=' a debug trace will be
1503 shown whenever the value of the condition is calculated.
1505 The conditions are calculated from left to right. This means
1507         = f *.tar.gz | f *.tgz & t n
1509 is calculated as
1511         ( (f *.tar.gz) | (f *.tgz) ) & (t n)
1514 Here is a sample of the use of conditions:
1517 = f *.tar.gz | f *.tgz & t n
1518 L       List the contents of a compressed tar-archive
1519         gzip -cd %f | tar xvf -
1522 .B Addition Conditions
1524 If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
1525 is an addition condition. If the condition is true the menu entry will
1526 be included in the menu. If the condition is false the menu entry will
1527 not be included in the menu.
1529 You can combine default and addition conditions by starting condition
1530 with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
1531 want to use two different conditions, one for adding and another for
1532 defaulting, you can precede a menu entry with two condition lines, one
1533 starting with '+' and another starting with '='.
1535 Comments are started with '#'. The additional comment lines must start
1536 with '#', space or tab.
1537 .\"NODE "  Options Menu"
1538 .SH "  Options Menu"
1539 The Midnight Commander has some options that may be toggled on and
1540 off in several dialogs which are accessible from this menu. Options
1541 are enabled if they have an asterisk or "x" in front of them.
1544 .\"LINK2"
1545 Configuration
1546 .\"Configuration"
1547 command pops up a dialog from which you can change most of settings of
1548 the Midnight Commander.
1551 .\"LINK2"
1552 Layout
1553 .\"Layout"
1554 command pops up a dialog from which you specify a bunch of options how mc
1555 looks like on the screen.
1558 .\"LINK2"
1559 Confirmation
1560 .\"Confirmation"
1561 command pops up a dialog from which you specify which actions you want to
1562 confirm.
1565 .\"LINK2"
1566 Display bits
1567 .\"Display bits"
1568 command pops up a dialog from which you may select which characters is your
1569 terminal able to display.
1572 .\"LINK2"
1573 Learn keys
1574 .\"Learn keys"
1575 command pops up a dialog from which you test some keys which are not working
1576 on some terminals and you may fix them.
1579 .\"LINK2"
1580 Virtual FS
1581 .\"Virtual FS"
1582 command pops up a dialog from which you specify some VFS related options.
1585 .\"LINK2"
1586 Save setup
1587 .\"Save Setup"
1588 command saves the current settings of the Left, Right and Options
1589 menus. A small number of other settings is saved, too.
1590 .\"NODE "    Configuration"
1591 .SH "    Configuration"
1592 The options in this dialog are divided into three groups:
1593 Panel Options, Pause after run and Other Options.
1595 .B Panel Options
1597 .I Show Backup Files.
1598 If enabled, the Midnight Commander will show files ending with a tilde.
1599 Otherwise, they won't be shown (like GNU's ls option -B).
1601 .I Show Hidden Files.
1602 If enabled, the Midnight Commander will show all files that start with
1603 a dot (like ls -a).
1605 .I Mark moves down.
1606 If enabled, the selection bar will move down when you mark a file (with
1607 either C-t or the Insert key).
1609 .I Drop down menus.
1610 When this option is enabled, the pull down menus will be activated as
1611 soon as you press the
1612 .B F9
1613 key.  Otherwise, you will only get the menu title, and you will have
1614 to activate the menu either with the arrow keys or with the hotkeys.
1615 It is recommended if you are using hotkeys.
1617 .I Mix all files.
1618 If this option is enabled, all files and directories are shown mixed
1619 together.  If the option is off, directories (and links to directories)
1620 are shown at the beginning of the listing, and other files below.
1622 .I Fast directory reload.
1623 If this option is enabled, the Midnight Commander will use a trick to
1624 determine if the directory contents have changed.  The trick is to reload
1625 the directory only if the i-node of the directory has changed; this means
1626 that reloads only happen when files are created or deleted.  If what
1627 changes is the i-node for a file in the directory (file size changes,
1628 mode or owner changes, etc) the display is not updated.  In these cases,
1629 if you have the option on, you have to rescan the directory manually
1630 (with C-r).
1632 .B Pause after run
1634 After executing your commands, the Midnight Commander can pause, so
1635 that you can examine the output of the command.  There are three
1636 possible settings for this variable:
1638 .I Never.
1639 Means that you do not want to see the output of your command.  If you
1640 are using the Linux or FreeBSD console or an xterm, you will be able to
1641 see the output of the command by typing C-o.
1643 .I On dumb terminals.
1644 You will get the pause message on terminals that are not capable of
1645 showing the output of the last command executed (any terminal that is
1646 not an xterm or the Linux console).
1648 .I Always.
1649 The program will pause after executing all of your commands.
1651 .B Other Options
1653 .I Verbose operation.
1654 This toggles whether the file Copy, Rename and Delete operations are
1655 verbose (i.e., display a dialog box for each operation). If you have a
1656 slow terminal, you may wish to disable the verbose operation. It is
1657 automatically turned off if the speed of your terminal is less than
1658 9600 bps.
1660 .I Compute totals.
1661 If this option is enabled, the Midnight
1662 Commander computes total byte sizes and total number of files
1663 prior to any Copy, Rename and Delete operations. This will
1664 provide you with a more accurate progress bar at the expense
1665 of some speed. This option has no effect, if
1666 .I Verbose operation
1667 is disabled.
1669 .I Shell Patterns.
1670 By default the Select, Unselect and Filter commands will use shell-like
1671 regular expressions. The following conversions are performed to achieve
1672 this: the '*' is replaced by '.*' (zero or more characters); the '?'
1673 is replaced by '.' (exactly one character) and '.' by the literal
1674 dot. If the option is disabled, then the regular expressions are the
1675 ones described in ed(1).
1677 .I Auto Save Setup.
1678 If this option is enabled, when you exit the Midnight Commander the
1679 configurable options of the Midnight Commander are saved in the
1680 ~/.mc/ini file.
1682 .I Auto menus.
1683 If this option is enabled, the user menu will be invoked at startup.
1684 Useful for building menus for non-unixers.
1686 .I Use internal editor.
1687 If this option is enabled, the built-in file editor is used to edit
1688 files. If the option is disabled, the editor specified in the
1689 .B EDITOR
1690 environment variable is used.
1691 If no editor is specified,
1692 .B vi
1693 is used.  See the section on the
1694 .\"LINK2"
1695 internal file editor\&.
1696 .\"Internal File Editor"
1698 .I Use internal viewer.
1699 If this option is enabled, the built-in file viewer is used to view
1700 files. If the option is disabled, the pager specified in the
1701 .B PAGER
1702 environment variable is used.
1703 If no pager is specified, the
1704 .B view
1705 command is used.  See the section on the
1706 .\"LINK2"
1707 internal file viewer\&.
1708 .\"Internal File Viewer"
1710 .I Complete: show all.
1711 By default the Midnight Commander pops up all possible
1712 .\"LINK2"
1713 completions
1714 .\"Completion"
1715 if the completion is ambiguous only when you press
1716 .B Alt-Tab
1717 for the second time.  For the first time, it just completes as much as
1718 possible and beeps in the case of ambiguity.  Enable this option if you
1719 want to see all possible completions even after pressing
1720 .B Alt-Tab
1721 the first time.
1723 .I Rotating dash.
1724 If this option is enabled, the
1725 Midnight Commander shows a rotating dash in the upper right corner
1726 as a work in progress indicator.
1728 .I Lynx-like motion.
1729 If this option is enabled,
1730 you may use the arrows keys to automatically chdir if the
1731 current selection is a subdirectory and the shell command
1732 line is empty. By default, this setting is off.
1734 .I Cd follows links.
1735 This option, if set, causes the Midnight Commander to follow the
1736 logical chain of directories when changing current directory
1737 either in the panels, or using the cd command. This is the default
1738 behavior of bash. When unset, the Midnight Commander follows the
1739 real directory structure, so cd .. if you've entered that directory
1740 through a link will move you to the current directory's real parent
1741 and not to the directory where the link was present.
1743 .I Safe delete.
1744 If this option is enabled, deleting files and directory hotlist entries
1745 unintentionally becomes more difficult.  The default selection in the
1746 confirmation dialogs for deletion changes from "Yes" to "No".
1747 This option is disabled by default.
1748 .\"NODE "    Layout"
1749 .SH "    Layout"
1750 The layout dialog gives you a possibility to change the general layout
1751 of screen. You can specify whether the menubar, the command prompt, the
1752 hintbar and the function keybar are visible. On the Linux or FreeBSD
1753 console you can specify how many lines are shown in the output window.
1755 The rest of the screen area is used for the two directory panels. You
1756 can specify whether the area is split to the panels in vertical or
1757 horizontal direction. The split can be equal or you can specify an
1758 unequal split.
1760 You can specify whether
1761 .I permissions
1763 .I file types
1764 should be highlighted with distinctive
1765 .\"LINK2"
1766 Colors\&.
1767 .\"Colors"
1768 If the permission highlighting is enabled, the parts of the
1769 .I perm
1771 .I mode
1772 .\"LINK2"
1773 display fields
1774 .\"Listing Mode..."
1775 which apply to the user running Midnight Commander are highlighted with
1776 the color defined by the
1777 .I selected
1778 keyword.  If the file type highlighting is enabled, files are colored
1779 according to their file type (e.g. directory, core file, executable,
1780 and so on).
1782 If the
1783 .I Show Mini-Status
1784 option is enabled, one line of status information about the currently
1785 selected item is shown at the bottom of the panels.
1787 When run in a terminal emulator for X11, Midnight Commander sets the
1788 terminal window title to the current working directory and updates it
1789 when necessary.  If your terminal emulator is broken and you see some
1790 incorrect output on startup and directory change, turn off the
1791 .I Xterm Window Title
1792 option.
1793 .\"NODE "    Confirmation"
1794 .SH "    Confirmation"
1795 In this menu you configure the confirmation options for file deletion,
1796 directory hotlist entries deletion, overwriting, execution by pressing
1797 enter and quitting the program.
1798 .\"NODE "    Display bits"
1799 .SH "    Display bits"
1800 This is used to configure the range of visible characters on the
1801 screen.  This setting may be 7-bits if your terminal/curses supports
1802 only seven output bits, ISO-8859-1 displays all the characters in the
1803 ISO-8859-1 map and full 8 bits is for those terminals that can display
1804 full 8 bit characters.
1805 .\"NODE "    Learn keys"
1806 .SH "    Learn keys"
1807 This dialog allows you to test and redefine functional keys, cursor
1808 arrows and some other keys to make them work properly on your terminal.
1809 They often don't, since many terminal databases are incomplete or broken.
1811 You can move around with the Tab key and with the vi moving keys ('h'
1812 left, 'j' down, 'k' up and 'l' right).  Once you press any cursor movement
1813 key and it is recognized, you can use that key as well.
1815 You can test keys just by pressing each of them.  When you press a
1816 key and it is recognized properly, OK should appear next to the name
1817 of that key.  Once a key is marked OK it starts working as usually,
1818 e.g. F1 pressed the first time will just check that the F1 key works,
1819 but after that it will show help.  The same applies to the arrow keys.
1820 The Tab key should be working always.
1822 If some keys do not work properly then you won't see OK appear after
1823 pressing one of these.  Then you may want to redefine it.  Do it by pressing
1824 the button with the name of that key (either by the mouse or by Enter
1825 or Space after selecting the button with Tab or arrows).  Then a message
1826 box will appear asking you to press that key.  Do it and wait until the
1827 message box disappears.  If you want to abort, just press Escape once
1828 and wait.
1830 When you finish with all the keys, you can Save them.  The definitions
1831 for the keys you have redefined will be written into the [terminal:TERM]
1832 section of your ~/.mc/ini file (where TERM is the name of your current
1833 terminal).  The definitions of the keys that were already working properly
1834 are not saved.
1835 .\"NODE "    Virtual FS"
1836 .SH "    Virtual FS"
1837 This option gives you control over the settings of the
1838 .\"LINK2"
1839 Virtual File System\&.
1840 .\"Virtual File System"
1842 The Midnight Commander keeps in memory the information related to some
1843 of the virtual file systems to speed up the access to the files in the
1844 file system (for example, directory listings fetched from FTP servers).
1846 Also, in order to access the contents of compressed files (for example,
1847 compressed tar files) the Midnight Commander needs to create temporary
1848 uncompressed files on your disk.
1850 Since both the information in memory and the temporary files on disk
1851 take up resources, you may want to tune the parameters of the cached
1852 information to decrease your resource usage or to maximize the speed of
1853 access to frequently used file systems.
1855 Because of the format of the tar archives, the
1856 .I Tar filesystem
1857 needs to read the whole file just to load the file entries.  Since most
1858 tar files are usually kept compressed (plain tar files are species in
1859 extinction), the tar file system has to uncompress the file on the disk
1860 in a temporary location and then access the uncompressed file as a
1861 regular tar file.
1863 Now, since we all love to browse files and tar files all over the disk,
1864 it's common that you will leave a tar file and the re-enter it later.
1865 Since decompression is slow, the Midnight Commander will cache the
1866 information in memory for a limited time.  When the timeout expires, all
1867 the resources associated with the file system are released.  The default
1868 timeout is set to one minute.
1871 .\"LINK2"
1872 FTP File System
1873 .\"FTP File System"
1874 (ftpfs) allows you to browse directories on remote FTP servers.  It has
1875 several options.
1877 .I ftp anonymous password
1878 is the password used when you login as "anonymous".  Some sites require
1879 a valid e-mail address.  On the other hand, you probably don't want to
1880 give your real e-mail address to untrusted sites, especially if you are
1881 not using spam filtering.
1883 ftpfs keeps the directory listing it fetches from a FTP server in a cache. 
1884 The cache expire time is configurable with the
1885 .I ftpfs directory cache timeout
1886 option.  A low value for this option may slow down every operation on
1887 the ftpfs because every operation would require sending a request to the
1888 FTP server.
1890 You can define an FTP proxy host for doing FTP.  Note that most modern
1891 firewalls are fully transparent at least for passive FTP (see below), so
1892 FTP proxies are considered obsolete.
1895 .I Always use ftp proxy
1896 is not set, you can use the exclamation sign to enable proxy for certain
1897 hosts.  See
1898 .\"LINK2"
1899 FTP File System
1900 .\"FTP File System"
1901 for examples.
1903 If this option is set, the program will do two things: consult the
1904 @prefix@/lib/mc/mc.no_proxy file for lines containing host names that
1905 are local (if the host name starts with a dot, it is assumed to be a
1906 domain) and to assume that any hostnames without dots in their names are
1907 directly accessible.  All other hosts will be accessed through the
1908 specified FTP proxy.
1910 You can enable using
1911 .I ~/.netrc
1912 file, which keeps login names and passwords for ftp servers.  See netrc
1913 (5) for the description of the .netrc format.
1915 .I Use passive mode
1916 enables using FTP passive mode, when the connection for data transfer is
1917 initiated by the client, not by the server.  This option is recommended
1918 and enabled by default.  If this option is turned off, the data
1919 connection is initiated by the server.  This may not work with some
1920 firewalls.
1921 .\"NODE "    Save Setup"
1922 .SH "    Save Setup"
1923 At startup the Midnight Commander will try to load initialization
1924 information from the ~/.mc/ini file. If this file doesn't exist, it will
1925 load the information from the system-wide configuration file, located in
1926 @prefix@/share/mc/mc.ini. If the system-wide configuration file doesn't
1927 exist, MC uses the default settings.
1930 .I Save Setup
1931 command creates the ~/.mc/ini file by saving the current settings
1932 of the
1933 .\"LINK2"
1934 Left, Right
1935 .\"Left and Right Menus"
1937 .\"LINK2"
1938 Options
1939 .\"Options Menu"
1940 menus.
1942 If you activate the
1943 .I auto save setup
1944 option, MC will always save the current settings when exiting.
1946 There also exist settings which can't be changed from the menus. To
1947 change these settings you have to edit the setup file with your
1948 favorite editor. See the section on
1949 .\"LINK2"
1950 Special Settings
1951 .\"Special Settings"
1952 for more information.
1953 .SH ""
1954 .\"NODE "Executing operating system commands"
1955 .SH "Executing operating system commands"
1956 You may execute commands by typing them directly in the Midnight
1957 Commander's input line, or by selecting the program you want to
1958 execute with the selection bar in one of the panels and hitting Enter.
1960 If you press Enter over a file that is not executable, the Midnight
1961 Commander checks the extension of the selected file against the
1962 extensions in the
1963 .\"LINK2"
1964 Extensions File\&.
1965 .\"Extension File Edit"
1966 If a match is found then the code associated with that extension is
1967 executed. A very simple
1968 .\"LINK2"
1969 macro expansion
1970 .\"Macro Substitution"
1971 takes place before executing the command.
1972 .\"NODE "  The cd internal command"
1973 .SH "  The cd internal command"
1975 .I cd
1976 command is interpreted by the Midnight Commander, it is not passed to
1977 the command shell for execution.  Thus it may not handle all of the
1978 nice macro expansion and substitution that your shell does, although it
1979 does some of them:
1981 .I Tilde substitution.
1982 The (~) will be substituted with your home directory, if you append a
1983 username after the tilde, then it will be substituted with the login
1984 directory of the specified user.
1986 For example, ~guest is the home directory for the user guest, while
1987 ~/guest is the directory guest in your home directory.
1989 .I Previous directory.
1990 You can jump to the directory you were previously by using the special
1991 directory name '-' like this:
1992 .B cd -
1994 .I CDPATH directories.
1995 If the directory specified to the
1996 .B cd
1997 command is not in the current directory, then The Midnight Commander
1998 uses the value in the environment variable
1999 .B CDPATH
2000 to search for the directory in any of the named directories.
2002 For example you could set your
2003 .B CDPATH
2004 variable to ~/src:/usr/src, allowing you to change your directory to
2005 any of the directories inside the ~/src and /usr/src directories, from
2006 any place in the file system by using its relative name (for example
2007 cd linux could take you to /usr/src/linux).
2008 .\"NODE "  Macro Substitution"
2009 .SH "  Macro Substitution"
2010 When accessing a
2011 .\"LINK2"
2012 user menu\&,
2013 .\"Menu File Edit"
2014 or executing an
2015 .\"LINK2"
2016 extension dependent command\&,
2017 .\"Extension File Edit"
2018 or running a command from the command line input, a simple macro
2019 substitution takes place.
2021 The macros are:
2023 .I %i
2024 The indent of blank space, equal the cursor column position.  For edit
2025 menu only.
2027 .I %y
2028 The syntax type of current file. For edit menu only.
2030 .I %k
2031 The block file name.
2033 .I %e
2034 The error file name.
2036 .I %m
2037 The current menu name.
2039 .IR %f " and " %p
2040 The current file name.
2042 .I %x
2043 The extension of current file name.
2045 .I %b
2046 The current file name without extension.
2048 .I %d
2049 The current directory name.
2051 .I %F
2052 The current file in the unselected panel.
2054 .I %D
2055 The directory name of the unselected panel.
2057 .I %t
2058 The currently tagged files.
2060 .I %T
2061 The tagged files in the unselected panel.
2063 .IR %u " and " %U
2064 Similar to the %t and %T macros, but in addition the files are untagged.
2065 You can use this macro only once per menu file entry or extension file
2066 entry, because next time there will be no tagged files.
2068 .IR %s " and " %S
2069 The selected files: The tagged files if there are any. Otherwise the
2070 current file.
2072 .I %cd
2073 This is a special macro that is used to change the current directory
2074 to the directory specified in front of it.  This is used primarily as
2075 an interface to the
2076 .\"LINK2"
2077 Virtual File System\&.
2078 .\"Virtual File System"
2080 .I %view
2081 This macro is used to invoke the internal viewer.  This macro can be
2082 used alone, or with arguments.  If you pass any arguments to this
2083 macro, they should be enclosed in brackets.
2085 The arguments are:
2086 .I ascii
2087 to force the viewer into ascii mode;
2088 .I hex
2089 to force the viewer into hex mode;
2090 .I nroff
2091 to tell the viewer that it should interpret the bold and underline
2092 sequences of nroff;
2093 .I unformatted
2094 to tell the viewer to not interpret nroff commands for making the text
2095 bold or underlined.
2097 .I %%
2098 The % character
2100 .I %{some text}
2101 Prompt for the substitution. An input box is shown and the text inside
2102 the braces is used as a prompt. The macro is substituted by the text
2103 typed by the user. The user can press ESC or F10 to cancel. This macro
2104 doesn't work on the command line yet.
2106 .I %var{ENV:default}
2107 If environment variable
2108 .I ENV
2109 is unset, the
2110 .I default
2111 is substituted.  Otherwise, the value of
2112 .I ENV
2113 is substituted.
2114 .\"NODE "  The subshell support"
2115 .SH "  The subshell support"
2116 The subshell support is a compile time option, that works with the
2117 shells: bash, tcsh and zsh.
2119 When the subshell code is activated the Midnight Commander will
2120 spawn a concurrent copy of your shell (the one defined in the
2121 .B SHELL
2122 variable and if it is not defined, then the one in the /etc/passwd
2123 file) and run it in a pseudo terminal, instead of invoking a new shell
2124 each time you execute a command, the command will be passed to the
2125 subshell as if you had typed it.  This also allows you to change the
2126 environment variables, use shell functions and define aliases that are
2127 valid until you quit the Midnight Commander.
2129 If you are using
2130 .B bash
2131 you can specify startup
2132 commands for the subshell in your ~/.mc/bashrc file and
2133 special keyboard maps in the ~/.mc/inputrc file.
2134 .B tcsh
2135 users may specify startup commands in the ~/.mc/tcshrc file.
2137 When the subshell code is used, you can suspend applications at any
2138 time with the sequence C-o and jump back to the Midnight Commander, if
2139 you interrupt an application, you will not be able to run other
2140 external commands until you quit the application you interrupted.
2142 An extra added feature of using the subshell is that the prompt
2143 displayed by the Midnight Commander is the same prompt that you are
2144 currently using in your shell.
2147 .\"LINK2"
2148 OPTIONS
2149 .\"OPTIONS"
2150 section has more information on how you can control the subshell code.
2151 .\"NODE "Chmod"
2152 .SH "Chmod"
2153 The Chmod window is used to change the attribute bits in a group of
2154 files and directories.  It can be invoked with the C-x c key combination.
2156 The Chmod window has two parts -
2157 .I Permissions
2159 .IR File .
2161 In the File section are displayed the name of the file or directory
2162 and its permissions in octal form, as well as its owner and group.
2164 In the Permissions section there is a set of check buttons which
2165 correspond to the file attribute bits.  As you change the attribute
2166 bits, you can see the octal value change in the File section.
2168 To move between the widgets (buttons and check buttons) use the
2169 .I arrow keys
2170 or the
2171 .I Tab
2172 key.  To change the state of the check buttons or to select a button
2174 .I Space.
2175 You can also use the hotkeys on the buttons to quickly activate them.
2176 Hotkeys are shown as highlighted letters on the buttons.
2178 To set the attribute bits, use the Enter key.
2180 When working with a group of files or directories, you just click on
2181 the bits you want to set or clear.  Once you have selected the bits
2182 you want to change, you select one of the action buttons (Set marked
2183 or Clear marked).
2185 Finally, to set the attributes exactly to those specified, you can use
2187 .B [Set all]
2188 button, which will act on all the tagged files.
2190 .B [Marked all]
2191 set only marked attributes to all selected files
2193 .B [Set marked]
2194 set marked bits in attributes of all selected files
2196 .B [Clean marked]
2197 clear marked bits in attributes of all selected files
2199 .B [Set]
2200 set the attributes of one file
2202 .B [Cancel]
2203 cancel the Chmod command
2204 .\"NODE "Chown"
2205 .SH "Chown"
2206 The Chown command is used to change the owner/group of a file. The hot
2207 key for this command is C-x o.
2208 .\"NODE "Advanced Chown"
2209 .SH "Advanced Chown"
2210 The Advanced Chown command is the
2211 .\"LINK2"
2212 Chmod
2213 .\"Chmod"
2215 .\"LINK2"
2216 Chown
2217 .\"Chown"
2218 command combined into one window. You can change the permissions and
2219 owner/group of files at once.
2220 .\"NODE "File Operations"
2221 .SH "File Operations"
2222 When you copy, move or delete files the Midnight Commander shows the
2223 file operations dialog.  It shows the files currently being processed
2224 and uses up to three progress bars.  The file bar indicates the
2225 percentage of the current file that has been processed so far.  The
2226 count bar shows how many of the tagged files have been handled.  The
2227 bytes bar indicates the percentage of the total size of the tagged files
2228 that has been handled.  If the verbose option is off, the file and bytes
2229 bars are not shown.
2231 There are two buttons at the bottom of the dialog. Pressing the Skip
2232 button will skip the rest of the current file. Pressing the Abort
2233 button will abort the whole operation, the rest of the files are
2234 skipped.
2236 There are three other dialogs which you can run into during the file
2237 operations.
2239 The error dialog informs about error conditions and has three choices.
2240 Normally you select either the Skip button to skip the file or the Abort
2241 button to abort the operation altogether.  You can also select the Retry
2242 button if you fixed the problem from another terminal.
2244 The replace dialog is shown when you attempt to copy or move a file on
2245 the top of an existing file.  The dialog shows the dates and sizes of
2246 the both files.  Press the Yes button to overwrite the file, the No
2247 button to skip the file, the All button to overwrite all the files, the
2248 None button to never overwrite and the Update button to overwrite if the
2249 source file is newer than the target file.  You can abort the whole
2250 operation by pressing the Abort button.
2252 The recursive delete dialog is shown when you try to delete a directory
2253 which is not empty.  Press the Yes button to delete the directory
2254 recursively, the No button to skip the directory, the All button to
2255 delete all the directories and the None button to skip all the non-empty
2256 directories.  You can abort the whole operation by pressing the Abort
2257 button.  If you selected the Yes or All button you will be asked for a
2258 confirmation.  Type "yes" only if you are really sure you want to do the
2259 recursive delete.
2261 If you have tagged files and perform an operation on them only the files
2262 on which the operation succeeded are untagged. Failed and skipped files
2263 are left tagged.
2264 .\"NODE "Mask Copy/Rename"
2265 .SH "Mask Copy/Rename"
2266 The copy/move operations let you translate the names of files in an
2267 easy way.  To do it, you have to specify the correct source mask and
2268 usually in the trailing part of the destination specify some wildcards.
2269 All the files matching the source mask are copied/renamed according to
2270 the target mask.  If there are tagged files, only the tagged files
2271 matching the source mask are renamed.
2273 There are other options which you can set:
2275 .B Follow links
2277 determines whether make the symlinks and hardlinks in the source
2278 directory (recursively in subdirectories) new links in the target
2279 directory or whether would you like to copy their content.
2281 .B Dive into subdirs
2283 determines the behavior when the source directory is about to be copied,
2284 but the target directory already exists.  The default action is to copy
2285 the contents of the source directory into the target directory. 
2286 Enabling this option causes copying the source directory itself into the
2287 target directory.
2289 For example, you want to copy directory
2290 .I /foo
2291 containing file
2292 .I bar
2294 .IR /bla/foo ,
2295 which is an already existing directory.  Normally (when
2296 .B Dive into subdirs
2297 is not set), mc would copy file
2298 .I /foo/bar
2299 into the file
2300 .IR /bla/foo/bar .
2301 By enabling this option the
2302 .I /bla/foo/foo
2303 directory will be created, and
2304 .I /foo/bar
2305 will be copied into
2306 .IR /bla/foo/foo/bar .
2308 .B Preserve attributes
2310 determines whether to preserve the permissions, timestamps and (if you
2311 are root) the ownership of the original files.  If this option is not
2312 set, the current value of the umask will be respected.
2314 .B Use shell patterns on
2316 When the shell patterns option is on you can use the '*' and '?'
2317 wildcards in the source mask.  They work like they do in the shell.  In
2318 the target mask only the '*' and '\\<digit>' wildcards are allowed.  The
2319 first '*' wildcard in the target mask corresponds to the first wildcard
2320 group in the source mask, the second '*' corresponds to the second group
2321 and so on.  The '\\1' wildcard corresponds to the first wildcard group
2322 in the source mask, the '\\2' wildcard corresponds to the second group
2323 and so on all the way up to '\\9'.  The '\\0' wildcard is the whole
2324 filename of the source file.
2326 Two examples:
2328 If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the
2329 file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
2331 Suppose you want to swap basename and extension so that "file.c" would
2332 become "c.file" and so on.  The source mask for this is "*.*" and the
2333 destination is "\\2.\\1".
2335 .B Use shell patterns off
2337 When the shell patterns option is off the MC doesn't do automatic
2338 grouping anymore. You must use '\\(...\\)' expressions in the source
2339 mask to specify meaning for the wildcards in the target mask. This is
2340 more flexible but also requires more typing. Otherwise target masks
2341 are similar to the situation when the shell patterns option is on.
2343 Two examples:
2345 If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is
2346 "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy
2347 will be "/bla/foo.tgz".
2349 Let's suppose you want to swap basename and extension so that "file.c"
2350 will become "c.file" and so on. The source mask for this is
2351 "^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1".
2353 .B Case Conversions
2355 You can also change the case of the filenames.  If you use '\\u'
2356 or '\\l' in the target mask, the next character will be converted to
2357 uppercase or lowercase correspondingly.
2359 If you use '\\U' or '\\L' in the target mask, the next characters will
2360 be converted to uppercase or lowercase correspondingly up to the
2361 next '\\E' or next '\\U', '\\L' or the end of the file name.
2363 The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
2365 For example, if the source mask is '*' (shell patterns on) or '^\\(.*\\)$'
2366 (shell patterns off) and the target mask is '\\L\\u*' the file names
2367 will be converted to have initial upper case and otherwise lower case.
2369 You can also use '\\' as a quote character. For example, '\\\\' is
2370 a backslash and '\\*' is an asterisk.
2371 .\"NODE "Internal File Viewer"
2372 .SH "Internal File Viewer"
2373 The internal file viewer provides two display modes: ASCII and hex.
2374 To toggle between modes, use the F4 key.
2376 The viewer will try to use the best method provided by your system or
2377 the file type to display the information.
2378 Some character sequences, which appear most often in preformatted manual
2379 pages, are displayed bold and underlined, thus making a pretty display
2380 of your files.
2382 When in hex mode, the search function accepts text in quotes and
2383 constant numbers.  Text in quotes is matched exactly after removing
2384 the quotes.  Each number matches one byte.  You can mix quoted text
2385 with constants like this:
2388 "String" -1 0xBB 012 "more text"
2391 Note that 012 is an octal number.  -1 is converted to 0xFF.
2393 Here is a listing of the actions associated with each key that the
2394 Midnight Commander handles in the internal file viewer.
2396 .B F1
2397 Invoke the built-in hypertext help viewer.
2399 .B F2
2400 Toggle the wrap mode.
2402 .B F4
2403 Toggle the hex mode.
2405 .B F5
2406 Goto line.  This will prompt you for a line number and will display
2407 that line.
2409 .B F6, /.
2410 Regular expression search.
2412 .B ?,
2413 Reverse regular expression search.
2415 .B F7
2416 Normal search / hex mode search.
2418 .B C-s, F17, n.
2419 Start normal search if there was no previous search expression else
2420 find next match.
2422 .B C-r.
2423 Start reverse search if there was no previous search expression else
2424 find next match.
2426 .B F8
2427 Toggle Raw/Parsed mode: This will show the file as found on disk or if
2428 a processing filter has been specified in the mc.ext file, then the
2429 output from the filter. Current mode is always the other than written
2430 on the button label, since on the button is the mode which you enter
2431 by that key.
2433 .B F9
2434 Toggle the format/unformat mode: when format mode is on the viewer
2435 will interpret some string sequences to show bold and underline with
2436 different colors. Also, on button label is the other mode than current.
2438 .B F10, Esc.
2439 Exit the internal file viewer.
2441 .B next-page, space, C-v.
2442 Scroll one page forward.
2444 .B prev-page, Alt-v, C-b, backspace.
2445 Scroll one page backward.
2447 .B down-key
2448 Scroll one line forward.
2450 .B up-key
2451 Scroll one line backward.
2453 .B C-l
2454 Refresh the screen.
2456 .B C-o
2457 Switch to the subshell and show the command screen.
2459 .B !
2460 Like C-o, but run a new shell if the subshell is not running.
2462 .B "[n] m"
2463 Set the mark n.
2465 .B "[n] r"
2466 Jump to the mark n.
2468 .B C-f
2469 Jump to the next file.
2471 .B C-b
2472 Jump to the previous file.
2474 .B Alt-r
2475 Toggle the ruler.
2477 It's possible to instruct the file viewer how to display a file, look
2478 at the
2479 .\"LINK2"
2480 Extension File Edit section
2481 .\"Extension File Edit"
2482 .\"NODE "Internal File Editor"
2483 .SH "Internal File Editor"
2484 The internal file editor is a full-featured full screen editor.  It can
2485 edit files up to 64 megabytes.  It is possible to edit binary files. 
2486 The internal file editor is invoked using
2487 .B F4
2488 if the
2489 .I use_internal_edit
2490 option is set in the initialization file.
2492 The features it presently supports are: block copy, move, delete, cut,
2493 paste; key for key undo; pull-down menus; file insertion; macro
2494 commands; regular expression search and replace (and our own
2495 scanf-printf search and replace); shift-arrow text highlighting (if
2496 supported by the terminal); insert-overwrite toggle; word wrap;
2497 autoindent; tunable tab size; syntax highlighting for various file
2498 types; and an option to pipe text blocks through shell commands like
2499 indent and ispell.
2501 The editor is very easy to use and requires no tutoring. To see what
2502 keys do what, just consult the appropriate pull-down menu. Other keys
2503 are: Shift movement keys do text highlighting.
2504 .B Ctrl-Ins
2505 copies to the file
2506 .B cooledit.clip
2508 .B Shift-Ins
2509 pastes from cooledit.clip.
2510 .B Shift-Del
2511 cuts to
2512 .BR cooledit.clip ,
2514 .B Ctrl-Del
2515 deletes highlighted text. Mouse highlighting also works, and you
2516 can override the mouse as usual by holding down the shift key
2517 while dragging the mouse to let normal terminal mouse highlighting
2518 work.
2520 To define a macro, press
2521 .B Ctrl-R
2522 and then type out the key
2523 strokes you want to be executed. Press
2524 .B Ctrl-R
2525 again when finished. You can then assign the macro to any key you
2526 like by pressing that key. The macro is executed when you press
2527 .B Ctrl-A
2528 and then the assigned key. The macro is also executed if
2529 you press Meta, Ctrl, or Esc and the assigned key, provided that the
2530 key is not used for any other function. Once defined, the macro
2531 commands go into the file
2532 .B .mc/cedit/cooledit.macros
2533 in your home directory. You can delete a macro by deleting the
2534 appropriate line in this file.
2536 .B F19
2537 will format the currently highlighted block (plain text or
2538 .B C
2540 .B C++
2541 code or another). This is controlled by the
2542 file
2543 .B @prefix@/share/mc/edit.indent.rc
2544 which is copied to
2545 .B .mc/cedit/edit.indent.rc
2546 in your home directory the first time you use it.
2548 You can use scanf search and replace to search and replace
2549 a C format string. First take a look at the
2550 .B sscanf
2552 .B sprintf
2553 man pages to see what a format string is and how it works.  Consider
2554 following example.  Suppose you want to replace all occurrences of an
2555 open bracket, three comma separated numbers, and a close bracket, with
2556 the word
2557 .IR apples ,
2558 the third number, the word
2559 .I oranges
2560 and then the second number.  Then fill in the Replace dialog box as
2561 follows:
2564  Enter search string:
2565   (%d,%d,%d)
2566  Enter replacement string:
2567   apples %d oranges %d
2568  Enter replacement argument order:
2569   3,2
2572 The last line specifies that the third and then the second
2573 number are to be used in place of the first and second.
2575 It is advisable to use this feature with Prompt on replace on, because
2576 a match is thought to be found whenever the number of arguments found
2577 matches the number given, which is not always a real match. Scanf also
2578 treats whitespace as being elastic.  Note that the scanf format %[ is
2579 very useful for scanning strings, and whitespace.
2581 The editor also displays non-us characters (160+). When editing
2582 binary files, you should set
2583 .B display bits
2584 to 7 bits in the options menu to keep the spacing clean.
2585 .\"NODE "Completion"
2586 .SH "Completion"
2587 Let the Midnight Commander type for you.
2589 Attempt to perform completion on the text before current position.  MC
2590 attempts completion treating the text as variable (if the text begins
2591 with
2592 .BR $ ),
2593 username (if the text begins with
2594 .BR ~ ),
2595 hostname (if the text begins with
2596 .BR @ )
2597 or command (if you are on the command line in the position where you
2598 might type a command, possible completions then include shell reserved
2599 words and shell built-in commands as well) in turn.  If none of these
2600 matches, filename completion is attempted.
2602 Filename, username, variable and hostname completion works on all input
2603 lines, command completion is command line specific.  If the completion
2604 is ambiguous (there are more different possibilities), MC beeps and the
2605 following action depends on the setting of the
2606 .I Complete: show all
2607 option in the
2608 .\"LINK2"
2609 Configuration
2610 .\"Configuration"
2611 dialog.  If it is enabled, a list of all possibilities pops up next to
2612 the current position and you can select with the arrow keys and
2613 .B Enter
2614 the correct entry.  You can also type the first letters in which the
2615 possibilities differ to move to a subset of all possibilities and
2616 complete as much as possible.  If you press
2617 .B Alt-Tab
2618 again, only the subset will be shown in the listbox, otherwise the first
2619 item which matches all the previous characters will be highlighted.  As
2620 soon as there is no ambiguity, dialog disappears, but you can hide it by
2621 canceling keys
2622 .BR Esc ,
2623 .B F10
2624 and left and right arrow keys. If
2625 .\"LINK2"
2626 Complete: show all
2627 .\"Configuration"
2628 is disabled, the dialog pops up only if you press
2629 .B Alt-Tab
2630 for the second time, for the first time MC just beeps.
2631 .\"NODE "Virtual File System"
2632 .SH "Virtual File System"
2633 The Midnight Commander is provided with a code layer to access the file
2634 system; this code layer is known as the virtual file system switch.  The
2635 virtual file system switch allows the Midnight Commander to manipulate
2636 files not located on the Unix file system.
2638 Currently the Midnight Commander is packaged with some Virtual File
2639 Systems (VFS): the
2640 .I local
2641 file system, used for accessing the regular Unix file system; the
2642 .IR ftpfs ,
2643 used to manipulate files on remote systems with the FTP protocol; the
2644 .IR tarfs ,
2645 used to manipulate tar and compressed tar files; the
2646 .IR undelfs ,
2647 used to recover deleted files on ext2 file systems (the default file
2648 system for Linux systems),
2649 .I fish
2650 (for manipulating files over shell connections such as rsh and ssh) and
2651 finally the
2652 .I mcfs
2653 (Midnight Commander file system), a network based file system.  If the
2654 code was compiled with
2655 .I smbfs
2656 support, you can manipulate files on remote systems with the SMB (CIFS)
2657 protocol.
2659 A generic
2660 .I extfs
2661 (EXTernal virtual File System) is provided in order to easily expand
2662 VFS capabilities using scripts and external software.
2664 The VFS switch code will interpret all of the path names used and will
2665 forward them to the correct file system, the formats used for each one
2666 of the file systems is described later in their own section.
2667 .\"NODE "  FTP File System"
2668 .SH "  FTP File System"
2669 The FTP File System (ftpfs) allows you to manipulate files on remote
2670 machines.  To actually use it, you can use the
2671 .I FTP link
2672 item in the menu or directly change your current directory using the
2673 .I cd
2674 command to a path name that looks like this:
2676 .I /#ftp:[!][user[:pass]@]machine[:port][remote-dir]
2679 .IR user ,
2680 .I port
2682 .I remote-dir
2683 elements are optional.  If you specify the
2684 .I user
2685 element, the Midnight Commander will login to the remote machine as that
2686 user, otherwise it will use anonymous login or the login name from the
2687 .I ~/.netrc
2688 file.  The optional
2689 .I pass
2690 element is the password used for the connection.  Using the password in
2691 the VFS directory name is not recommended, because it can appear on the
2692 screen in clear text and can be saved to the directory history.
2694 To enable using FTP proxy, prepend
2695 .B !
2696 (an exclamation sign) to the hostname.
2698 Examples:
2701     /#ftp:ftp.nuclecu.unam.mx/linux/local
2702     /#ftp:tsx-11.mit.edu/pub/linux/packages
2703     /#ftp:!behind.firewall.edu/pub
2704     /#ftp:guest@remote-host.com:40/pub
2705     /#ftp:miguel:xxx@server/pub
2708 Please check the
2709 .\"LINK2"
2710 Virtual File System
2711 .\"Virtual FS"
2712 dialog box for ftpfs options.
2713 .\"NODE "  Tar File System"
2714 .SH "  Tar File System"
2715 The tar file system provides you with read-only access to your tar
2716 files and compressed tar files by using the chdir command.  To change
2717 your directory to a tar file, you change your current directory to the
2718 tar file by using the following syntax:
2720 .I /filename.tar#utar/[dir-inside-tar]
2722 The mc.ext file already provides a shortcut for tar files, this means
2723 that usually you just point to a tar file and press return to enter
2724 into the tar file, see the
2725 .\"LINK2"
2726 Extension File Edit
2727 .\"Extension File Edit"
2728 section for details on how this is done.
2730 Examples:
2733     mc-3.0.tar.gz#utar/mc-3.0/vfs
2734     /ftp/GCC/gcc-2.7.0.tar#utar
2737 The latter specifies the full path of the tar archive.
2738 .\"NODE "  FIle transfer over SHell filesystem"
2739 .SH "  FIle transfer over SHell filesystem"
2740 The fish file system is a network based file system that allows you to
2741 manipulate the files in a remote machine as if they were local. To use
2742 this, the other side has to either run fish server, or has to have
2743 bash-compatible shell.
2745 To connect to a remote machine, you just need to chdir
2746 into a special directory which name is in the following
2747 format:
2749 .I /#sh:[user@]machine[:options]/[remote-dir]
2752 .I user,
2753 .I options
2755 .I remote-dir
2756 elements are optional.  If you specify the
2757 .I user
2758 element, the Midnight Commander will try to login on the remote
2759 machine as that user, otherwise it will use your login name.
2762 .I options
2763 are 'C' - use compression and 'rsh' use rsh instead of ssh.  If the
2764 .I remote-dir
2765 element is present, your current directory on the remote machine will be
2766 set to this one.
2768 Examples:
2771     /#sh:onlyrsh.mx:r/linux/local
2772     /#sh:joe@want.compression.edu:C/private
2773     /#sh:joe@noncompressed.ssh.edu/private
2775 .\"NODE "  Network File System"
2776 .SH "  Network File System"
2777 The Midnight Commander file system is a network base file system that
2778 allows you to manipulate the files in a remote machine as if they were
2779 local.  To use this, the remote machine must be running the mcserv(8)
2780 server program.
2782 To connect to a remote machine, you just need to chdir into a special
2783 directory which name is in the following format:
2785 .I /#mc:[user@]machine[:port][remote-dir]
2788 .I user, port
2790 .I remote-dir
2791 elements are optional.  If you specify the
2792 .I user
2793 element then the Midnight Commander will try to logon on the remote
2794 machine as that user, otherwise it will use your login name.
2797 .I port
2798 element is used when the remote server is running on a special port
2799 (see the mcserv(8) manual page for more information about ports);
2800 finally, if the
2801 .I remote-dir
2802 element is present, your current directory on the remote machine will
2803 be set to this one.
2805 Examples:
2808     /#mc:ftp.nuclecu.unam.mx/linux/local
2809     /#mc:joe@foo.edu:11321/private
2811 .\"NODE "  Undelete File System"
2812 .SH "  Undelete File System"
2813 On Linux systems, if you asked configure to use the ext2fs undelete
2814 facilities, you will have the undelete file system available.
2815 Recovery of deleted files is only available on ext2 file systems.  The
2816 undelete file system is just an interface to the ext2fs library to
2817 retrieve all of the deleted files names on an ext2fs and provides and
2818 to extract the selected files into a regular partition.
2820 To use this file system, you have to chdir into the special file name
2821 formed by the "/#undel" prefix and the file name where the actual
2822 file system resides.
2824 For example, to recover deleted files on the second partition of the
2825 first SCSI disk on Linux, you would use the following path name:
2828     /#undel:sda2
2831 It may take a while for the undelfs to load the required information
2832 before you start browsing files there.
2833 .\"NODE "  SMB File System"
2834 .SH "  SMB File System"
2835 The smbfs allows you to manipulate files on remote machines with SMB
2836 (or CIFS) protocol.  These include Windows for Workgroups,
2837 Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.
2838 To actually use it, you may try to use the panel command "SMB link..."
2839 (accessible from the menubar) or you may directly change your current
2840 directory to it using the cd command to a path name that looks like this:
2842 .I /#smb:[user@]machine[/service][/remote-dir]
2845 .IR user ,
2846 .I service
2848 .I remote-dir
2849 elements are optional.
2851 .IR user ,
2852 .I domain
2854 .I password
2855 can be specified in an input dialog.
2857 Examples:
2860     /#smb:machine/Share
2861     /#smb:other_machine
2862     /#smb:guest@machine/Public/Irlex
2864 .\"NODE "  EXTernal File System"
2865 .SH "  EXTernal File System"
2866 .B extfs
2867 allows to integrate numerous features and file types into GNU Midnight
2868 Commander in an easy way, by writing scripts.
2870 Extfs filesystems can be divided into two categories:
2872 1. Stand-alone filesystems, which are not associated with any existing
2873 file.  They represent certain system-wide data as a directory tree.
2874 You can invoke them by typing
2875 .RI ' "cd #fsname" '
2876 where fsname is an extfs short name (see below).  Examples of such
2877 filesystems include audio (list audio tracks on the CD) or apt (list of
2878 all Debian packages in the system).
2880 For example, to list CD-Audio tracks on your CD-ROM drive, type
2883   cd #audio
2886 2. 'Archive' filesystems (like rpm, patchfs and more), which represent
2887 contents of a file as a directory tree.  It can consist of 'real' files
2888 compressed in an archive (urar, rpm) or virtual files, like messages
2889 in a mailbox (mailfs) or parts of a patch (patchfs).  To access such
2890 filesystems
2891 .RI ' #fsname '
2892 should be appended to the archive name.  Note that the archive itself
2893 can be on another vfs.
2895 For example, to list contents of a zip archive documents.zip type
2898   cd documents.zip#uzip
2901 In many aspects, you could treat extfs like any other directory.  For
2902 instance, you can add it to the hotlist or change to it from directory
2903 history.  An important limitation is that you cannot invoke shell
2904 commands inside extfs, just like any other non-local VFS.
2906 Common extfs scripts included with Midnight Commander are:
2908 .B a
2909 access 'A:' DOS/Windows diskette
2910 .RI ( "cd #a" ).
2912 .B apt
2913 front end to Debian's APT package management system
2914 .RI ( "cd #apt" ).
2916 .B audio
2917 audio CD ripping and playing
2918 .RI ( "cd #audio"
2920 .IR "cd device#audio" ).
2922 .B bpp
2923 package of Bad Penguin GNU/Linux distribution
2924 .RI ( "cd file.bpp#bpp" ).
2926 .B deb
2927 package of Debian GNU/Linux distribution
2928 .RI ( "cd file.deb#deb" ).
2930 .B dpkg
2931 Debian GNU/Linux installed packages
2932 .RI ( "cd #deb" ).
2934 .B hp48
2935 view and copy files to/from a HP48 calculator
2936 .RI ( "cd #hp48" ).
2938 .B lslR
2939 browsing of lslR listings as found on many FTPs
2940 .RI ( "cd filename#lslR" ).
2942 .B mailfs
2943 mbox-style mailbox files support
2944 .RI ( "cd mailbox#mailfs" ).
2946 .B patchfs
2947 extfs to handle unified and context diffs
2948 .RI ( "cd filename#patchfs" ).
2950 .B rpm
2951 RPM package
2952 .RI ( "cd filename#rpm" ).
2954 .B rpms
2955 RPM database management
2956 .RI ( "cd #rpms" ).
2958 .B ulha, urar, uzip, uzoo, uar, uha
2959 archivers
2960 .RI ( "cd archive#xxxx"
2961 where xxxx is one of:
2962 .IR ulha ,
2963 .IR urar ,
2964 .IR uzip ,
2965 .IR uzoo ,
2966 .IR uar ,
2967 .IR uha ).
2969 You could bind file type/extension to specified extfs as described in the
2970 .\"LINK2"
2971 Extension File Edit
2972 .\"Extension File Edit"
2973 section.  Here is an example entry for Debian packages:
2976   regex/\.deb$
2977           Open=%cd %p#deb
2979 .\"NODE "Colors"
2980 .SH "Colors"
2981 The Midnight Commander will try to detect if your terminal supports
2982 color using the terminal database and your terminal name.  Sometimes
2983 it gets confused, so you may force color mode or disable color mode
2984 using the -c and -b flag respectively.
2986 If the program is compiled with the Slang screen manager instead of
2987 ncurses, it will also check the variable
2988 .B COLORTERM,
2989 if it is set, it has the same effect as the -c flag.
2991 You may specify terminals that always force color mode
2992 by adding the
2993 .I color_terminals
2994 variable to the Colors section of the initialization file.  This will
2995 prevent the Midnight Commander from trying to detect if your terminal
2996 supports color.  Example:
2999 [Colors]
3000 color_terminals=linux,xterm
3001 color_terminals=terminal-name1,terminal-name2...
3004 The program can be compiled with both ncurses and slang, ncurses does
3005 not provide a way to force color mode: ncurses uses just the
3006 information in the terminal database.
3008 The Midnight Commander provides a way to change the default colors.
3009 Currently the colors are configured using the environment variable
3010 .B MC_COLOR_TABLE
3011 or the Colors section in the initialization file.
3013 In the Colors section, the default color map is loaded from the
3014 .I base_color
3015 variable.  You can specify an alternate color map for a terminal by
3016 using the terminal name as the key in this section.  Example:
3019 [Colors]
3020 base_color=
3021 xterm=menu=magenta:marked=,magenta:markselect=,red
3024 The format for the color definition is:
3027   <keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...
3030 The colors are optional, and the keywords are: normal, selected, marked,
3031 markselect, errors, input, reverse, gauge.  Menu colors are: menu,
3032 menusel, menuhot, menuhotsel.  Dialog colors are: dnormal, dfocus,
3033 dhotnormal, dhotfocus.  Help colors are: helpnormal, helpitalic,
3034 helpbold, helplink, helpslink.  Viewer color is: viewunderline.  Special
3035 highlighting colors are: executable, directory, link, stalelink, device,
3036 special, core.  Editor colors are: editnormal, editbold, editmarked.
3038 .I input
3039 determines the color of input lines used in query dialogs.
3041 .I gauge
3042 determines the color of the filled part of the progress bar (gauge),
3043 which is used to show the user the progress of file operations, such as
3044 copying.
3046 The dialog boxes use the following colors:
3047 .I dnormal
3048 is used for the normal text,
3049 .I dfocus
3050 is the color used for the currently selected component,
3051 .I dhotnormal
3052 is the color used to differentiate the hotkey color in normal
3053 components, whereas the
3054 .I dhotfocus
3055 color is used for the highlighted color in the currently selected
3056 component.
3058 Menus use the same scheme but uses the menu, menusel, menuhot and
3059 menuhotsel tags instead.
3061 Help uses the following colors:
3062 .I helpnormal
3063 is used for normal text,
3064 .I helpitalic
3065 is used for text which is emphasized in italic in the manual page,
3066 .I helpbold
3067 is used for text which is emphasized in bold in the manual page,
3068 .I helplink
3069 is used for not selected hyperlinks and
3070 .I helpslink
3071 is used for selected hyperlink.
3073 Special highlight colors determine how files are displayed when file
3074 highlighting is enabled (see the section on
3075 .\"LINK2"
3076 Layout\&).
3077 .\"Layout"
3078 .I directory
3079 is used for directories or symbolic links to directories;
3080 .I executable
3081 for executable files;
3082 .I link
3083 is used for symbolic links which are neither stale nor linked
3084 to a directory;
3085 .I stalelink
3086 is used for stale symbolic links;
3087 .I device
3088 - character and block devices;
3089 .I special
3090 is used for special files, such as pipes and sockets;
3091 .I core
3092 is for core files.
3094 The possible colors are: black, gray, red, brightred, green,
3095 brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
3096 cyan, brightcyan, lightgray and white. And there is a special keyword
3097 for transparent background. It is 'default'. The 'default' can only be
3098 used for background color. Example:
3101 [Colors]
3102 base_color=normal=white,default:marked=magenta,default
3104 .\"NODE "Special Settings"
3105 .SH "Special Settings"
3106 Most of the settings of the Midnight Commander can be changed from the
3107 menus. However, there are a small number of settings which can only be
3108 changed by editing the setup file.
3110 These variables may be set in your ~/.mc/ini file:
3112 .I clear_before_exec
3113 By default the Midnight Commander clears the screen before executing a
3114 command.  If you would prefer to see the output of the command at the
3115 bottom of the screen, edit your ~/.mc/ini file and change the value of
3116 the field clear_before_exec to 0.
3118 .I confirm_view_dir
3119 If you press F3 on a directory, normally MC enters that directory.  If
3120 this flag is set to 1, then MC will ask for confirmation before changing
3121 the directory if you have files tagged.
3123 .I ftpfs_retry_seconds
3124 This value is the number of seconds the Midnight Commander will wait
3125 before attempting to reconnect to an FTP server that has denied the
3126 login.  If the value is zero, the login will no be retried.
3128 .I max_dirt_limit
3129 Specifies how many screen updates can be skipped at most in the internal
3130 file viewer.  Normally this value is not significant, because the code
3131 automatically adjusts the number of updates to skip according to the
3132 rate of incoming keystrokes.  However, on very slow machines or
3133 terminals with a fast keyboard auto repeat, a big value can make screen
3134 updates too jumpy.
3136 It seems that setting max_dirt_limit to 10 causes the best behavior,
3137 and that is the default value.
3139 .I mouse_move_pages
3140 Controls whenever scrolling with the mouse is done by pages or line by
3141 line on the panels.
3143 .I mouse_move_pages_viewer
3144 Controls if scrolling with the mouse is done by pages or line by line
3145 on the internal file viewer.
3147 .I old_esc_mode
3148 By default the Midnight Commander treats the ESC key as a key prefix
3149 (old_esc_mode=0).  If this option is set (old_esc_mode=1), the ESC key
3150 will act as a prefix key for one second, and if no extra keys have
3151 arrived, then the ESC key is interpreted as a cancel key (ESC ESC).
3153 .I only_leading_plus_minus
3154 Allow special treatment for '+', '-', '*' in the command line (select,
3155 unselect, reverse selection) only if the command line is empty.  You
3156 don't need to quote those characters in the middle of the command line.
3157 On the other hand, you cannot use them to change selection when the
3158 command line is not empty.
3160 .I panel_scroll_pages
3161 If set (the default), panel will scroll by half the display when the
3162 cursor reaches the end or the beginning of the panel, otherwise it
3163 will just scroll a file at a time.
3165 .I show_output_starts_shell
3166 This variable only works if you are not using the subshell support.
3167 When you use the C-o keystroke to go back to the user screen, if this
3168 one is set, you will get a fresh shell.  Otherwise, pressing any key
3169 will bring you back to the Midnight Commander.
3171 .I torben_fj_mode
3172 If this flag is set, then the home and end keys will work slightly
3173 different on the panels, instead of moving the selection to the first
3174 and last files in the panels, they will act as follows:
3176 The home key will: Go up to the middle line, if below it; else go to the
3177 top line unless it is already on the top line, in this case it will go
3178 to the first file in the panel.
3180 The end key has a similar behavior: Go down to the middle line, if over
3181 it; else go to the bottom line unless you already are at the bottom
3182 line, in such case it will move the selection to the last file name in
3183 the panel.
3185 .I use_file_to_guess_type
3186 If this variable is on (the default) it will spawn the file command to
3187 match the file types listed on the
3188 .\"LINK2"
3189 mc.ext file\&.
3190 .\"Extension File Edit"
3192 .I xterm_mode
3193 If this variable is on (default is off) when you browse the file system
3194 on a Tree panel, it will automatically reload the other panel with the
3195 contents of the selected directory.
3197 .I fish_directory_timeout
3198 This variable holds the lifetime of a directory cache entry in seconds. The
3199 default value is 900 seconds.
3200 .\"NODE "Terminal databases"
3201 .SH "Terminal databases"
3202 The Midnight Commander provides a way to fix your system terminal
3203 database without requiring root privileges.  The Midnight Commander
3204 searches in the system initialization file (the mc.lib file located in
3205 the Midnight Commander library directory) and in the ~/.mc/ini file for
3206 the section "terminal:your-terminal-name" and then for the section
3207 "terminal:general", each line of the section contains a key symbol that
3208 you want to define, followed by an equal sign and the definition for the
3209 key.  You can use the special \\e form to represent the escape character
3210 and the ^x to represent the control-x character.
3212 The possible key symbols are:
3215 f0 to f20     Function keys f0-f20
3216 bs            backspace
3217 home          home key
3218 end           end key
3219 up            up arrow key
3220 down          down arrow key
3221 left          left arrow key
3222 right         right arrow key
3223 pgdn          page down key
3224 pgup          page up key
3225 insert        the insert character
3226 delete        the delete character
3227 complete      to do completion
3230 For example, to define the key insert to be the Escape + [ + O + p, you
3231 set this in the ini file:
3234 insert=\\e[Op
3238 .I complete
3239 key symbol represents the escape sequences used to invoke the completion
3240 process, this is invoked with Alt-tab, but you can define other keys to do
3241 the same work (on those keyboard with tons of nice and unused keys
3242 everywhere).
3243 .SH ""
3244 .\"NODE "FILES"
3245 .SH "FILES"
3246 Full paths below may vary between installations.  They are also affected
3247 by the MC_DATADIR environment variable.  If it's set, its value is used
3248 instead of @prefix@/share/mc in the paths below.
3250 .I @prefix@/share/mc/mc.hlp
3252 The help file for the program.
3254 .I @prefix@/share/mc/mc.ext
3256 The default system-wide extensions file.
3258 .I ~/.mc/bindings
3260 User's own extension, view configuration and edit configuration
3261 file.  They override the contents of the system wide files if present.
3263 .I @prefix@/share/mc/mc.ini
3265 The default system-wide setup for the Midnight Commander, used only if
3266 the user doesn't have his own ~/.mc/ini file.
3268 .I @prefix@/share/mc/mc.lib
3270 Global settings for the Midnight Commander.  Settings in this file
3271 affect all users, whether they have ~/.mc/ini or not.  Currently, only
3272 .\"LINK2"
3273 terminal settings
3274 .\"Terminal databases"
3275 are loaded from mc.lib.
3277 .I ~/.mc/ini
3279 User's own setup. If this file is present then the setup is loaded
3280 from here instead of the system-wide startup file.
3282 .I @prefix@/share/mc/mc.hint
3284 This file contains the hints displayed by the program.
3286 .I @prefix@/share/mc/mc.menu
3288 This file contains the default system-wide applications menu.
3290 .I ~/.mc/menu
3292 User's own application menu. If this file is present it is used instead
3293 of the system-wide applications menu.
3295 .I ~/.mc/Tree
3297 The directory list for the directory tree and tree view features.
3299 .I ./.mc.menu
3301 Local user-defined menu. If this file is present, it is used instead of
3302 the home or system-wide applications menu.
3303 .\"SKIP_SECTION"
3304 .SH "LICENSE"
3305 This program is distributed under the terms of the GNU General Public
3306 License as published by the Free Software Foundation. See the built-in
3307 help for details on the License and the lack of warranty.
3308 .\"NODE "AVAILABILITY"
3309 .SH "AVAILABILITY"
3310 The latest version of this program can be found at
3311 ftp://ftp.gnu.org/gnu/mc/.
3312 .\"NODE "SEE ALSO"
3313 .SH "SEE ALSO"
3314 ed(1), gpm(1), mcserv(8), terminfo(1), view(1), sh(1), bash(1),
3315 tcsh(1), zsh(1).
3318 The Midnight Commander page on the World Wide Web:
3319         http://www.midnight-commander.org/
3321 .\"NODE "AUTHORS"
3322 .SH "AUTHORS"
3323 Authors and contributors are listed in the AUTHORS file in the source
3324 distribution.
3325 .\"NODE "BUGS"
3326 .SH "BUGS"
3327 See the file TODO in the distribution for information on what remains to
3328 be done.
3330 If you want to report a problem with the program, please send mail to
3331 this address: mc-devel@gnome.org.
3333 Provide a detailed description of the bug, the version of the program
3334 you are running
3335 .RI ( "mc -V"
3336 displays this information), the operating system you are running the
3337 program on.  If the program crashes, we would appreciate a stack trace.