Updated italian translation
[midnight-commander.git] / doc / mc.1.in
blob09d7b16b21d0e0f86f72bd8dcf372cdf793e72f0
1 .\"TOPICS "Topics:"
2 .TH MC 1 "January 2003" "MC Version 4.6.0" "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.  With this it is possible to quickly switch from long listing
394 to regular listing and the user defined listing mode.
396 .B C-\\\\ (control-backslash)
397 show the
398 .\"LINK2"
399 directory hotlist
400 .\"Hotlist"
401 and change to the selected directory.
403 .B + \ (plus)
404 this is used to select (tag) a group of files. The Midnight Commander
405 will prompt for a regular expression describing the group. When
406 .I Shell Patterns
407 are enabled, the regular expression is much like the regular
408 expressions in the shell (* standing for zero or more characters and ?
409 standing for one character). If
410 .I Shell Patterns
411 is off, then the tagging of files is done with normal regular
412 expressions (see ed (1)).
414 If the expression starts or ends with a slash (/), then it will select
415 directories instead of files.
417 .B \\\\ (backslash)
418 use the "\\" key to unselect a group of files. This is the opposite of
419 the Plus key.
421 .B up-key, C-p
422 move the selection bar to the previous entry in the panel.
424 .B down-key, C-n
425 move the selection bar to the next entry in the panel.
427 .B home, a1, Alt-<
428 move the selection bar to the first entry in the panel.
430 .B end, c1, Alt->
431 move the selection bar to the last entry in the panel.
433 .B next-page, C-v
434 move the selection bar one page down.
436 .B prev-page, Alt-v
437 move the selection bar one page up.
439 .B Alt-o
440 If the currently selected file is a directory, load that directory on
441 the other panel and moves the selection to the next file.
443 .B Alt-i
444 make the current directory of the current panel also the current
445 directory of the other panel.  Put the other panel to the listing mode
446 if needed.  If the current panel is panelized, the other panel doesn't
447 become panelized.
449 .B C-PageUp, C-PageDown
450 only when supported by the terminal: change to ".." and to the currently
451 selected directory respectively.
453 .B Alt-y
454 moves to the previous directory in the history, equivalent to clicking
456 .I <
457 with the mouse.
459 .B Alt-u
460 moves to the next directory in the history, equivalent to clicking the
461 .I >
462 with the mouse.
464 .B Alt-Shift-h, Alt-H
465 displays the directory history, equivalent to depressing the 'v' with
466 the mouse.
467 .\"NODE "  Shell Command Line"
468 .SH "  Shell Command Line"
469 This section lists keys which are useful to avoid excessive typing when
470 entering shell commands.
472 .B Alt-Enter
473 copy the currently selected file name to the command line.
475 .B C-Enter
476 same a Alt-Enter.  May not work on remote systems and some terminals.
478 .B C-Shift-Enter
479 copy the full path name of the currently selected file to the command
480 line.  May not work on remote systems and some terminals.
482 .B Alt-Tab
483 does the filename, command, variable, username and hostname
484 .\"LINK2"
485 completion
486 .\"Completion"
487 for you.
489 .B C-x t, C-x C-t
490 copy the tagged files (or if there are no tagged files, the selected
491 file) of the current panel (C-x t) or of the other panel (C-x C-t) to
492 the command line.
494 .B C-x p, C-x C-p
495 the first key sequence copies the current path name to the command
496 line, and the second one copies the unselected panel's path name to
497 the command line.
499 .B C-q
500 the quote command can be used to insert characters that are otherwise
501 interpreted by the Midnight Commander (like the '+' symbol)
503 .B Alt-p, Alt-n
504 use these keys to browse through the command history. Alt-p takes you
505 to the last entry, Alt-n takes you to the next one.
507 .B Alt-h
508 displays the history for the current input line.
509 .\"NODE "  General Movement Keys"
510 .SH "  General Movement Keys"
511 The help viewer, the file viewer and the directory tree use common
512 code to handle moving. Therefore they accept exactly the same
513 keys. Each of them also accepts some keys of its own.
515 Other parts of the Midnight Commander use some of the same movement
516 keys, so this section may be of use for those parts too.
518 .B Up, C-p
519 moves one line backward.
521 .B Down, C-n
522 moves one line forward.
524 .B Prev Page, Page Up, Alt-v
525 moves one page up.
527 .B Next Page, Page Down, C-v
528 moves one page down.
530 .B Home, A1
531 moves to the beginning.
533 .B End, C1
534 move to the end.
536 The help viewer and the file viewer accept the following keys in
537 addition the to ones mentioned above:
539 .B b, C-b, C-h, Backspace, Delete
540 moves one page up.
542 .B Space bar
543 moves one page down.
545 .B u, d
546 moves one half of a page up or down.
548 .B g, G
549 moves to the beginning or to the end.
550 .\"NODE "  Input Line Keys"
551 .SH "  Input Line Keys"
552 The input lines (they are used for the
553 .\"LINK2"
554 command line
555 .\"Shell Command Line"
556 and for the query dialogs in the program) accept these keys:
558 .B C-a
559 puts the cursor at the beginning of line.
561 .B C-e
562 puts the cursor at the end of the line.
564 .B C-b, move-left
565 move the cursor one position left.
567 .B C-f, move-right
568 move the cursor one position right.
570 .B Alt-f
571 moves one word forward.
573 .B Alt-b
574 moves one word backward.
576 .B C-h, backspace
577 delete the previous character.
579 .B C-d, Delete
580 delete the character in the point (over the cursor).
582 .B C-@
583 sets the mark for cutting.
585 .B C-w
586 copies the text between the cursor and the mark to a kill buffer and
587 removes the text from the input line.
589 .B Alt-w
590 copies the text between the cursor and the mark to a kill buffer.
592 .B C-y
593 yanks back the contents of the kill buffer.
595 .B C-k
596 kills the text from the cursor to the end of the line.
598 .B Alt-p, Alt-n
599 Use these keys to browse through the command history. Alt-p takes you
600 to the last entry, Alt-n takes you to the next one.
602 .B Alt-C-h, Alt-Backspace
603 delete one word backward.
605 .B Alt-Tab
606 does the filename, command, variable, username and hostname
607 .\"LINK2"
608 completion
609 .\"Completion"
610 for you.
611 .SH ""
612 .\"NODE "Menu Bar"
613 .SH "Menu Bar"
614 The menu bar pops up when you press F9 or click the mouse on the top
615 row of the screen. The menu bar has five menus: "Left", "File",
616 "Command", "Options" and "Right".
619 .\"LINK2"
620 Left and Right Menus
621 .\"Left and Right Menus"
622 allow you to modify the appearance of the left and right directory
623 panels.
626 .\"LINK2"
627 File Menu
628 .\"File Menu"
629 lists the actions you can perform on the currently selected file or
630 the tagged files.
633 .\"LINK2"
634 Command Menu
635 .\"Command Menu"
636 lists the actions which are more general and bear no relation to the
637 currently selected file or the tagged files.
640 .\"LINK2"
641 Options Menu
642 .\"Options Menu"
643 lists the actions which allow you to customize the Midnight Commander.
644 .\"NODE "  Left and Right Menus"
645 .SH "  Left and Right (Above and Below) Menus"
646 The outlook of the directory panels can be changed from the
647 .B Left
649 .B Right
650 menus (they are named
651 .B Above
653 .B Below
654 when the horizontal panel split is chosen from the
655 .\"LINK2"
656 Layout
657 .\"Layout"
658 options dialog).
659 .\"NODE "    Listing Mode..."
660 .SH "    Listing Mode..."
661 The listing mode view is used to display a listing of files, there are
662 four different listing modes available:
663 .BR Full ,
664 .BR Brief ,
665 .B Long
667 .BR User .
668 The full directory view shows the file name, the size of the file and
669 the modification time.
671 The brief view shows only the file name and it has two columns
672 (therefore showing twice as many files as other views). The long view
673 is similar to the output of
674 .B "ls -l"
675 command. The long view takes the whole screen width.
677 If you choose the "User" display format, then you have to specify
678 the display format.
680 The user display format must start with a panel size specifier.  This
681 may be "half" or "full", and they specify a half screen panel and a
682 full screen panel respectively.
684 After the panel size, you may specify the two columns mode on the
685 panel, this is done by adding the number "2" to the user format
686 string.
688 After this you add the name of the fields with an optional size
689 specifier.  This are the available fields you may display:
691 .B name
692 displays the file name.
694 .B size
695 displays the file size.
697 .B bsize
698 is an alternative form of the
699 .B size
700 format. It displays the size of the files and for directories it just
701 shows SUB-DIR or UP--DIR.
703 .B type
704 displays a one character wide type field.  This character is similar to
705 what is displayed by ls with the -F flag -
706 .B *
707 for executable files,
708 .B /
709 for directories,
710 .B @
711 for links,
712 .B =
713 for sockets,
714 .B -
715 for character devices,
716 .B +
717 for block devices,
718 .B |
719 for pipes,
720 .B ~
721 for symbolic links to directories and
722 .B !
723 for stale symlinks (links that point nowhere).
725 .B mark
726 an asterisk if the file is tagged, a space if it's not.
728 .B mtime
729 file's last modification time.
731 .B atime
732 file's last access time.
734 .B ctime
735 file's creation time.
737 .B perm
738 a string representing the current permission bits of the file.
740 .B mode
741 an octal value with the current permission bits of the file.
743 .B nlink
744 the number of links to the file.
746 .B ngid
747 the GID (numeric).
749 .B nuid
750 the UID (numeric).
752 .B owner
753 the owner of the file.
755 .B group
756 the group of the file.
758 .B inode
759 the inode of the file.
761 Also you can use following keywords to define the panel layout:
763 .B space
764 a space in the display format.
766 .B |
767 add a vertical line to the display format.
769 To force one field to a fixed size (a size specifier), you just add
770 .B :
771 followed by the number of characters you want the field to have.  If the
772 number is followed by the symbol
773 .BR + ,
774 then the size specifies the minimal field size - if the program finds
775 out that there is more space on the screen, it will then expand that
776 field.
778 For example, the
779 .B Full
780 display corresponds to this format:
782 half type name | size | mtime
784 And the
785 .B Long
786 display corresponds to this format:
788 full perm space nlink space owner space group space size space mtime
789 space name
791 This is a nice user display format:
793 half name | size:7 | type mode:3
795 Panels may also be set to the following modes:
797 .B "Info"
798 The info view display information related to the currently
799 selected file and if possible information about the current file
800 system.
802 .B "Tree"
803 The tree view is quite similar to the
804 .\"LINK2"
805 directory tree
806 .\"Directory Tree"
807 feature. See the section about it for more information.
809 .B "Quick View"
810 In this mode, the panel will switch to a reduced
811 .\"LINK2"
812 viewer
813 .\"Internal File Viewer"
814 that displays the contents of the currently selected file, if you
815 select the panel (with the tab key or the mouse), you will have access
816 to the usual viewer commands.
817 .\"NODE "    Sort Order..."
818 .SH "    Sort Order..."
819 The eight sort orders are by name, by extension, by modification time,
820 by access time, and by inode information modification time, by size,
821 by inode and unsorted.  In the Sort order dialog box you can choose
822 the sort order and you may also specify if you want to sort in reverse
823 order by checking the reverse box.
825 By default directories are sorted before files but this can be changed
826 from the
827 .\"LINK2"
828 Options menu
829 .\"Options Menu"
830 (option
831 .BR "Mix all files" ).
832 .\"NODE "    Filter..."
833 .SH "    Filter..."
834 The filter command allows you to specify a shell pattern (for example
835 .BR "*.tar.gz" )
836 which the files must match to be shown. Regardless
837 of the filter pattern, the directories and the links to directories
838 are always shown in the directory panel.
839 .\"NODE "    Reread"
840 .SH "    Reread"
841 The reread command reload the list of files in the directory. It is
842 useful if other processes have created or removed files.  If you
843 have panelized file names in a panel this will reload the directory
844 contents and remove the panelized information (See the section
845 .\"LINK2"
846 External panelize
847 .\"External panelize"
848 for more information).
849 .\"NODE "  File Menu"
850 .SH "  File Menu"
851 The Midnight Commander uses the F1 - F10 keys as keyboard shortcuts
852 for commands appearing in the file menu.  The escape sequences for the
853 function keys are terminfo capabilities kf1 trough kf10.  On terminals
854 without function key support, you can achieve the same functionality by
855 pressing the ESC key and then a number in the range 1 through 9 and 0
856 (corresponding to F1 to F9 and F10 respectively).
858 The File menu has the following commands (keyboard shortcuts in parentheses):
860 .B Help (F1)
862 Invokes the built-in hypertext help viewer. Inside the
863 .\"LINK2"
864 help viewer\&,
865 .\"Contents"
866 you can use the Tab key to select the next link and the Enter key to
867 follow that link. The keys Space and Backspace are used to move
868 forward and backward in a help page. Press F1 again to get the full
869 list of accepted keys.
871 .B Menu (F2)
873 Invoke the
874 .\"LINK2"
875 user menu\&.
876 .\"Menu File Edit"
877 The user menu provides an easy way to provide users with a menu and
878 add extra features to the Midnight Commander.
880 .B View (F3, Shift-F3)
882 View the currently selected file. By default this invokes the
883 .\"LINK2"
884 Internal File Viewer
885 .\"Internal File Viewer"
886 but if the option "Use internal view" is off, it invokes an external
887 file viewer specified by the
888 .B PAGER
889 environment variable.  If
890 .B PAGER
891 is undefined, the "view" command is invoked.  If you use Shift-F3
892 instead, the viewer will be invoked without doing any formatting or
893 preprocessing to the file.
895 .B Filtered View (Alt-!)
897 This command prompts for a command
898 and its arguments (the argument defaults to the currently selected
899 file name), the output from such command is shown in the internal file
900 viewer.
902 .B Edit (F4)
904 Currently it invokes the
905 .B vi
906 editor, or the editor specified in the
907 .B EDITOR
908 environment variable, or the
909 .\"LINK2"
910 Internal File Editor
911 .\"Internal File Editor"
912 if the use_internal_edit option is on.
914 .B Copy (F5)
916 Pop up an input dialog with destination that defaults to the directory
917 in the non-selected panel and copies the currently selected file (or
918 the tagged files, if there is at least one file tagged) to the
919 directory specified by the user in the input dialog. During this
920 process, you can press C-c or ESC to abort the operation. For details
921 about source mask (which will be usually either * or ^\\(.*\\)$ depending
922 on setting of Use shell patterns) and possible wildcards in the destination
924 .\"LINK2"
925 Mask copy/rename\&.
926 .\"Mask Copy/Rename"
928 On some systems, it is possible to do the copy in the background by
929 clicking on the background button (or pressing Alt-b in the dialog
930 box).  The
931 .\"LINK2"
932 Background Jobs
933 .\"Background jobs"
934 is used to control the background process.
936 .B Link (C-x l)
938 Create a hard link to the current file.
940 .B SymLink (C-x s)
942 Create a symbolic link to the current file. To those of you who don't
943 know what links are: creating a link to a file is a bit like copying
944 the file, but both the source filename and the destination filename
945 represent the same file image. For example, if you edit one of these
946 files, all changes you make will appear in both files. Some people call
947 links aliases or shortcuts.
949 A hard link appears as a real file. After making it, there is no way of
950 telling which one is the original and which is the link. If you delete
951 either one of them the other one is still intact. It is very difficult
952 to notice that the files represent the same image. Use hard links when
953 you don't even want to know.
955 A symbolic link is a reference to the name of the original file. If
956 the original file is deleted the symbolic link is useless. It is quite
957 easy to notice that the files represent the same image. The Midnight
958 Commander shows an "@"-sign in front of the file name if it is a
959 symbolic link to somewhere (except to directory, where it shows a tilde (~)).
960 The original file which the link points to is shown on mini-status line if the
961 .I "Show mini-status"
962 option is enabled. Use symbolic links when you want to avoid the
963 confusion that can be caused by hard links.
965 .B Rename/Move (F6)
967 Pop up an input dialog that defaults to the directory in the
968 non-selected panel and moves the currently selected file (or the
969 tagged files if there is at least one tagged file) to the directory
970 specified by the user in the input dialog. During the process, you
971 can press C-c or ESC to abort the operation. For more details look at Copy
972 operation above, most of the things are quite similar.
974 On some systems, it is possible to do the copy in the background by
975 clicking on the background button (or pressing Alt-b in the dialog
976 box).  The
977 .\"LINK2"
978 Background Jobs
979 .\"Background jobs"
980 is used to control the background process.
982 .B Mkdir (F7)
984 Pop up an input dialog and creates the directory specified.
986 .B Delete (F8)
988 Delete the currently selected file or the tagged files in the
989 currently selected panel. During the process, you can press C-c or
990 ESC to abort the operation.
992 .B Quick cd (Alt-c)
993 Use the
994 .\"LINK2"
995 quick cd
996 .\"Quick cd"
997 command if you have full command line and want to cd somewhere.
999 .B Select group (+)
1001 This is used to select (tag) a group of files. The Midnight Commander
1002 will prompt for a regular expression describing the group. When
1003 .I Shell Patterns
1004 are enabled, the regular expression is much like the filename globbing
1005 in the shell (* standing for zero or more characters and ?  standing
1006 for one character). If
1007 .I Shell Patterns
1008 is off, then the tagging of files is done with normal regular
1009 expressions (see ed (1)).
1011 To mark directories instead of files, the expression must start or end
1012 with a '/'.
1014 .B Unselect group (\\\\)
1016 Used to unselect a group of files. This is the opposite of the
1017 .I "Select group"
1018 command.
1020 .B Quit (F10, Shift-F10)
1022 Terminate the Midnight Commander.  Shift-F10 is used when you want to
1023 quit and you are using the shell wrapper.  Shift-F10 will not take you
1024 to the last directory you visited with the Midnight Commander, instead
1025 it will stay at the directory where you started the Midnight Commander.
1026 .\"NODE "    Quick cd"
1027 .SH "    Quick cd"
1028 This command is useful if you have a full command line and want to
1029 .\"LINK2"
1031 .\"The cd internal command"
1032 somewhere without having to yank and paste the command line. This command
1033 pops up a small dialog, where you enter everything you would enter after
1034 .B cd
1035 on the command line and then you press enter. This features all the things
1036 that are already in the
1037 .\"LINK2"
1038 internal cd command\&.
1039 .\"The cd internal command"
1040 .\"NODE "  Command Menu"
1041 .SH "  Command Menu"
1043 .\"LINK2"
1044 Directory tree
1045 .\"Directory Tree"
1046 command shows a tree figure of the directories.
1049 .\"LINK2"
1050 Find file
1051 .\"Find File"
1052 command allows you to search for a specific file. The "Swap panels"
1053 command swaps the contents of the two directory panels.
1055 The "Panels on/off" command shows the output of the last shell command.
1056 This works only on xterm and on Linux and FreeBSD console.
1058 The Compare directories (C-x d) command compares the directory
1059 panels with each other. You can then use the Copy (F5) command to make
1060 the panels identical. There are three compare methods. The quick method
1061 compares only file size and file date. The thorough method makes a
1062 full byte-by-byte compare. The thorough method is not available if the
1063 machine does not support the mmap(2) system call.  The size-only
1064 compare method just compares the file sizes and does not check the
1065 contents or the date times, it just checks the file size.
1067 The Command history command shows a list of typed commands. The
1068 selected command is copied to the command line. The command history
1069 can also be accessed by typing Alt-p or Alt-n.
1072 .\"LINK2"
1073 Directory hotlist (C-\\)
1074 .\"Hotlist"
1075 command makes changing of the current directory to often used directories
1076 faster.
1079 .\"LINK2"
1080 External panelize
1081 .\"External panelize"
1082 allows you to execute an external program, and make the output of that
1083 program the contents of the current panel.
1085 .\"LINK2"
1086 Extension file edit
1087 .\"Extension File Edit"
1088 command allows you to specify programs to executed when you try to
1089 execute, view, edit and do a bunch of other thing on files
1090 with certain extensions (filename endings). The
1091 .\"LINK2"
1092 Menu file edit
1093 .\"Menu File Edit"
1094 command may be used for editing the user menu (which appears by
1095 pressing F2).
1096 .\"NODE "    Directory Tree"
1097 .SH "    Directory Tree"
1098 The Directory Tree command shows a tree figure of the directories. You
1099 can select a directory from the figure and the Midnight Commander will
1100 change to that directory.
1102 There are two ways to invoke the tree. The real directory tree command
1103 is available from Commands menu. The other way is to select tree view
1104 from the Left or Right menu.
1106 To get rid of long delays the Midnight Commander creates the tree
1107 figure by scanning only a small subset of all the directories. If the
1108 directory which you want to see is missing, move to its parent
1109 directory and press C-r (or F2).
1111 You can use the following keys:
1113 .\"LINK2"
1114 General movement keys
1115 .\"General Movement Keys"
1116 are accepted.
1118 .B Enter.
1119 In the directory tree, exits the directory tree and changes to this
1120 directory in the current panel. In the tree view, changes to this
1121 directory in the other panel and stays in tree view mode in the
1122 current panel.
1124 .B C-r, F2 (Rescan).
1125 Rescan this directory. Use this when the tree figure is out of date:
1126 it is missing subdirectories or shows some subdirectories which don't
1127 exist any more.
1129 .B F3 (Forget).
1130 Delete this directory from the tree figure. Use this to remove clutter
1131 from the figure. If you want the directory back to the tree figure
1132 press F2 in its parent directory.
1134 .B F4 (Static/Dynamic).
1135 Toggle between the dynamic navigation mode (default) and the static
1136 navigation mode.
1138 In the static navigation mode you can use the Up and Down keys to
1139 select a directory. All known directories are shown.
1141 In the dynamic navigation mode you can use the Up and Down keys to
1142 select a sibling directory, the Left key to move to the parent
1143 directory, and the Right key to move to a child directory. Only the
1144 parent, sibling and children directories are shown, others are left
1145 out. The tree figure changes dynamically as you traverse.
1147 .B F5 (Copy).
1148 Copy the directory.
1150 .B F6 (RenMov).
1151 Move the directory.
1153 .B F7 (Mkdir).
1154 Make a new directory below this directory.
1156 .B F8 (Delete).
1157 Delete this directory from the file system.
1159 .B C-s, Alt-s.
1160 Search the next directory matching the search string. If there is
1161 no such directory these keys will move one line down.
1163 .B C-h, Backspace.
1164 Delete the last character of the search string.
1166 .B Any other character.
1167 Add the character to the search string and move to the next directory
1168 which starts with these characters. In the tree view you must first
1169 activate the search mode by pressing C-s. The search string is shown
1170 in the mini status line.
1172 The following actions are available only in the directory tree. They
1173 aren't supported in the tree view.
1175 .B F1 (Help).
1176 Invoke the help viewer and show this section.
1178 .B Esc, F10.
1179 Exit the directory tree. Do not change the directory.
1181 The mouse is supported. A double-click behaves like Enter. See
1182 also the section on
1183 .\"LINK2"
1184 mouse support\&.
1185 .\"Mouse Support"
1186 .\"NODE "    Find File"
1187 .SH "    Find File"
1188 The Find File feature first asks for the start directory for the
1189 search and the filename to be searched for. By pressing the Tree
1190 button you can select the start directory from the
1191 .\"LINK2"
1192 directory tree
1193 .\"Directory Tree"
1194 figure.
1196 The contents field accepts regular expressions similar to egrep(1). That
1197 means you have to escape characters with a special meaning to egrep with "\\",
1198 e.g. if you search for "strcmp (" you will have to input "strcmp \\("
1199 (without the double quotes).
1201 You can start the search by pressing the OK button.
1202 During the search you can stop from the Stop button and continue from
1203 the Start button.
1205 You can browse the filelist with the up and down arrow keys. The Chdir
1206 button will change to the directory of the currently selected
1207 file. The Again button will ask for the parameters for a new
1208 search. The Quit button quits the search operation. The Panelize
1209 button will place the found files to the current directory panel so
1210 that you can do additional operations on them (view, copy, move,
1211 delete and so on). After panelizing you can press C-r to return to the
1212 normal file listing.
1214 It is possible to have a list of directories that the Find File command
1215 should skip during the search (for example, you may want to avoid
1216 searches on a CD-ROM or on a NFS directory that is mounted across a slow
1217 link).
1219 Directories to be skipped should be set on the variable
1220 .B find_ignore_dirs
1221 in the
1222 .B Misc
1223 section of your ~/.mc/ini file.
1225 Directory components should be separated with a colon, here is an
1226 example:
1229 [Misc]
1230 find_ignore_dirs=/cdrom:/nfs/wuarchive:/afs
1233 You may consider using the
1234 .\"LINK2"
1235 External panelize
1236 .\"External panelize"
1237 command for some operations. Find file command is for simple queries
1238 only, while using External panelize you can do as mysterious searches
1239 as you would like.
1240 .\"NODE "    External panelize"
1241 .SH "    External panelize"
1242 The External panelize allows you to execute an external program, and
1243 make the output of that program the contents of the current panel.
1245 For example, if you want to manipulate in one of the panels all the
1246 symbolic links in the current directory, you can use external
1247 panelization to run the following command:
1250 find . -type l -print
1253 Upon command completion, the directory contents of the panel will no
1254 longer be the directory listing of the current directory, but all the
1255 files that are symbolic links.
1257 If you want to panelize all of the files that have been downloaded
1258 from your FTP server, you can use this awk command to extract the file
1259 name from the transfer log files:
1262 awk '$9 ~! /incoming/ { print $9 }' < /usr/adm/xferlog
1265 You may want to save often used panelize commands under a descriptive name,
1266 so that you can recall them quickly. You do this by typing the command on
1267 the input line and pressing Add new button. Then you enter a name under
1268 which you want the command to be saved. Next time, you just choose that
1269 command from the list and do not have to type it again.
1270 .\"NODE "    Hotlist"
1271 .SH "    Hotlist"
1272 The Directory hotlist command shows the labels of the directories
1273 in the directory hotlist.  The Midnight Commander will change to the
1274 directory corresponding to the selected label.  From the hotlist dialog,
1275 you can remove already created label/directory pairs and add new ones.
1276 To add new directories quickly, you can use the Add to hotlist command
1277 (C-x h), which adds the current directory into the directory hotlist,
1278 asking just for the label for the directory.
1280 This makes cd to often used directories faster. You may consider using the
1281 CDPATH variable as described in
1282 .\"LINK2"
1283 internal cd command
1284 .\"The cd internal command"
1285 description.
1286 .\"NODE "    Extension File Edit"
1287 .SH "    Extension File Edit"
1288 This will invoke your editor on the file
1289 .IR ~/.mc/bindings .
1290 The format of this file following:
1292 All lines starting with # or empty lines are thrown away.
1294 Lines starting in the first column should have following format:
1296 .IR keyword/expr ,
1297 i.e. everything after the slash until new line is
1298 .IR expr .
1300 .I keyword
1301 can be:
1303 .I shell
1305 .I expr
1306 is an extension (no wildcards).  File matches it its name ends
1307 with
1308 .IR expr .
1309 Example:
1310 .I shell/.tar
1311 matches
1312 .IR *.tar .
1314 .I regex
1316 .I expr
1317 is a regular expression.  File matches if its name matches the regular
1318 expression.
1320 .I directory
1322 .I expr
1323 is a regular expression.  File matches if it is a directory and its name
1324 matches the regular expression.
1326 .I type
1328 .I expr
1329 is a regular expression.  File matches if the output of
1330 .I file %f
1331 without the initial "filename:" part matches regular expression
1332 .IR expr .
1334 .I default
1335 \- matches any file.
1336 .I expr
1337 is ignored.
1339 .I include
1340 \- denotes a common section.
1341 .I expr
1342 is the name of the section.
1344 Other lines should start with a space or tab and should be of the format:
1345 .I keyword=command
1346 (with no spaces around =), where
1347 .I keyword
1348 should be:
1349 .I Open
1350 (invoked on Enter or double click),
1351 .I View
1352 (F3),
1353 .I Edit
1354 (F4) or
1355 .I Include
1356 (to add rules from the common section).
1357 .I command
1358 is any one-line shell command, with the simple
1359 .\"LINK2"
1360 macro substitution\&.
1361 .\"Macro Substitution"
1363 Rules are matched from top to bottom, thus the order is important.  If
1364 the appropriate action is missing, search continues as if this rule
1365 didn't match (i.e. if a file matches the first and second entry and View
1366 action is missing in the first one, then on pressing F3 the View action
1367 from the second entry will be used).
1368 .I default
1369 should match all the actions.
1370 .\"NODE "    Background jobs"
1371 .SH "    Background Jobs"
1372 This lets you control the state of any background Midnight Commander
1373 process (only copy and move files operations can be done in the
1374 background).  You can stop, restart and kill a background job from
1375 here.
1376 .\"NODE "    Menu File Edit"
1377 .SH "    Menu File Edit"
1378 The user menu is a menu of useful actions that can be customized by
1379 the user. When you access the user menu, the
1380 file .mc.menu from the current directory is used if it exists,
1381 but only if it is owned by user or root and is not world-writable.
1382 If no such file found, ~/.mc/menu is tried in the same way,
1383 and otherwise mc uses the default system-wide menu
1384 @prefix@/share/mc/mc.menu.
1386 The format of the menu file is very simple. Lines that start with
1387 anything but space or tab are considered entries for the menu (in
1388 order to be able to use it like a hot key, the first character should
1389 be a letter). All the lines that start with a space or a tab are the
1390 commands that will be executed when the entry is selected.
1392 When an option is selected all the command lines of the option are
1393 copied to a temporary file in the temporary directory (usually
1394 /usr/tmp) and then that file is executed. This allows the user to put
1395 normal shell constructs in the menus. Also simple macro substitution
1396 takes place before executing the menu code. For more information, see
1397 .\"LINK2"
1398 macro substitution\&.
1399 .\"Macro Substitution"
1401 Here is a sample mc.menu file:
1404 A       Dump the currently selected file
1405         od -c %f
1407 B       Edit a bug report and send it to root
1408         I=`mktemp ${MC_TMPDIR:-/tmp}/mail.XXXXXX` || exit 1
1409         vi $I
1410         mail -s "Midnight Commander bug" root < $I
1411         rm -f $I
1413 M       Read mail
1414         emacs -f rmail
1416 N       Read Usenet news
1417         emacs -f gnus
1419 H       Call the info hypertext browser
1420         info
1422 J       Copy current directory to other panel recursively
1423         tar cf - . | (cd %D && tar xvpf -)
1425 K       Make a release of the current subdirectory
1426         echo -n "Name of distribution file: "
1427         read tar
1428         ln -s %d `dirname %d`/$tar
1429         cd ..
1430         tar cvhf ${tar}.tar $tar
1432 = f *.tar.gz | f *.tgz & t n
1433 X       Extract the contents of a compressed tar file
1434         tar xzvf %f
1437 .B Default Conditions
1439 Each menu entry may be preceded by a condition. The condition must
1440 start from the first column with a '=' character. If the condition is
1441 true, the menu entry will be the default entry.
1444 Condition syntax:       = <sub-cond>
1445   or:                   = <sub-cond> | <sub-cond> ...
1446   or:                   = <sub-cond> & <sub-cond> ...
1448 Sub-condition is one of following:
1450   y <pattern>           syntax of current file matching pattern?
1451                         (for edit menu only)
1452   f <pattern>           current file matching pattern?
1453   F <pattern>           other file matching pattern?
1454   d <pattern>           current directory matching pattern?
1455   D <pattern>           other directory matching pattern?
1456   t <type>              current file of type?
1457   T <type>              other file of type?
1458   x <filename>          is it executable filename?
1459   ! <sub-cond>          negate the result of sub-condition
1462 Pattern is a normal shell pattern or a regular expression, according
1463 to the shell patterns option. You can override the global value of
1464 the shell patterns option by writing "shell_patterns=x" on the first
1465 line of the menu file (where "x" is either 0 or 1).
1467 Type is one or more of the following characters:
1470   n     not a directory
1471   r     regular file
1472   d     directory
1473   l     link
1474   c     character device
1475   b     block device
1476   f     FIFO (pipe)
1477   s     socket
1478   x     executable file
1479   t     tagged
1482 For example 'rlf' means either regular file, link or fifo. The 't'
1483 type is a little special because it acts on the panel instead of the
1484 file. The condition '=t t' is true if there are tagged files in the
1485 current panel and false if not.
1487 If the condition starts with '=?' instead of '=' a debug trace will be
1488 shown whenever the value of the condition is calculated.
1490 The conditions are calculated from left to right. This means
1492         = f *.tar.gz | f *.tgz & t n
1494 is calculated as
1496         ( (f *.tar.gz) | (f *.tgz) ) & (t n)
1499 Here is a sample of the use of conditions:
1502 = f *.tar.gz | f *.tgz & t n
1503 L       List the contents of a compressed tar-archive
1504         gzip -cd %f | tar xvf -
1507 .B Addition Conditions
1509 If the condition begins with '+' (or '+?') instead of '=' (or '=?') it
1510 is an addition condition. If the condition is true the menu entry will
1511 be included in the menu. If the condition is false the menu entry will
1512 not be included in the menu.
1514 You can combine default and addition conditions by starting condition
1515 with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you
1516 want to use two different conditions, one for adding and another for
1517 defaulting, you can precede a menu entry with two condition lines, one
1518 starting with '+' and another starting with '='.
1520 Comments are started with '#'. The additional comment lines must start
1521 with '#', space or tab.
1522 .\"NODE "  Options Menu"
1523 .SH "  Options Menu"
1524 The Midnight Commander has some options that may be toggled on and
1525 off in several dialogs which are accessible from this menu. Options
1526 are enabled if they have an asterisk or "x" in front of them.
1529 .\"LINK2"
1530 Configuration
1531 .\"Configuration"
1532 command pops up a dialog from which you can change most of settings of
1533 the Midnight Commander.
1536 .\"LINK2"
1537 Layout
1538 .\"Layout"
1539 command pops up a dialog from which you specify a bunch of options how mc
1540 looks like on the screen.
1543 .\"LINK2"
1544 Confirmation
1545 .\"Confirmation"
1546 command pops up a dialog from which you specify which actions you want to
1547 confirm.
1550 .\"LINK2"
1551 Display bits
1552 .\"Display bits"
1553 command pops up a dialog from which you may select which characters is your
1554 terminal able to display.
1557 .\"LINK2"
1558 Learn keys
1559 .\"Learn keys"
1560 command pops up a dialog from which you test some keys which are not working
1561 on some terminals and you may fix them.
1564 .\"LINK2"
1565 Virtual FS
1566 .\"Virtual FS"
1567 command pops up a dialog from which you specify some VFS related options.
1570 .\"LINK2"
1571 Save setup
1572 .\"Save Setup"
1573 command saves the current settings of the Left, Right and Options
1574 menus. A small number of other settings is saved, too.
1575 .\"NODE "    Configuration"
1576 .SH "    Configuration"
1577 The options in this dialog are divided into three groups:
1578 Panel Options, Pause after run and Other Options.
1580 .B Panel Options
1582 .I Show Backup Files.
1583 If enabled, the Midnight Commander will show files ending with a tilde.
1584 Otherwise, they won't be shown (like GNU's ls option -B).
1586 .I Show Hidden Files.
1587 If enabled, the Midnight Commander will show all files that start with
1588 a dot (like ls -a).
1590 .I Mark moves down.
1591 If enabled, the selection bar will move down when you mark a file (with
1592 either C-t or the Insert key).
1594 .I Drop down menus.
1595 When this option is enabled, the pull down menus will be activated as
1596 soon as you press the
1597 .B F9
1598 key.  Otherwise, you will only get the menu title, and you will have
1599 to activate the menu either with the arrow keys or with the hotkeys.
1600 It is recommended if you are using hotkeys.
1602 .I Mix all files.
1603 If this option is enabled, all files and directories are shown mixed
1604 together.  If the option is off, directories (and links to directories)
1605 are shown at the beginning of the listing, and other files below.
1607 .I Fast directory reload.
1608 If this option is enabled, the Midnight Commander will use a trick to
1609 determine if the directory contents have changed.  The trick is to reload
1610 the directory only if the i-node of the directory has changed; this means
1611 that reloads only happen when files are created or deleted.  If what
1612 changes is the i-node for a file in the directory (file size changes,
1613 mode or owner changes, etc) the display is not updated.  In these cases,
1614 if you have the option on, you have to rescan the directory manually
1615 (with C-r).
1617 .B Pause after run
1619 After executing your commands, the Midnight Commander can pause, so
1620 that you can examine the output of the command.  There are three
1621 possible settings for this variable:
1623 .I Never.
1624 Means that you do not want to see the output of your command.  If you
1625 are using the Linux or FreeBSD console or an xterm, you will be able to
1626 see the output of the command by typing C-o.
1628 .I On dumb terminals.
1629 You will get the pause message on terminals that are not capable of
1630 showing the output of the last command executed (any terminal that is
1631 not an xterm or the Linux console).
1633 .I Always.
1634 The program will pause after executing all of your commands.
1636 .B Other Options
1638 .I Verbose operation.
1639 This toggles whether the file Copy, Rename and Delete operations are
1640 verbose (i.e., display a dialog box for each operation). If you have a
1641 slow terminal, you may wish to disable the verbose operation. It is
1642 automatically turned off if the speed of your terminal is less than
1643 9600 bps.
1645 .I Compute totals.
1646 If this option is enabled, the Midnight
1647 Commander computes total byte sizes and total number of files
1648 prior to any Copy, Rename and Delete operations. This will
1649 provide you with a more accurate progress bar at the expense
1650 of some speed. This option has no effect, if
1651 .I Verbose operation
1652 is disabled.
1654 .I Shell Patterns.
1655 By default the Select, Unselect and Filter commands will use shell-like
1656 regular expressions. The following conversions are performed to achieve
1657 this: the '*' is replaced by '.*' (zero or more characters); the '?'
1658 is replaced by '.' (exactly one character) and '.' by the literal
1659 dot. If the option is disabled, then the regular expressions are the
1660 ones described in ed(1).
1662 .I Auto Save Setup.
1663 If this option is enabled, when you exit the Midnight Commander the
1664 configurable options of the Midnight Commander are saved in the
1665 ~/.mc/ini file.
1667 .I Auto menus.
1668 If this option is enabled, the user menu will be invoked at startup.
1669 Useful for building menus for non-unixers.
1671 .I Use internal editor.
1672 If this option is enabled, the built-in file editor is used to edit
1673 files. If the option is disabled, the editor specified in the
1674 .B EDITOR
1675 environment variable is used.
1676 If no editor is specified,
1677 .B vi
1678 is used.  See the section on the
1679 .\"LINK2"
1680 internal file editor\&.
1681 .\"Internal File Editor"
1683 .I Use internal viewer.
1684 If this option is enabled, the built-in file viewer is used to view
1685 files. If the option is disabled, the pager specified in the
1686 .B PAGER
1687 environment variable is used.
1688 If no pager is specified, the
1689 .B view
1690 command is used.  See the section on the
1691 .\"LINK2"
1692 internal file viewer\&.
1693 .\"Internal File Viewer"
1695 .I Complete: show all.
1696 By default the Midnight Commander pops up all possible
1697 .\"LINK2"
1698 completions
1699 .\"Completion"
1700 if the completion is ambiguous only when you press
1701 .B Alt-Tab
1702 for the second time.  For the first time, it just completes as much as
1703 possible and beeps in the case of ambiguity.  Enable this option if you
1704 want to see all possible completions even after pressing
1705 .B Alt-Tab
1706 the first time.
1708 .I Rotating dash.
1709 If this option is enabled, the
1710 Midnight Commander shows a rotating dash in the upper right corner
1711 as a work in progress indicator.
1713 .I Lynx-like motion.
1714 If this option is enabled,
1715 you may use the arrows keys to automatically chdir if the
1716 current selection is a subdirectory and the shell command
1717 line is empty. By default, this setting is off.
1719 .I Cd follows links.
1720 This option, if set, causes the Midnight Commander to follow the
1721 logical chain of directories when changing current directory
1722 either in the panels, or using the cd command. This is the default
1723 behavior of bash. When unset, the Midnight Commander follows the
1724 real directory structure, so cd .. if you've entered that directory
1725 through a link will move you to the current directory's real parent
1726 and not to the directory where the link was present.
1728 .I Safe delete.
1729 If this option is enabled, deleting files unintentionally becomes more
1730 difficult.  The default selection in the confirmation dialogs for
1731 deletion changes from "Yes" to "No".  This option is disabled by
1732 default.
1733 .\"NODE "    Layout"
1734 .SH "    Layout"
1735 The layout dialog gives you a possibility to change the general layout
1736 of screen. You can specify whether the menubar, the command prompt, the
1737 hintbar and the function keybar are visible. On the Linux or FreeBSD
1738 console you can specify how many lines are shown in the output window.
1740 The rest of the screen area is used for the two directory panels. You
1741 can specify whether the area is split to the panels in vertical or
1742 horizontal direction. The split can be equal or you can specify an
1743 unequal split.
1745 You can specify whether
1746 .I permissions
1748 .I file types
1749 should be highlighted with distinctive
1750 .\"LINK2"
1751 Colors\&.
1752 .\"Colors"
1753 If the permission highlighting is enabled, the parts of the
1754 .I perm
1756 .I mode
1757 .\"LINK2"
1758 display fields
1759 .\"Listing Mode..."
1760 which apply to the user running Midnight Commander are highlighted with
1761 the color defined by the
1762 .I selected
1763 keyword.  If the file type highlighting is enabled, files are colored
1764 according to their file type (e.g. directory, core file, executable,
1765 and so on).
1767 If the
1768 .I Show Mini-Status
1769 option is enabled, one line of status information about the currently
1770 selected item is shown at the bottom of the panels.
1772 When run in a terminal emulator for X11, Midnight Commander sets the
1773 terminal window title to the current working directory and updates it
1774 when necessary.  If your terminal emulator is broken and you see some
1775 incorrect output on startup and directory change, turn off the
1776 .I Xterm Window Title
1777 option.
1778 .\"NODE "    Confirmation"
1779 .SH "    Confirmation"
1780 In this menu you configure the confirmation options for file deletion,
1781 overwriting, execution by pressing enter and quitting the program.
1782 .\"NODE "    Display bits"
1783 .SH "    Display bits"
1784 This is used to configure the range of visible characters on the
1785 screen.  This setting may be 7-bits if your terminal/curses supports
1786 only seven output bits, ISO-8859-1 displays all the characters in the
1787 ISO-8859-1 map and full 8 bits is for those terminals that can display
1788 full 8 bit characters.
1789 .\"NODE "    Learn keys"
1790 .SH "    Learn keys"
1791 This dialog allows you to test and redefine functional keys, cursor
1792 arrows and some other keys to make them work properly on your terminal.
1793 They often don't, since many terminal databases are incomplete or broken.
1795 You can move around with the Tab key and with the vi moving keys ('h'
1796 left, 'j' down, 'k' up and 'l' right).  Once you press any cursor movement
1797 key and it is recognized, you can use that key as well.
1799 You can test keys just by pressing each of them.  When you press a
1800 key and it is recognized properly, OK should appear next to the name
1801 of that key.  Once a key is marked OK it starts working as usually,
1802 e.g. F1 pressed the first time will just check that the F1 key works,
1803 but after that it will show help.  The same applies to the arrow keys.
1804 The Tab key should be working always.
1806 If some keys do not work properly then you won't see OK appear after
1807 pressing one of these.  Then you may want to redefine it.  Do it by pressing
1808 the button with the name of that key (either by the mouse or by Enter
1809 or Space after selecting the button with Tab or arrows).  Then a message
1810 box will appear asking you to press that key.  Do it and wait until the
1811 message box disappears.  If you want to abort, just press Escape once
1812 and wait.
1814 When you finish with all the keys, you can Save them.  The definitions
1815 for the keys you have redefined will be written into the [terminal:TERM]
1816 section of your ~/.mc/ini file (where TERM is the name of your current
1817 terminal).  The definitions of the keys that were already working properly
1818 are not saved.
1819 .\"NODE "    Virtual FS"
1820 .SH "    Virtual FS"
1821 This option gives you control over the settings of the
1822 .\"LINK2"
1823 Virtual File System\&.
1824 .\"Virtual File System"
1826 The Midnight Commander keeps in memory the information related to some
1827 of the virtual file systems to speed up the access to the files in the
1828 file system (for example, directory listings fetched from FTP servers).
1830 Also, in order to access the contents of compressed files (for example,
1831 compressed tar files) the Midnight Commander needs to create temporary
1832 uncompressed files on your disk.
1834 Since both the information in memory and the temporary files on disk
1835 take up resources, you may want to tune the parameters of the cached
1836 information to decrease your resource usage or to maximize the speed of
1837 access to frequently used file systems.
1839 Because of the format of the tar archives, the
1840 .I Tar filesystem
1841 needs to read the whole file just to load the file entries.  Since most
1842 tar files are usually kept compressed (plain tar files are species in
1843 extinction), the tar file system has to uncompress the file on the disk
1844 in a temporary location and then access the uncompressed file as a
1845 regular tar file.
1847 Now, since we all love to browse files and tar files all over the disk,
1848 it's common that you will leave a tar file and the re-enter it later.
1849 Since decompression is slow, the Midnight Commander will cache the
1850 information in memory for a limited time.  When the timeout expires, all
1851 the resources associated with the file system are released.  The default
1852 timeout is set to one minute.
1855 .\"LINK2"
1856 FTP File System
1857 .\"FTP File System"
1858 (ftpfs) allows you to browse directories on remote FTP servers.  It has
1859 several options.
1861 .I ftp anonymous password
1862 is the password used when you login as "anonymous".  Some sites require
1863 a valid e-mail address.  On the other hand, you probably don't want to
1864 give your real e-mail address to untrusted sites, especially if you are
1865 not using spam filtering.
1867 ftpfs keeps the directory listing it fetches from a FTP server in a cache. 
1868 The cache expire time is configurable with the
1869 .I ftpfs directory cache timeout
1870 option.  A low value for this option may slow down every operation on
1871 the ftpfs because every operation would require sending a request to the
1872 FTP server.
1874 You can define an FTP proxy host for doing FTP.  Note that most modern
1875 firewalls are fully transparent at least for passive FTP (see below), so
1876 FTP proxies are considered obsolete.
1879 .I Always use ftp proxy
1880 is not set, you can use the exclamation sign to enable proxy for certain
1881 hosts.  See
1882 .\"LINK2"
1883 FTP File System
1884 .\"FTP File System"
1885 for examples.
1887 If this option is set, the program will do two things: consult the
1888 @prefix@/lib/mc/mc.no_proxy file for lines containing host names that
1889 are local (if the host name starts with a dot, it is assumed to be a
1890 domain) and to assume that any hostnames without dots in their names are
1891 directly accessible.  All other hosts will be accessed through the
1892 specified FTP proxy.
1894 You can enable using
1895 .I ~/.netrc
1896 file, which keeps login names and passwords for ftp servers.  See netrc
1897 (5) for the description of the .netrc format.
1899 .I Use passive mode
1900 enables using FTP passive mode, when the connection for data transfer is
1901 initiated by the client, not by the server.  This option is recommended
1902 and enabled by default.  If this option is turned off, the data
1903 connection is initiated by the server.  This may not work with some
1904 firewalls.
1905 .\"NODE "    Save Setup"
1906 .SH "    Save Setup"
1907 At startup the Midnight Commander will try to load initialization
1908 information from the ~/.mc/ini file. If this file doesn't exist, it will
1909 load the information from the system-wide configuration file, located in
1910 @prefix@/share/mc/mc.ini. If the system-wide configuration file doesn't
1911 exist, MC uses the default settings.
1914 .I Save Setup
1915 command creates the ~/.mc/ini file by saving the current settings
1916 of the
1917 .\"LINK2"
1918 Left, Right
1919 .\"Left and Right Menus"
1921 .\"LINK2"
1922 Options
1923 .\"Options Menu"
1924 menus.
1926 If you activate the
1927 .I auto save setup
1928 option, MC will always save the current settings when exiting.
1930 There also exist settings which can't be changed from the menus. To
1931 change these settings you have to edit the setup file with your
1932 favorite editor. See the section on
1933 .\"LINK2"
1934 Special Settings
1935 .\"Special Settings"
1936 for more information.
1937 .SH ""
1938 .\"NODE "Executing operating system commands"
1939 .SH "Executing operating system commands"
1940 You may execute commands by typing them directly in the Midnight
1941 Commander's input line, or by selecting the program you want to
1942 execute with the selection bar in one of the panels and hitting Enter.
1944 If you press Enter over a file that is not executable, the Midnight
1945 Commander checks the extension of the selected file against the
1946 extensions in the
1947 .\"LINK2"
1948 Extensions File\&.
1949 .\"Extension File Edit"
1950 If a match is found then the code associated with that extension is
1951 executed. A very simple
1952 .\"LINK2"
1953 macro expansion
1954 .\"Macro Substitution"
1955 takes place before executing the command.
1956 .\"NODE "  The cd internal command"
1957 .SH "  The cd internal command"
1959 .I cd
1960 command is interpreted by the Midnight Commander, it is not passed to
1961 the command shell for execution.  Thus it may not handle all of the
1962 nice macro expansion and substitution that your shell does, although it
1963 does some of them:
1965 .I Tilde substitution.
1966 The (~) will be substituted with your home directory, if you append a
1967 username after the tilde, then it will be substituted with the login
1968 directory of the specified user.
1970 For example, ~guest is the home directory for the user guest, while
1971 ~/guest is the directory guest in your home directory.
1973 .I Previous directory.
1974 You can jump to the directory you were previously by using the special
1975 directory name '-' like this:
1976 .B cd -
1978 .I CDPATH directories.
1979 If the directory specified to the
1980 .B cd
1981 command is not in the current directory, then The Midnight Commander
1982 uses the value in the environment variable
1983 .B CDPATH
1984 to search for the directory in any of the named directories.
1986 For example you could set your
1987 .B CDPATH
1988 variable to ~/src:/usr/src, allowing you to change your directory to
1989 any of the directories inside the ~/src and /usr/src directories, from
1990 any place in the file system by using its relative name (for example
1991 cd linux could take you to /usr/src/linux).
1992 .\"NODE "  Macro Substitution"
1993 .SH "  Macro Substitution"
1994 When accessing a
1995 .\"LINK2"
1996 user menu\&,
1997 .\"Menu File Edit"
1998 or executing an
1999 .\"LINK2"
2000 extension dependent command\&,
2001 .\"Extension File Edit"
2002 or running a command from the command line input, a simple macro
2003 substitution takes place.
2005 The macros are:
2007 .I %i
2008 The indent of blank space, equal the cursor column position.  For edit
2009 menu only.
2011 .I %y
2012 The syntax type of current file. For edit menu only.
2014 .I %k
2015 The block file name.
2017 .I %e
2018 The error file name.
2020 .I %m
2021 The current menu name.
2023 .IR %f " and " %p
2024 The current file name.
2026 .I %x
2027 The extension of current file name.
2029 .I %b
2030 The current file name without extension.
2032 .I %d
2033 The current directory name.
2035 .I %F
2036 The current file in the unselected panel.
2038 .I %D
2039 The directory name of the unselected panel.
2041 .I %t
2042 The currently tagged files.
2044 .I %T
2045 The tagged files in the unselected panel.
2047 .IR %u " and " %U
2048 Similar to the %t and %T macros, but in addition the files are untagged.
2049 You can use this macro only once per menu file entry or extension file
2050 entry, because next time there will be no tagged files.
2052 .IR %s " and " %S
2053 The selected files: The tagged files if there are any. Otherwise the
2054 current file.
2056 .I %cd
2057 This is a special macro that is used to change the current directory
2058 to the directory specified in front of it.  This is used primarily as
2059 an interface to the
2060 .\"LINK2"
2061 Virtual File System\&.
2062 .\"Virtual File System"
2064 .I %view
2065 This macro is used to invoke the internal viewer.  This macro can be
2066 used alone, or with arguments.  If you pass any arguments to this
2067 macro, they should be enclosed in brackets.
2069 The arguments are:
2070 .I ascii
2071 to force the viewer into ascii mode;
2072 .I hex
2073 to force the viewer into hex mode;
2074 .I nroff
2075 to tell the viewer that it should interpret the bold and underline
2076 sequences of nroff;
2077 .I unformatted
2078 to tell the viewer to not interpret nroff commands for making the text
2079 bold or underlined.
2081 .I %%
2082 The % character
2084 .I %{some text}
2085 Prompt for the substitution. An input box is shown and the text inside
2086 the braces is used as a prompt. The macro is substituted by the text
2087 typed by the user. The user can press ESC or F10 to cancel. This macro
2088 doesn't work on the command line yet.
2090 .I %var{ENV:default}
2091 If environment variable
2092 .I ENV
2093 is unset, the
2094 .I default
2095 is substituted.  Otherwise, the value of
2096 .I ENV
2097 is substituted.
2098 .\"NODE "  The subshell support"
2099 .SH "  The subshell support"
2100 The subshell support is a compile time option, that works with the
2101 shells: bash, tcsh and zsh.
2103 When the subshell code is activated the Midnight Commander will
2104 spawn a concurrent copy of your shell (the one defined in the
2105 .B SHELL
2106 variable and if it is not defined, then the one in the /etc/passwd
2107 file) and run it in a pseudo terminal, instead of invoking a new shell
2108 each time you execute a command, the command will be passed to the
2109 subshell as if you had typed it.  This also allows you to change the
2110 environment variables, use shell functions and define aliases that are
2111 valid until you quit the Midnight Commander.
2113 If you are using
2114 .B bash
2115 you can specify startup
2116 commands for the subshell in your ~/.mc/bashrc file and
2117 special keyboard maps in the ~/.mc/inputrc file.
2118 .B tcsh
2119 users may specify startup commands in the ~/.mc/tcshrc file.
2121 When the subshell code is used, you can suspend applications at any
2122 time with the sequence C-o and jump back to the Midnight Commander, if
2123 you interrupt an application, you will not be able to run other
2124 external commands until you quit the application you interrupted.
2126 An extra added feature of using the subshell is that the prompt
2127 displayed by the Midnight Commander is the same prompt that you are
2128 currently using in your shell.
2131 .\"LINK2"
2132 OPTIONS
2133 .\"OPTIONS"
2134 section has more information on how you can control the subshell code.
2135 .\"NODE "Chmod"
2136 .SH "Chmod"
2137 The Chmod window is used to change the attribute bits in a group of
2138 files and directories.  It can be invoked with the C-x c key combination.
2140 The Chmod window has two parts -
2141 .I Permissions
2143 .IR File .
2145 In the File section are displayed the name of the file or directory
2146 and its permissions in octal form, as well as its owner and group.
2148 In the Permissions section there is a set of check buttons which
2149 correspond to the file attribute bits.  As you change the attribute
2150 bits, you can see the octal value change in the File section.
2152 To move between the widgets (buttons and check buttons) use the
2153 .I arrow keys
2154 or the
2155 .I Tab
2156 key.  To change the state of the check buttons or to select a button
2158 .I Space.
2159 You can also use the hotkeys on the buttons to quickly activate them.
2160 Hotkeys are shown as highlighted letters on the buttons.
2162 To set the attribute bits, use the Enter key.
2164 When working with a group of files or directories, you just click on
2165 the bits you want to set or clear.  Once you have selected the bits
2166 you want to change, you select one of the action buttons (Set marked
2167 or Clear marked).
2169 Finally, to set the attributes exactly to those specified, you can use
2171 .B [Set all]
2172 button, which will act on all the tagged files.
2174 .B [Marked all]
2175 set only marked attributes to all selected files
2177 .B [Set marked]
2178 set marked bits in attributes of all selected files
2180 .B [Clean marked]
2181 clear marked bits in attributes of all selected files
2183 .B [Set]
2184 set the attributes of one file
2186 .B [Cancel]
2187 cancel the Chmod command
2188 .\"NODE "Chown"
2189 .SH "Chown"
2190 The Chown command is used to change the owner/group of a file. The hot
2191 key for this command is C-x o.
2192 .\"NODE "Advanced Chown"
2193 .SH "Advanced Chown"
2194 The Advanced Chown command is the
2195 .\"LINK2"
2196 Chmod
2197 .\"Chmod"
2199 .\"LINK2"
2200 Chown
2201 .\"Chown"
2202 command combined into one window. You can change the permissions and
2203 owner/group of files at once.
2204 .\"NODE "File Operations"
2205 .SH "File Operations"
2206 When you copy, move or delete files the Midnight Commander shows the
2207 file operations dialog.  It shows the files currently being processed
2208 and uses up to three progress bars.  The file bar indicates the
2209 percentage of the current file that has been processed so far.  The
2210 count bar shows how many of the tagged files have been handled.  The
2211 bytes bar indicates the percentage of the total size of the tagged files
2212 that has been handled.  If the verbose option is off, the file and bytes
2213 bars are not shown.
2215 There are two buttons at the bottom of the dialog. Pressing the Skip
2216 button will skip the rest of the current file. Pressing the Abort
2217 button will abort the whole operation, the rest of the files are
2218 skipped.
2220 There are three other dialogs which you can run into during the file
2221 operations.
2223 The error dialog informs about error conditions and has three choices.
2224 Normally you select either the Skip button to skip the file or the Abort
2225 button to abort the operation altogether.  You can also select the Retry
2226 button if you fixed the problem from another terminal.
2228 The replace dialog is shown when you attempt to copy or move a file on
2229 the top of an existing file.  The dialog shows the dates and sizes of
2230 the both files.  Press the Yes button to overwrite the file, the No
2231 button to skip the file, the All button to overwrite all the files, the
2232 None button to never overwrite and the Update button to overwrite if the
2233 source file is newer than the target file.  You can abort the whole
2234 operation by pressing the Abort button.
2236 The recursive delete dialog is shown when you try to delete a directory
2237 which is not empty.  Press the Yes button to delete the directory
2238 recursively, the No button to skip the directory, the All button to
2239 delete all the directories and the None button to skip all the non-empty
2240 directories.  You can abort the whole operation by pressing the Abort
2241 button.  If you selected the Yes or All button you will be asked for a
2242 confirmation.  Type "yes" only if you are really sure you want to do the
2243 recursive delete.
2245 If you have tagged files and perform an operation on them only the files
2246 on which the operation succeeded are untagged. Failed and skipped files
2247 are left tagged.
2248 .\"NODE "Mask Copy/Rename"
2249 .SH "Mask Copy/Rename"
2250 The copy/move operations let you translate the names of files in an
2251 easy way.  To do it, you have to specify the correct source mask and
2252 usually in the trailing part of the destination specify some wildcards.
2253 All the files matching the source mask are copied/renamed according to
2254 the target mask.  If there are tagged files, only the tagged files
2255 matching the source mask are renamed.
2257 There are other options which you can set:
2259 .B Follow links
2261 determines whether make the symlinks and hardlinks in the source
2262 directory (recursively in subdirectories) new links in the target
2263 directory or whether would you like to copy their content.
2265 .B Dive into subdirs
2267 determines the behavior when the source directory is about to be copied,
2268 but the target directory already exists.  The default action is to copy
2269 the contents of the source directory into the target directory. 
2270 Enabling this option causes copying the source directory itself into the
2271 target directory.
2273 For example, you want to copy directory
2274 .I /foo
2275 containing file
2276 .I bar
2278 .IR /bla/foo ,
2279 which is an already existing directory.  Normally (when
2280 .B Dive into subdirs
2281 is not set), mc would copy file
2282 .I /foo/bar
2283 into the file
2284 .IR /bla/foo/bar .
2285 By enabling this option the
2286 .I /bla/foo/foo
2287 directory will be created, and
2288 .I /foo/bar
2289 will be copied into
2290 .IR /bla/foo/foo/bar .
2292 .B Preserve attributes
2294 determines whether to preserve the permissions, timestamps and (if you
2295 are root) the ownership of the original files.  If this option is not
2296 set, the current value of the umask will be respected.
2298 .B Use shell patterns on
2300 When the shell patterns option is on you can use the '*' and '?'
2301 wildcards in the source mask.  They work like they do in the shell.  In
2302 the target mask only the '*' and '\\<digit>' wildcards are allowed.  The
2303 first '*' wildcard in the target mask corresponds to the first wildcard
2304 group in the source mask, the second '*' corresponds to the second group
2305 and so on.  The '\\1' wildcard corresponds to the first wildcard group
2306 in the source mask, the '\\2' wildcard corresponds to the second group
2307 and so on all the way up to '\\9'.  The '\\0' wildcard is the whole
2308 filename of the source file.
2310 Two examples:
2312 If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the
2313 file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla".
2315 Suppose you want to swap basename and extension so that "file.c" would
2316 become "c.file" and so on.  The source mask for this is "*.*" and the
2317 destination is "\\2.\\1".
2319 .B Use shell patterns off
2321 When the shell patterns option is off the MC doesn't do automatic
2322 grouping anymore. You must use '\\(...\\)' expressions in the source
2323 mask to specify meaning for the wildcards in the target mask. This is
2324 more flexible but also requires more typing. Otherwise target masks
2325 are similar to the situation when the shell patterns option is on.
2327 Two examples:
2329 If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is
2330 "/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy
2331 will be "/bla/foo.tgz".
2333 Let's suppose you want to swap basename and extension so that "file.c"
2334 will become "c.file" and so on. The source mask for this is
2335 "^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1".
2337 .B Case Conversions
2339 You can also change the case of the filenames.  If you use '\\u'
2340 or '\\l' in the target mask, the next character will be converted to
2341 uppercase or lowercase correspondingly.
2343 If you use '\\U' or '\\L' in the target mask, the next characters will
2344 be converted to uppercase or lowercase correspondingly up to the
2345 next '\\E' or next '\\U', '\\L' or the end of the file name.
2347 The '\\u' and '\\l' are stronger than '\\U' and '\\L'.
2349 For example, if the source mask is '*' (shell patterns on) or '^\\(.*\\)$'
2350 (shell patterns off) and the target mask is '\\L\\u*' the file names
2351 will be converted to have initial upper case and otherwise lower case.
2353 You can also use '\\' as a quote character. For example, '\\\\' is
2354 a backslash and '\\*' is an asterisk.
2355 .\"NODE "Internal File Viewer"
2356 .SH "Internal File Viewer"
2357 The internal file viewer provides two display modes: ASCII and hex.
2358 To toggle between modes, use the F4 key.
2360 The viewer will try to use the best method provided by your system or
2361 the file type to display the information.
2362 Some character sequences, which appear most often in preformatted manual
2363 pages, are displayed bold and underlined, thus making a pretty display
2364 of your files.
2366 When in hex mode, the search function accepts text in quotes and
2367 constant numbers.  Text in quotes is matched exactly after removing
2368 the quotes.  Each number matches one byte.  You can mix quoted text
2369 with constants like this:
2372 "String" -1 0xBB 012 "more text"
2375 Note that 012 is an octal number.  -1 is converted to 0xFF.
2377 Here is a listing of the actions associated with each key that the
2378 Midnight Commander handles in the internal file viewer.
2380 .B F1
2381 Invoke the built-in hypertext help viewer.
2383 .B F2
2384 Toggle the wrap mode.
2386 .B F4
2387 Toggle the hex mode.
2389 .B F5
2390 Goto line.  This will prompt you for a line number and will display
2391 that line.
2393 .B F6, /.
2394 Regular expression search.
2396 .B ?,
2397 Reverse regular expression search.
2399 .B F7
2400 Normal search / hex mode search.
2402 .B C-s, F17, n.
2403 Start normal search if there was no previous search expression else
2404 find next match.
2406 .B C-r.
2407 Start reverse search if there was no previous search expression else
2408 find next match.
2410 .B F8
2411 Toggle Raw/Parsed mode: This will show the file as found on disk or if
2412 a processing filter has been specified in the mc.ext file, then the
2413 output from the filter. Current mode is always the other than written
2414 on the button label, since on the button is the mode which you enter
2415 by that key.
2417 .B F9
2418 Toggle the format/unformat mode: when format mode is on the viewer
2419 will interpret some string sequences to show bold and underline with
2420 different colors. Also, on button label is the other mode than current.
2422 .B F10, Esc.
2423 Exit the internal file viewer.
2425 .B next-page, space, C-v.
2426 Scroll one page forward.
2428 .B prev-page, Alt-v, C-b, backspace.
2429 Scroll one page backward.
2431 .B down-key
2432 Scroll one line forward.
2434 .B up-key
2435 Scroll one line backward.
2437 .B C-l
2438 Refresh the screen.
2440 .B C-o
2441 Switch to the subshell and show the command screen.
2443 .B !
2444 Like C-o, but run a new shell if the subshell is not running.
2446 .B "[n] m"
2447 Set the mark n.
2449 .B "[n] r"
2450 Jump to the mark n.
2452 .B C-f
2453 Jump to the next file.
2455 .B C-b
2456 Jump to the previous file.
2458 .B Alt-r
2459 Toggle the ruler.
2461 It's possible to instruct the file viewer how to display a file, look
2462 at the
2463 .\"LINK2"
2464 Extension File Edit section
2465 .\"Extension File Edit"
2466 .\"NODE "Internal File Editor"
2467 .SH "Internal File Editor"
2468 The internal file editor is a full-featured full screen editor.  It can
2469 edit files up to 64 megabytes.  It is possible to edit binary files. 
2470 The internal file editor is invoked using
2471 .B F4
2472 if the
2473 .I use_internal_edit
2474 option is set in the initialization file.
2476 The features it presently supports are: block copy, move, delete, cut,
2477 paste; key for key undo; pull-down menus; file insertion; macro
2478 commands; regular expression search and replace (and our own
2479 scanf-printf search and replace); shift-arrow text highlighting (if
2480 supported by the terminal); insert-overwrite toggle; word wrap;
2481 autoindent; tunable tab size; syntax highlighting for various file
2482 types; and an option to pipe text blocks through shell commands like
2483 indent and ispell.
2485 The editor is very easy to use and requires no tutoring. To see what
2486 keys do what, just consult the appropriate pull-down menu. Other keys
2487 are: Shift movement keys do text highlighting.
2488 .B Ctrl-Ins
2489 copies to the file
2490 .B cooledit.clip
2492 .B Shift-Ins
2493 pastes from cooledit.clip.
2494 .B Shift-Del
2495 cuts to
2496 .BR cooledit.clip ,
2498 .B Ctrl-Del
2499 deletes highlighted text. Mouse highlighting also works, and you
2500 can override the mouse as usual by holding down the shift key
2501 while dragging the mouse to let normal terminal mouse highlighting
2502 work.
2504 To define a macro, press
2505 .B Ctrl-R
2506 and then type out the key
2507 strokes you want to be executed. Press
2508 .B Ctrl-R
2509 again when finished. You can then assign the macro to any key you
2510 like by pressing that key. The macro is executed when you press
2511 .B Ctrl-A
2512 and then the assigned key. The macro is also executed if
2513 you press Meta, Ctrl, or Esc and the assigned key, provided that the
2514 key is not used for any other function. Once defined, the macro
2515 commands go into the file
2516 .B .mc/cedit/cooledit.macros
2517 in your home directory. You can delete a macro by deleting the
2518 appropriate line in this file.
2520 .B F19
2521 will format the currently highlighted block (plain text or
2522 .B C
2524 .B C++
2525 code or another). This is controlled by the
2526 file
2527 .B @prefix@/share/mc/edit.indent.rc
2528 which is copied to
2529 .B .mc/cedit/edit.indent.rc
2530 in your home directory the first time you use it.
2532 You can use scanf search and replace to search and replace
2533 a C format string. First take a look at the
2534 .B sscanf
2536 .B sprintf
2537 man pages to see what a format string is and how it works.  Consider
2538 following example.  Suppose you want to replace all occurrences of an
2539 open bracket, three comma separated numbers, and a close bracket, with
2540 the word
2541 .IR apples ,
2542 the third number, the word
2543 .I oranges
2544 and then the second number.  Then fill in the Replace dialog box as
2545 follows:
2548  Enter search string:
2549   (%d,%d,%d)
2550  Enter replacement string:
2551   apples %d oranges %d
2552  Enter replacement argument order:
2553   3,2
2556 The last line specifies that the third and then the second
2557 number are to be used in place of the first and second.
2559 It is advisable to use this feature with Prompt on replace on, because
2560 a match is thought to be found whenever the number of arguments found
2561 matches the number given, which is not always a real match. Scanf also
2562 treats whitespace as being elastic.  Note that the scanf format %[ is
2563 very useful for scanning strings, and whitespace.
2565 The editor also displays non-us characters (160+). When editing
2566 binary files, you should set
2567 .B display bits
2568 to 7 bits in the options menu to keep the spacing clean.
2569 .\"NODE "Completion"
2570 .SH "Completion"
2571 Let the Midnight Commander type for you.
2573 Attempt to perform completion on the text before current position.  MC
2574 attempts completion treating the text as variable (if the text begins
2575 with
2576 .BR $ ),
2577 username (if the text begins with
2578 .BR ~ ),
2579 hostname (if the text begins with
2580 .BR @ )
2581 or command (if you are on the command line in the position where you
2582 might type a command, possible completions then include shell reserved
2583 words and shell built-in commands as well) in turn.  If none of these
2584 matches, filename completion is attempted.
2586 Filename, username, variable and hostname completion works on all input
2587 lines, command completion is command line specific.  If the completion
2588 is ambiguous (there are more different possibilities), MC beeps and the
2589 following action depends on the setting of the
2590 .I Complete: show all
2591 option in the
2592 .\"LINK2"
2593 Configuration
2594 .\"Configuration"
2595 dialog.  If it is enabled, a list of all possibilities pops up next to
2596 the current position and you can select with the arrow keys and
2597 .B Enter
2598 the correct entry.  You can also type the first letters in which the
2599 possibilities differ to move to a subset of all possibilities and
2600 complete as much as possible.  If you press
2601 .B Alt-Tab
2602 again, only the subset will be shown in the listbox, otherwise the first
2603 item which matches all the previous characters will be highlighted.  As
2604 soon as there is no ambiguity, dialog disappears, but you can hide it by
2605 canceling keys
2606 .BR Esc ,
2607 .B F10
2608 and left and right arrow keys. If
2609 .\"LINK2"
2610 Complete: show all
2611 .\"Configuration"
2612 is disabled, the dialog pops up only if you press
2613 .B Alt-Tab
2614 for the second time, for the first time MC just beeps.
2615 .\"NODE "Virtual File System"
2616 .SH "Virtual File System"
2617 The Midnight Commander is provided with a code layer to access the file
2618 system; this code layer is known as the virtual file system switch.  The
2619 virtual file system switch allows the Midnight Commander to manipulate
2620 files not located on the Unix file system.
2622 Currently the Midnight Commander is packaged with some Virtual File
2623 Systems (VFS): the
2624 .I local
2625 file system, used for accessing the regular Unix file system; the
2626 .IR ftpfs ,
2627 used to manipulate files on remote systems with the FTP protocol; the
2628 .IR tarfs ,
2629 used to manipulate tar and compressed tar files; the
2630 .IR undelfs ,
2631 used to recover deleted files on ext2 file systems (the default file
2632 system for Linux systems),
2633 .I fish
2634 (for manipulating files over shell connections such as rsh and ssh) and
2635 finally the
2636 .I mcfs
2637 (Midnight Commander file system), a network based file system.  If the
2638 code was compiled with
2639 .I smbfs
2640 support, you can manipulate files on remote systems with the SMB (CIFS)
2641 protocol.
2643 A generic
2644 .I extfs
2645 (EXTernal virtual File System) is provided in order to easily expand
2646 VFS capabilities using scripts and external software.
2648 The VFS switch code will interpret all of the path names used and will
2649 forward them to the correct file system, the formats used for each one
2650 of the file systems is described later in their own section.
2651 .\"NODE "  FTP File System"
2652 .SH "  FTP File System"
2653 The FTP File System (ftpfs) allows you to manipulate files on remote
2654 machines.  To actually use it, you can use the
2655 .I FTP link
2656 item in the menu or directly change your current directory using the
2657 .I cd
2658 command to a path name that looks like this:
2660 .I /#ftp:[!][user[:pass]@]machine[:port][remote-dir]
2663 .IR user ,
2664 .I port
2666 .I remote-dir
2667 elements are optional.  If you specify the
2668 .I user
2669 element, the Midnight Commander will login to the remote machine as that
2670 user, otherwise it will use anonymous login or the login name from the
2671 .I ~/.netrc
2672 file.  The optional
2673 .I pass
2674 element is the password used for the connection.  Using the password in
2675 the VFS directory name is not recommended, because it can appear on the
2676 screen in clear text and can be saved to the directory history.
2678 To enable using FTP proxy, prepend
2679 .B !
2680 (an exclamation sign) to the hostname.
2682 Examples:
2685     /#ftp:ftp.nuclecu.unam.mx/linux/local
2686     /#ftp:tsx-11.mit.edu/pub/linux/packages
2687     /#ftp:!behind.firewall.edu/pub
2688     /#ftp:guest@remote-host.com:40/pub
2689     /#ftp:miguel:xxx@server/pub
2692 Please check the
2693 .\"LINK2"
2694 Virtual File System
2695 .\"Virtual FS"
2696 dialog box for ftpfs options.
2697 .\"NODE "  Tar File System"
2698 .SH "  Tar File System"
2699 The tar file system provides you with read-only access to your tar
2700 files and compressed tar files by using the chdir command.  To change
2701 your directory to a tar file, you change your current directory to the
2702 tar file by using the following syntax:
2704 .I /filename.tar#utar/[dir-inside-tar]
2706 The mc.ext file already provides a shortcut for tar files, this means
2707 that usually you just point to a tar file and press return to enter
2708 into the tar file, see the
2709 .\"LINK2"
2710 Extension File Edit
2711 .\"Extension File Edit"
2712 section for details on how this is done.
2714 Examples:
2717     mc-3.0.tar.gz#utar/mc-3.0/vfs
2718     /ftp/GCC/gcc-2.7.0.tar#utar
2721 The latter specifies the full path of the tar archive.
2722 .\"NODE "  FIle transfer over SHell filesystem"
2723 .SH "  FIle transfer over SHell filesystem"
2724 The fish file system is a network based file system that allows you to
2725 manipulate the files in a remote machine as if they were local. To use
2726 this, the other side has to either run fish server, or has to have
2727 bash-compatible shell.
2729 To connect to a remote machine, you just need to chdir
2730 into a special directory which name is in the following
2731 format:
2733 .I /#sh:[user@]machine[:options]/[remote-dir]
2736 .I user,
2737 .I options
2739 .I remote-dir
2740 elements are optional.  If you specify the
2741 .I user
2742 element, the Midnight Commander will try to login on the remote
2743 machine as that user, otherwise it will use your login name.
2746 .I options
2747 are 'C' - use compression and 'rsh' use rsh instead of ssh.  If the
2748 .I remote-dir
2749 element is present, your current directory on the remote machine will be
2750 set to this one.
2752 Examples:
2755     /#sh:onlyrsh.mx:r/linux/local
2756     /#sh:joe@want.compression.edu:C/private
2757     /#sh:joe@noncompressed.ssh.edu/private
2759 .\"NODE "  Network File System"
2760 .SH "  Network File System"
2761 The Midnight Commander file system is a network base file system that
2762 allows you to manipulate the files in a remote machine as if they were
2763 local.  To use this, the remote machine must be running the mcserv(8)
2764 server program.
2766 To connect to a remote machine, you just need to chdir into a special
2767 directory which name is in the following format:
2769 .I /#mc:[user@]machine[:port][remote-dir]
2772 .I user, port
2774 .I remote-dir
2775 elements are optional.  If you specify the
2776 .I user
2777 element then the Midnight Commander will try to logon on the remote
2778 machine as that user, otherwise it will use your login name.
2781 .I port
2782 element is used when the remote server is running on a special port
2783 (see the mcserv(8) manual page for more information about ports);
2784 finally, if the
2785 .I remote-dir
2786 element is present, your current directory on the remote machine will
2787 be set to this one.
2789 Examples:
2792     /#mc:ftp.nuclecu.unam.mx/linux/local
2793     /#mc:joe@foo.edu:11321/private
2795 .\"NODE "  Undelete File System"
2796 .SH "  Undelete File System"
2797 On Linux systems, if you asked configure to use the ext2fs undelete
2798 facilities, you will have the undelete file system available.
2799 Recovery of deleted files is only available on ext2 file systems.  The
2800 undelete file system is just an interface to the ext2fs library to
2801 retrieve all of the deleted files names on an ext2fs and provides and
2802 to extract the selected files into a regular partition.
2804 To use this file system, you have to chdir into the special file name
2805 formed by the "/#undel" prefix and the file name where the actual
2806 file system resides.
2808 For example, to recover deleted files on the second partition of the
2809 first SCSI disk on Linux, you would use the following path name:
2812     /#undel:sda2
2815 It may take a while for the undelfs to load the required information
2816 before you start browsing files there.
2817 .\"NODE "  SMB File System"
2818 .SH "  SMB File System"
2819 The smbfs allows you to manipulate files on remote machines with SMB
2820 (or CIFS) protocol.  These include Windows for Workgroups,
2821 Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.
2822 To actually use it, you may try to use the panel command "SMB link..."
2823 (accessible from the menubar) or you may directly change your current
2824 directory to it using the cd command to a path name that looks like this:
2826 .I /#smb:[user@]machine[/service][/remote-dir]
2829 .IR user ,
2830 .I service
2832 .I remote-dir
2833 elements are optional.
2835 .IR user ,
2836 .I domain
2838 .I password
2839 can be specified in an input dialog.
2841 Examples:
2844     /#smb:machine/Share
2845     /#smb:other_machine
2846     /#smb:guest@machine/Public/Irlex
2848 .\"NODE "  EXTernal File System"
2849 .SH "  EXTernal File System"
2850 .B extfs
2851 allows to integrate numerous features and file types into GNU Midnight
2852 Commander in an easy way, by writing scripts.
2854 Extfs filesystems can be divided into two categories:
2856 1. Stand-alone filesystems, which are not associated with any existing
2857 file.  They represent certain system-wide data as a directory tree.
2858 You can invoke them by typing
2859 .RI ' "cd #fsname" '
2860 where fsname is an extfs short name (see below).  Examples of such
2861 filesystems include audio (list audio tracks on the CD) or apt (list of
2862 all Debian packages in the system).
2864 For example, to list CD-Audio tracks on your CD-ROM drive, type
2867   cd #audio
2870 2. 'Archive' filesystems (like rpm, patchfs and more), which represent
2871 contents of a file as a directory tree.  It can consist of 'real' files
2872 compressed in an archive (urar, rpm) or virtual files, like messages
2873 in a mailbox (mailfs) or parts of a patch (patchfs).  To access such
2874 filesystems
2875 .RI ' #fsname '
2876 should be appended to the archive name.  Note that the archive itself
2877 can be on another vfs.
2879 For example, to list contents of a zip archive documents.zip type
2882   cd documents.zip#uzip
2885 In many aspects, you could treat extfs like any other directory.  For
2886 instance, you can add it to the hotlist or change to it from directory
2887 history.  An important limitation is that you cannot invoke shell
2888 commands inside extfs, just like any other non-local VFS.
2890 Common extfs scripts included with Midnight Commander are:
2892 .B a
2893 access 'A:' DOS/Windows diskette
2894 .RI ( "cd #a" ).
2896 .B apt
2897 front end to Debian's APT package management system
2898 .RI ( "cd #apt" ).
2900 .B audio
2901 audio CD ripping and playing
2902 .RI ( "cd #audio"
2904 .IR "cd device#audio" ).
2906 .B bpp
2907 package of Bad Penguin GNU/Linux distribution
2908 .RI ( "cd file.bpp#bpp" ).
2910 .B deb
2911 package of Debian GNU/Linux distribution
2912 .RI ( "cd file.deb#deb" ).
2914 .B dpkg
2915 Debian GNU/Linux installed packages
2916 .RI ( "cd #deb" ).
2918 .B hp48
2919 view and copy files to/from a HP48 calculator
2920 .RI ( "cd #hp48" ).
2922 .B lslR
2923 browsing of lslR listings as found on many FTPs
2924 .RI ( "cd filename#lslR" ).
2926 .B mailfs
2927 mbox-style mailbox files support
2928 .RI ( "cd mailbox#mailfs" ).
2930 .B patchfs
2931 extfs to handle unified and context diffs
2932 .RI ( "cd filename#patchfs" ).
2934 .B rpm
2935 RPM package
2936 .RI ( "cd filename#rpm" ).
2938 .B rpms
2939 RPM database management
2940 .RI ( "cd #rpms" ).
2942 .B ulha, urar, uzip, uzoo, uar, uha
2943 archivers
2944 .RI ( "cd archive#xxxx"
2945 where xxxx is one of:
2946 .IR ulha ,
2947 .IR urar ,
2948 .IR uzip ,
2949 .IR uzoo ,
2950 .IR uar ,
2951 .IR uha ).
2953 You could bind file type/extension to specified extfs as described in the
2954 .\"LINK2"
2955 Extension File Edit
2956 .\"Extension File Edit"
2957 section.  Here is an example entry for Debian packages:
2960   regex/\.deb$
2961           Open=%cd %p#deb
2963 .\"NODE "Colors"
2964 .SH "Colors"
2965 The Midnight Commander will try to detect if your terminal supports
2966 color using the terminal database and your terminal name.  Sometimes
2967 it gets confused, so you may force color mode or disable color mode
2968 using the -c and -b flag respectively.
2970 If the program is compiled with the Slang screen manager instead of
2971 ncurses, it will also check the variable
2972 .B COLORTERM,
2973 if it is set, it has the same effect as the -c flag.
2975 You may specify terminals that always force color mode
2976 by adding the
2977 .I color_terminals
2978 variable to the Colors section of the initialization file.  This will
2979 prevent the Midnight Commander from trying to detect if your terminal
2980 supports color.  Example:
2983 [Colors]
2984 color_terminals=linux,xterm
2985 color_terminals=terminal-name1,terminal-name2...
2988 The program can be compiled with both ncurses and slang, ncurses does
2989 not provide a way to force color mode: ncurses uses just the
2990 information in the terminal database.
2992 The Midnight Commander provides a way to change the default colors.
2993 Currently the colors are configured using the environment variable
2994 .B MC_COLOR_TABLE
2995 or the Colors section in the initialization file.
2997 In the Colors section, the default color map is loaded from the
2998 .I base_color
2999 variable.  You can specify an alternate color map for a terminal by
3000 using the terminal name as the key in this section.  Example:
3003 [Colors]
3004 base_color=
3005 xterm=menu=magenta:marked=,magenta:markselect=,red
3008 The format for the color definition is:
3011   <keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...
3014 The colors are optional, and the keywords are: normal, selected, marked,
3015 markselect, errors, input, reverse, gauge.  Menu colors are: menu,
3016 menusel, menuhot, menuhotsel.  Dialog colors are: dnormal, dfocus,
3017 dhotnormal, dhotfocus.  Help colors are: helpnormal, helpitalic,
3018 helpbold, helplink, helpslink.  Viewer color is: viewunderline.  Special
3019 highlighting colors are: executable, directory, link, stalelink, device,
3020 special, core.  Editor colors are: editnormal, editbold, editmarked.
3022 .I input
3023 determines the color of input lines used in query dialogs.
3025 .I gauge
3026 determines the color of the filled part of the progress bar (gauge),
3027 which is used to show the user the progress of file operations, such as
3028 copying.
3030 The dialog boxes use the following colors:
3031 .I dnormal
3032 is used for the normal text,
3033 .I dfocus
3034 is the color used for the currently selected component,
3035 .I dhotnormal
3036 is the color used to differentiate the hotkey color in normal
3037 components, whereas the
3038 .I dhotfocus
3039 color is used for the highlighted color in the currently selected
3040 component.
3042 Menus use the same scheme but uses the menu, menusel, menuhot and
3043 menuhotsel tags instead.
3045 Help uses the following colors:
3046 .I helpnormal
3047 is used for normal text,
3048 .I helpitalic
3049 is used for text which is emphasized in italic in the manual page,
3050 .I helpbold
3051 is used for text which is emphasized in bold in the manual page,
3052 .I helplink
3053 is used for not selected hyperlinks and
3054 .I helpslink
3055 is used for selected hyperlink.
3057 Special highlight colors determine how files are displayed when file
3058 highlighting is enabled (see the section on
3059 .\"LINK2"
3060 Layout\&).
3061 .\"Layout"
3062 .I directory
3063 is used for directories or symbolic links to directories;
3064 .I executable
3065 for executable files;
3066 .I link
3067 is used for symbolic links which are neither stale nor linked
3068 to a directory;
3069 .I stalelink
3070 is used for stale symbolic links;
3071 .I device
3072 - character and block devices;
3073 .I special
3074 is used for special files, such as pipes and sockets;
3075 .I core
3076 is for core files.
3078 The possible colors are: black, gray, red, brightred, green,
3079 brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
3080 cyan, brightcyan, lightgray and white. And there is a special keyword
3081 for transparent background. It is 'default'. The 'default' can only be
3082 used for background color. Example:
3085 [Colors]
3086 base_color=normal=white,default:marked=magenta,default
3088 .\"NODE "Special Settings"
3089 .SH "Special Settings"
3090 Most of the settings of the Midnight Commander can be changed from the
3091 menus. However, there are a small number of settings which can only be
3092 changed by editing the setup file.
3094 These variables may be set in your ~/.mc/ini file:
3096 .I clear_before_exec
3097 By default the Midnight Commander clears the screen before executing a
3098 command.  If you would prefer to see the output of the command at the
3099 bottom of the screen, edit your ~/.mc/ini file and change the value of
3100 the field clear_before_exec to 0.
3102 .I confirm_view_dir
3103 If you press F3 on a directory, normally MC enters that directory.  If
3104 this flag is set to 1, then MC will ask for confirmation before changing
3105 the directory if you have files tagged.
3107 .I ftpfs_retry_seconds
3108 This value is the number of seconds the Midnight Commander will wait
3109 before attempting to reconnect to an FTP server that has denied the
3110 login.  If the value is zero, the login will no be retried.
3112 .I max_dirt_limit
3113 Specifies how many screen updates can be skipped at most in the internal
3114 file viewer.  Normally this value is not significant, because the code
3115 automatically adjusts the number of updates to skip according to the
3116 rate of incoming keystrokes.  However, on very slow machines or
3117 terminals with a fast keyboard auto repeat, a big value can make screen
3118 updates too jumpy.
3120 It seems that setting max_dirt_limit to 10 causes the best behavior,
3121 and that is the default value.
3123 .I mouse_move_pages
3124 Controls whenever scrolling with the mouse is done by pages or line by
3125 line on the panels.
3127 .I mouse_move_pages_viewer
3128 Controls if scrolling with the mouse is done by pages or line by line
3129 on the internal file viewer.
3131 .I old_esc_mode
3132 By default the Midnight Commander treats the ESC key as a key prefix
3133 (old_esc_mode=0).  If this option is set (old_esc_mode=1), the ESC key
3134 will act as a prefix key for one second, and if no extra keys have
3135 arrived, then the ESC key is interpreted as a cancel key (ESC ESC).
3137 .I only_leading_plus_minus
3138 Allow special treatment for '+', '-', '*' in the command line (select,
3139 unselect, reverse selection) only if the command line is empty.  You
3140 don't need to quote those characters in the middle of the command line.
3141 On the other hand, you cannot use them to change selection when the
3142 command line is not empty.
3144 .I panel_scroll_pages
3145 If set (the default), panel will scroll by half the display when the
3146 cursor reaches the end or the beginning of the panel, otherwise it
3147 will just scroll a file at a time.
3149 .I show_output_starts_shell
3150 This variable only works if you are not using the subshell support.
3151 When you use the C-o keystroke to go back to the user screen, if this
3152 one is set, you will get a fresh shell.  Otherwise, pressing any key
3153 will bring you back to the Midnight Commander.
3155 .I torben_fj_mode
3156 If this flag is set, then the home and end keys will work slightly
3157 different on the panels, instead of moving the selection to the first
3158 and last files in the panels, they will act as follows:
3160 The home key will: Go up to the middle line, if below it; else go to the
3161 top line unless it is already on the top line, in this case it will go
3162 to the first file in the panel.
3164 The end key has a similar behavior: Go down to the middle line, if over
3165 it; else go to the bottom line unless you already are at the bottom
3166 line, in such case it will move the selection to the last file name in
3167 the panel.
3169 .I use_file_to_guess_type
3170 If this variable is on (the default) it will spawn the file command to
3171 match the file types listed on the
3172 .\"LINK2"
3173 mc.ext file\&.
3174 .\"Extension File Edit"
3176 .I xterm_mode
3177 If this variable is on (default is off) when you browse the file system
3178 on a Tree panel, it will automatically reload the other panel with the
3179 contents of the selected directory.
3180 .\"NODE "Terminal databases"
3181 .SH "Terminal databases"
3182 The Midnight Commander provides a way to fix your system terminal
3183 database without requiring root privileges.  The Midnight Commander
3184 searches in the system initialization file (the mc.lib file located in
3185 the Midnight Commander library directory) and in the ~/.mc/ini file for
3186 the section "terminal:your-terminal-name" and then for the section
3187 "terminal:general", each line of the section contains a key symbol that
3188 you want to define, followed by an equal sign and the definition for the
3189 key.  You can use the special \\e form to represent the escape character
3190 and the ^x to represent the control-x character.
3192 The possible key symbols are:
3195 f0 to f20     Function keys f0-f20
3196 bs            backspace
3197 home          home key
3198 end           end key
3199 up            up arrow key
3200 down          down arrow key
3201 left          left arrow key
3202 right         right arrow key
3203 pgdn          page down key
3204 pgup          page up key
3205 insert        the insert character
3206 delete        the delete character
3207 complete      to do completion
3210 For example, to define the key insert to be the Escape + [ + O + p, you
3211 set this in the ini file:
3214 insert=\\e[Op
3218 .I complete
3219 key symbol represents the escape sequences used to invoke the completion
3220 process, this is invoked with Alt-tab, but you can define other keys to do
3221 the same work (on those keyboard with tons of nice and unused keys
3222 everywhere).
3223 .SH ""
3224 .\"NODE "FILES"
3225 .SH "FILES"
3226 Full paths below may vary between installations.  They are also affected
3227 by the MC_DATADIR environment variable.  If it's set, its value is used
3228 instead of @prefix@/share/mc in the paths below.
3230 .I @prefix@/share/mc/mc.hlp
3232 The help file for the program.
3234 .I @prefix@/share/mc/mc.ext
3236 The default system-wide extensions file.
3238 .I ~/.mc/bindings
3240 User's own extension, view configuration and edit configuration
3241 file.  They override the contents of the system wide files if present.
3243 .I @prefix@/share/mc/mc.ini
3245 The default system-wide setup for the Midnight Commander, used only if
3246 the user doesn't have his own ~/.mc/ini file.
3248 .I @prefix@/share/mc/mc.lib
3250 Global settings for the Midnight Commander.  Settings in this file
3251 affect all users, whether they have ~/.mc/ini or not.  Currently, only
3252 .\"LINK2"
3253 terminal settings
3254 .\"Terminal databases"
3255 are loaded from mc.lib.
3257 .I ~/.mc/ini
3259 User's own setup. If this file is present then the setup is loaded
3260 from here instead of the system-wide startup file.
3262 .I @prefix@/share/mc/mc.hint
3264 This file contains the hints displayed by the program.
3266 .I @prefix@/share/mc/mc.menu
3268 This file contains the default system-wide applications menu.
3270 .I ~/.mc/menu
3272 User's own application menu. If this file is present it is used instead
3273 of the system-wide applications menu.
3275 .I ~/.mc/Tree
3277 The directory list for the directory tree and tree view features.
3279 .I ./.mc.menu
3281 Local user-defined menu. If this file is present, it is used instead of
3282 the home or system-wide applications menu.
3283 .\"SKIP_SECTION"
3284 .SH "LICENSE"
3285 This program is distributed under the terms of the GNU General Public
3286 License as published by the Free Software Foundation. See the built-in
3287 help for details on the License and the lack of warranty.
3288 .\"NODE "AVAILABILITY"
3289 .SH "AVAILABILITY"
3290 The latest version of this program can be found at
3291 ftp://ftp.ibiblio.org/pub/Linux/utils/file/managers/mc/.
3292 .\"NODE "SEE ALSO"
3293 .SH "SEE ALSO"
3294 ed(1), gpm(1), mcserv(8), terminfo(1), view(1), sh(1), bash(1),
3295 tcsh(1), zsh(1).
3298 The Midnight Commander page on the World Wide Web:
3299         http://www.ibiblio.org/mc/
3301 .\"NODE "AUTHORS"
3302 .SH "AUTHORS"
3303 Authors and contributors are listed in the AUTHORS file in the source
3304 distribution.
3305 .\"NODE "BUGS"
3306 .SH "BUGS"
3307 See the file TODO in the distribution for information on what remains to
3308 be done.
3310 If you want to report a problem with the program, please send mail to
3311 this address: mc-devel@gnome.org.
3313 Provide a detailed description of the bug, the version of the program
3314 you are running
3315 .RI ( "mc -V"
3316 displays this information), the operating system you are running the
3317 program on.  If the program crashes, we would appreciate a stack trace.