Clean menu -- made to use standart GNOME menu entries
[midnight-commander.git] / src / mc.hlp
blob403af792607ecce9a747765935545e67cf6f262b
1 \x04[Contents]
2 Topics:
4   \x01 DESCRIPTION \x02DESCRIPTION\x03
5   \x01 OPTIONS \x02OPTIONS\x03
6   \x01 Overview \x02Overview\x03
7   \x01 Mouse Support \x02Mouse Support\x03
9   \x01 Keys \x02Keys\x03
10     \x01 Miscellaneous Keys \x02Miscellaneous Keys\x03
11     \x01 Directory Panels \x02Directory Panels\x03
12     \x01 Shell Command Line \x02Shell Command Line\x03
13     \x01 General Movement Keys \x02General Movement Keys\x03
14     \x01 Input Line Keys \x02Input Line Keys\x03
16   \x01 Menu Bar \x02Menu Bar\x03
17     \x01 Left and Right Menus \x02Left and Right Menus\x03
18       \x01 Listing Mode... \x02Listing Mode...\x03
19       \x01 Sort Order... \x02Sort Order...\x03
20       \x01 Filter... \x02Filter...\x03
21       \x01 Reread \x02Reread\x03
22     \x01 File Menu \x02File Menu\x03
23       \x01 Quick cd \x02Quick cd\x03
24     \x01 Command Menu \x02Command Menu\x03
25       \x01 Directory Tree \x02Directory Tree\x03
26       \x01 Find File \x02Find File\x03
27       \x01 External panelize \x02External panelize\x03
28       \x01 Hotlist \x02Hotlist\x03
29       \x01 Extension File Edit \x02Extension File Edit\x03
30       \x01 Background jobs \x02Background jobs\x03
31       \x01 Menu File Edit \x02Menu File Edit\x03
32     \x01 Options Menu \x02Options Menu\x03
33       \x01 Configuration \x02Configuration\x03
34       \x01 Display bits \x02Display bits\x03
35       \x01 Confirmation \x02Confirmation\x03
36       \x01 Learn keys \x02Learn keys\x03
37       \x01 Virtual FS \x02Virtual FS\x03
38       \x01 Layout \x02Layout\x03
39       \x01 Save Setup \x02Save Setup\x03
41   \x01 Executing operating system commands \x02Executing operating system commands\x03
42     \x01 The cd internal command \x02The cd internal command\x03
43     \x01 Macro Substitution \x02Macro Substitution\x03
44     \x01 The subshell support \x02The subshell support\x03
45     \x01 Controlling Midnight Commander \x02Controlling Midnight Commander\x03
46   \x01 Chmod \x02Chmod\x03
47   \x01 Chown \x02Chown\x03
48   \x01 Advanced Chown \x02Advanced Chown\x03
49   \x01 File Operations \x02File Operations\x03
50   \x01 Mask Copy/Rename \x02Mask Copy/Rename\x03
51   \x01 Internal File Viewer \x02Internal File Viewer\x03
52   \x01 Internal File Editor \x02Internal File Editor\x03
53   \x01 Completion \x02Completion\x03
54   \x01 Virtual File System \x02Virtual File System\x03
55     \x01 FTP File System \x02FTP File System\x03
56     \x01 Tar File System \x02Tar File System\x03
57     \x01 FIle transfer over SHell filesystem \x02FIle transfer over SHell filesystem\x03
58     \x01 Network File System \x02Network File System\x03
59     \x01 Undelete File System \x02Undelete File System\x03
60   \x01 Colors \x02Colors\x03
61   \x01 Special Settings \x02Special Settings\x03
62   \x01 Terminal databases \x02Terminal databases\x03
64   \x01 FILES \x02FILES\x03
65   \x01 AVAILABILITY \x02AVAILABILITY\x03
66   \x01 SEE ALSO \x02SEE ALSO\x03
67   \x01 AUTHORS \x02AUTHORS\x03
68   \x01 BUGS \x02BUGS\x03
69   \x01 License \x02License\x03
70   \x01 QueryBox \x02QueryBox\x03
71   \x01 How to use help \x02How to use help\x03
72 \x04[DESCRIPTION]
73 DESCRIPTION
75 The Midnight Commander is a directory browser/file manager
76 for Unix-like operating systems.\x04[OPTIONS]
77 OPTIONS
80 \x14"-a"\v Disables the usage of graphic characters for line
81 drawing.
83 \x14"-b"\v Forces black and white display.
85 \x14"-c"\v Force color mode, please check the section \x01Colors\x02Colors\x03 for
86 more information.
88 \x14"-C arg"\v Used to specify a different color set in the
89 command line. The format of arg is documented in the
90 \x01Colors\x02Colors\x03 section.
92 \x14"-d"\v Disables mouse support.
94 \x14"-f"\v Displays the compiled-in search paths for Midnight
95 Commander files.
97 \x14"-k"\v Reset softkeys to their default from the
98 termcap/terminfo database. Only useful on HP terminals
99 when the function keys don't work.
101 \x14"-l file" \v Save the ftpfs dialog with the server in file.
103 \x14"-P"\v At program end, the Midnight Commander will print the
104 last working directory; this, along with the shell
105 function below, will allow you to browse through your
106 directories and automatically move to the last directory
107 you were in (thanks to Torben Fjerdingstad and Sergey for
108 contributing this function and the code which implements
109 this option).
111 bash and zsh users:
113 mc ()
115         MC=/tmp/mc$$-"$RANDOM"
116         @prefix@/bin/mc -P "$@" > "$MC"
117         cd "`cat $MC`"
118         rm "$MC"
119         unset MC;
122 tcsh users:
123 alias mc 'setenv MC `@prefix@/bin/mc -P \!*`; cd $MC; unsetenv MC'
125 I know the bash function could be shorter for zsh and bash
126 but the backquotes on bash won't accept your suspension
127 the program with C-z.
129 \x14"-s"\v Turns on the slow terminal mode, in this mode the
130 program will not draw expensive line drawing characters
131 and will toggle verbose mode off.
133 \x14"-t"\v Used only if the code was compiled with Slang and
134 terminfo: it makes the Midnight Commander use the value of
135 the \bTERMCAP\v variable for the terminal information instead
136 of the information on the system wide terminal database
138 \x14"-u"\v Disables the use of a concurrent shell (only makes
139 sense if the Midnight Commander has been built with
140 concurrent shell support).
142 \x14"-U"\v Enables the use of the concurrent shell support (only
143 makes sense if the Midnight Commander was built with the
144 subshell support set as an optional feature).
146 \x14"-v file"\v Enters the internal viewer to view the file
147 specified.
149 \x14"-V"\v Displays the version of the program.
151 \x14"-x"\v Forces xterm mode. Used when running on xterm-capable
152 terminals (two screen modes, and able to send mouse escape
153 sequences).
155 If specified, the first path name is the directory to show
156 in the selected panel; the second path name is the
157 directory to be shown in the other panel.
159 \x04[Overview]
160 Overview
162 The screen of the Midnight Commander is divided into four
163 parts. Almost all of the screen space is taken up by two
164 directory panels. By default, the second bottommost line
165 of the screen is the shell command line, and the bottom
166 line shows the function key labels. The topmost line is
167 the \x01menu bar line.\x02Menu Bar\x03 The menu bar line may not be visible,
168 but appears if you click the topmost line with the mouse
169 or press the F9 key.
171 The Midnight Commander provides a view of two directories
172 at the same time. One of the panels is the current panel
173 (a selection bar is in the current panel). Almost all
174 operations take place on the current panel. Some file
175 operations like Rename and Copy by default use the
176 directory of the unselected panel as a destination (don't
177 worry, they always ask you for confirmation first). For
178 more information, see the sections on the \x01Directory
179 Panels,\x02Directory Panels\x03 the \x01Left and Right Menus\x02Left and Right Menus\x03 and the \x01File Menu.\x02File Menu\x03
181 You can execute system commands from the Midnight
182 Commander by simply typing them. Everything you type will
183 appear on the shell command line, and when you press Enter
184 the Midnight Commander will execute the command line you
185 typed; read the \x01Shell Command Line\x02Shell Command Line\x03 and \x01Input Line Keys\x02Input Line Keys\x03
186 sections to learn more about the command line.
188 \x04[Mouse Support]
189 Mouse Support
191 The Midnight Commander comes with mouse support. It is
192 activated whenever you are running on an \bxterm(1)\v terminal
193 (it even works if you take a telnet or rlogin connection
194 to another machine from the xterm) or if you are running
195 on a Linux console and have the \bgpm\v mouse server running.
197 When you left click on a file in the directory panels,
198 that file is selected; if you click with the right button,
199 the file is marked (or unmarked, depending on the previous
200 state).
202 Double-clicking on a file will try to execute the command
203 if it is an executable program; and if the \x01extension file\x02Extension File
204 Edit\x03has a program specified for the file's extension, the
205 specified program is executed.
207 Also, it is possible to execute the commands assigned to
208 the function key labels by clicking on them.
210 If a mouse button is clicked on the top frame line of the
211 directory panel, it is scrolled one pageful backward.
212 Correspondingly, a click on the bottom frame line will
213 cause a scroll of one pageful forward. This frame line
214 method works also in the \x01Help Viewer\x02Help\x03 and the \x01Directory
215 Tree.\x02Directory Tree\x03
217 The default auto repeat rate for the mouse buttons is 400
218 milliseconds. This may be changed to other values by
219 editing the \x01~/.mc/ini\x02Save Setup\x03 file and changing the
220 \x14mouse_repeat_rate\v parameter.
222 If you are running the Commander with the mouse support,
223 you can bypass the Commander and get the default mouse
224 behavior (cutting and pasting text) by holding down the
225 Shift key.\x04[]
228 \x04[Keys]
229 Keys
231 Some commands in the Midnight Commander involve the use of
232 the \x14Control\v (sometimes labeled CTRL or CTL) and the \x14Meta\v
233 (sometimes labeled ALT or even Compose) keys. In this
234 manual we will use the following abbreviations:
236 C-<chr> means hold the Control key while typing the
237 character <chr>. Thus C-f would be: hold the Control key
238 and type f.
240 M-<chr> means hold the Meta or Alt key down while typing
241 <chr>. If there is no Meta or Alt key, type ESC, release
242 it, then type the character <chr>.
244 All input lines in the Midnight Commander use an
245 approximation to the GNU Emacs editor's key bindings.
247 There are many sections which tell about the keys. The
248 following are the most important.
250 The \x01File Menu\x02File Menu\x03 section documents the keyboard shortcuts
251 for the commands appearing in the File menu. This section
252 includes the function keys. Most of these commands perform
253 some action, usually on the selected file or the tagged
254 files.
256 The \x01Directory Panels\x02Directory Panels\x03 section documents the keys which
257 select a file or tag files as a target for a later action
258 (the action is usually one from the file menu).
260 The \x01Shell Command Line\x02Shell Command Line\x03 section list the keys which are
261 used for entering and editing command lines. Most of these
262 copy file names and such from the directory panels to the
263 command line (to avoid excessive typing) or access the
264 command line history.
266 \x01Input Line Keys\x02Input Line Keys\x03 are used for editing input lines. This
267 means both the command line and the input lines in the
268 query dialogs.
270 \x04[Miscellaneous Keys]
271 Miscellaneous Keys
273 Here are some keys which don't fall into any of the other
274 categories:
276 \bEnter.\v If there is some text in the command line (the one
277 at the bottom of the panels), then that command is
278 executed. If there is no text in the command line then if
279 the selection bar is over a directory the Midnight
280 Commander does a \bchdir(2)\v to the selected directory and
281 reloads the information on the panel; if the selection is
282 an executable file then it is executed. Finally, if the
283 extension of the selected file name matches one of the
284 extensions in the \x01extensions file\x02Extension File Edit\x03 then the corresponding
285 command is executed.
287 \bC-l.\v Repaint all the information in the Midnight
288 Commander.
290 \bC-x c.\v Run the \x01Chmod\x02Chmod\x03 command on a file or on the tagged
291 files.
293 \bC-x o.\v Run the \x01Chown\x02Chown\x03 command on the current file or on the
294 tagged files.
296 \bC-x l.\v Run the link command.
298 \bC-x s.\v Run the symbolic link command.
300 \bC-x i.\v Set the other panel display mode to information.
302 \bC-x q.\v Set the other panel display mode to quick view.
304 \bC-x !.\v Execute the \x01External panelize\x02External panelize\x03 command.
306 \bC-x h\v Run the \x01add directory to hotlist\x02Hotlist\x03 command.
308 \bM-!,\v Executes the Filtered view command, described in the
309 \x01view command.\x02Internal File Viewer\x03
311 \bM-?,\v Executes the \x01Find file\x02Find File\x03 command.
313 \bM-c,\v Pops up the \x01quick cd\x02Quick cd\x03 dialog.
315 \bC-o,\v When the program is being run in the Linux or SCO
316 console or under an xterm, it will show you the output of
317 the previous command. When ran on the Linux console, the
318 Midnight Commander uses an external program (cons.saver)
319 to handle saving and restoring of information on the
320 screen.
322 When the subshell support is compiled in, you can type C-o
323 at any time and you will be taken back to the Midnight
324 Commander main screen, to return to your application just
325 type C-o. If you have an application suspended by using
326 this trick, you won't be able to execute other programs
327 from the Midnight Commander until you terminate the
328 suspended application.
330 \x04[Directory Panels]
331 Directory Panels
333 This section lists the keys which operate on the directory
334 panels. If you want to know how to change the appearance
335 of the panels take a look at the section on \x01Left and Right
336 Menus.\x02Left and Right Menus\x03
338 \bTab, C-i.\v Change the current panel. The old other panel
339 becomes the new current panel and the old current panel
340 becomes the new other panel. The selection bar moves from
341 the old current panel to the new current panel.
343 \bInsert, C-t.\v To tag files you may use the Insert key (the
344 kich1 terminfo sequence) or the C-t (Control-t) sequence.
345 To untag files, just retag a tagged file.
347 \bM-g, M-h (or M-r), M-j.\v Used to select the top file in a
348 panel, the middle file and the bottom one, respectively.
350 \bC-s, M-s.\v Start a filename search in the directory
351 listing. When the search is active the keypresses will be
352 added to the search string instead of the command line. If
353 the \x14"Show mini-status"\v option is enabled the search string
354 is shown on the mini-status line. When typing, the
355 selection bar will move to the next file starting with the
356 typed letters. The \x14"backspace" or DEL \v keys can be used to
357 correct typing mistakes. If C-s is pressed again, the next
358 match is searched for.
360 \bM-t\v Toggle the current display listing to show the next
361 display listing mode. With this it is possible to quickly
362 switch from long listing to regular listing and the user
363 defined listing mode.
365 \bC-\\ (control-backslash).\v Show the \x01directory hotlist\x02Hotlist\x03 and
366 change to the selected directory.
368 \b+  (plus).\v This is used to select (tag) a group of files.
369 The Midnight Commander will prompt for a regular
370 expression describing the group. When \x14Shell Patterns \v are
371 enabled, the regular expression is much like the regular
372 expressions in the shell (* standing for zero or more
373 characters and ? standing for one character). If \x14Shell
374 Patterns\v is off, then the tagging of files is done with
375 normal regular expressions (see ed (1)).
377 If the expression starts or ends with a slash (/), then it
378 will select directories instead of files.
380 \b\\ (backslash).\v Use the "\" key to unselect a group of
381 files. This is the opposite of the Plus key.
383 \bup-key, C-p.\v Move the selection bar to the previous entry
384 in the panel.
386 \bdown-key, C-n.\v Move the selection bar to the next entry in
387 the panel.
389 \bhome, a1, M-<.\v Move the selection bar to the first entry
390 in the panel.
392 \bend, c1, M->.\v Move the selection bar to the last entry in
393 the panel.
395 \bnext-page, C-v.\v Move the selection bar one page down.
397 \bprev-page, M-v.\v Move the selection bar one page up.
399 \bM-o,\v If the other panel is a listing panel and you are
400 standing on a directory in the current panel, then the
401 other panel contents are set to the contents of the
402 currently selected directory (like Emacs' dired C-o key)
403 otherwise the other panel contents are set to the parent
404 dir of the current dir.
406 \bC-PageUp, C-PageDown\v Only when ran on the Linux console:
407 does a chdir to ".." and to the currently selected
408 directory respectively.
410 \bM-y\v Moves to the previous directory in the history,
411 equivalent to depressing the '<' with the mouse.
413 \bM-u\v Moves to the next directory in the history, equivalent
414 to depressing the '>' with the mouse. Displays the
415 directory history, equivalent to depressing the 'v' with
416 the mouse.
418 \x04[Shell Command Line]
419 Shell Command Line
421 This section lists keys which are useful to avoid
422 excessive typing when entering shell commands.
424 \bM-Enter.\v Copy the currently selected file name to the
425 command line.
427 \bC-Enter.\v Same a M-Enter, this one only works on the Linux
428 console.
430 \bM-Tab.\v Does the filename, command, variable, username and
431 hostname \x01completion\x02Completion\x03 for you.
433 \bC-x t, C-x C-t.\v Copy the tagged files (or if there are no
434 tagged files, the selected file) of the current panel (C-x
435 t) or of the other panel (C-x C-t) to the command line.
437 \bC-x p, C-x C-p. \v The first key sequence copies the current
438 path name to the command line, and the second one copies
439 the unselected panel's path name to the command line.
441 \bC-q.\v The quote command can be used to insert characters
442 that are otherwise interpreted by the Midnight Commander
443 (like the '+' symbol)
445 \bM-p, M-n.\v Use these keys to browse through the command
446 history. M-p takes you to the last entry, M-n takes you to
447 the next one.
449 \bM-h.\v Displays the history for the current input line.
451 \x04[General Movement Keys]
452 General Movement Keys
454 The help viewer, the file viewer and the directory tree
455 use common code to handle moving. Therefore they accept
456 exactly the same keys. Each of them also accepts some keys
457 of its own.
459 Other parts of the Midnight Commander use some of the same
460 movement keys, so this section may be of use for those
461 parts too.
463 \bUp, C-p.\v Moves one line backward.
465 \bDown, C-n.\v Moves one line forward.
467 \bPrev Page, Page Up, M-v.\v Moves one pageful backward.
469 \bNext Page, Page Down, C-v.\v Moves one pageful forward.
471 \bHome, A1.\v Moves to the beginning.
473 \bEnd, C1.\v Move to the end.
475 The help viewer and the file viewer accept the following
476 keys in addition the to ones mentioned above:
478 \bb, C-b, C-h, Backspace, Delete.\v Moves one pageful
479 backward.
481 \bSpace bar.\v Moves one pageful forward.
483 \bu, d.\v Moves one half of a page backward or forward.
485 \bg, G.\v Moves to the beginning or to the end.
487 \x04[Input Line Keys]
488 Input Line Keys
490 The input lines (they are used for the \x01command line\x02Shell Command Line\x03 and
491 for the query dialogs in the program) accept these keys:
493 \bC-a\v puts the cursor at the beginning of line.
495 \bC-e\v puts the cursor at the end of the line.
497 \bC-b, move-left\v move the cursor one position left.
499 \bC-f, move-right\v move the cursor one position right.
501 \bM-f\v moves one word forward.
503 \bM-b\v moves one word backward.
505 \bC-h, backspace\v delete the previous character.
507 \bC-d, Delete\v delete the character in the point (over the
508 cursor).
510 \bC-@\v sets the mark for cutting.
512 \bC-w\v copies the text between the cursor and the mark to a
513 kill buffer and removes the text from the input line.
515 \bM-w\v copies the text between the cursor and the mark to a
516 kill buffer.
518 \bC-y\v yanks back the contents of the kill buffer.
520 \bC-k\v kills the text from the cursor to the end of the line.
522 \bM-p, M-n\v Use these keys to browse through the command
523 history. M-p takes you to the last entry, M-n takes you to
524 the next one.
526 \bM-C-h, M-Backspace\v delete one word backward.
528 \bM-Tab\v does the filename, command, variable, username and
529 hostname \x01completion\x02Completion\x03 for you.
531 \x04[]
534 \x04[Menu Bar]
535 Menu Bar
537 The menu bar pops up when you press F9 or click the mouse
538 on the top row of the screen. The menu bar has five menus:
539 "Left", "File", "Command", "Options" and "Right".
541 The \x01Left and Right Menus\x02Left and Right Menus\x03 allow you to modify the
542 appearance of the left and right directory panels.
544 The \x01File Menu\x02File Menu\x03 lists the actions you can perform on the
545 currently selected file or the tagged files.
547 The \x01Command Menu\x02Command Menu\x03 lists the actions which are more general
548 and bear no relation to the currently selected file or the
549 tagged files.
551 \x04[Left and Right Menus]
552 Left and Right Menus
554 The outlook of the directory panels can be changed from
555 the \b"Left"\v and \b"Right"\v menus.
557 \x04[Listing Mode...]
558 Listing Mode...
560 The listing mode view is used to display a listing of
561 files, there are four different listing modes available:
562 \bFull,\v \bBrief,\v \bLong,\v and \bUser.\v The full directory view shows
563 the file name, the size of the file and the modification
564 time.
566 The brief view shows only the file name and it has two
567 columns (therefore showing twice as many files as other
568 views). The long view is similar to the output of \b"ls -l"\v
569 command. The long view takes the whole screen width.
571 If you choose the "User" display format, then you have to
572 specify the display format.
574 The user display format must start with a panel size
575 specifier. This may be "half" or "full", and they specify
576 a half screen panel and a full screen panel respectively.
578 After the panel size, you may specify the two columns mode
579 on the panel, this is done by adding the number "2" to the
580 user format string.
582 After this you add the name of the fields with an optional
583 size specifier. This are the available fields you may
584 display:
586 \bname,\v displays the file name.
588 \bsize,\v displays the file size.
590 \bbsize,\v is an alternative form of the <bf/size/ format. It
591 displays the size of the files and for directories it just
592 shows SUB-DIR or UP--DIR.
594 \btype,\v displays a one character field type. This character
595 is a superset of what is displayed by ls with the -F flag.
596 An asterisk for executable files, a slash for directories,
597 an at-sign for links, an equal sign for sockets, a hyphen
598 for character devices, a plus sign for block devices, a
599 pipe for fifos, a tilde for symbolic links to directories
600 and an exclamation mark for stalled symlinks (links that
601 point nowhere).
603 \bmtime,\v file's last modification time.
605 \batime,\v file's last access time.
607 \bctime,\v file's creation time.
609 \bperm,\v a string representing the current permission bits of
610 the file.
612 \bmode,\v an octal value with the current permission bits of
613 the file.
615 \bnlink,\v the number of links to the file. \bngid,\v the GID
616 (numeric).
618 \bnuid,\v the UID (numeric).
620 \bowner,\v the owner of the file.
622 \bgroup,\v the group of the file.
624 \binode,\v the inode of the file.
626 Also you may use these field names for arranging the
627 display:
629 \bspace,\v a space in the display format.
631 \bmark,\v An asterisk if the file is tagged, a space if it's
632 not.
634 \b|,\v This character is used to add a vertical line to the
635 display format.
637 To force one field to a fixed size (a size specifier), you
638 just add a ':' and then the number of characters you want
639 the field to have, if the number is followed by the symbol
640 '+', then the size specifies the minimum field size, if
641 the program finds out that there is more space on the
642 screen, it will then expand this field.
644 For example, the \bFull\v display corresponds to this format:
646 half type,name,|,size,|,mtime
648 And the \bLong\v display corresponds to this format:
650 full
651 perm,space,nlink,space,owner,space,group,space,size,space,
652 mtime,space,name
654 This is a nice user display format:
656 half name,|,size:7,|,type,mode:3
658 Panels may also be set to the following modes:
660 \b"Info"\v The info view display information related to the
661 currently selected file and if possible information about
662 the current file system.
664 \b"Tree" \v The tree view is quite similar to the \x01directory
665 tree\x02Directory Tree\x03 feature. See the section about it for more
666 information.
668 \b"Quick View"\v In this mode, the panel will switch to a
669 reduced \x01viewer\x02Internal File Viewer\x03 that displays the contents of the
670 currently selected file, if you select the panel (with the
671 tab key or the mouse), you will have access to the usual
672 viewer commands.
674 \x04[Sort Order...]
675 Sort Order...
677 The eight sort orders are by name, by extension, by
678 modification time, by access time, and by inode
679 information modification time, by size, by inode and
680 unsorted. In the Sort order dialog box you can choose the
681 sort order and you may also specify if you want to sort in
682 reverse order by checking the reverse box.
684 By default directories are sorted before files but this
685 can be changed from the \x01Options menu\x02Options Menu\x03 (option \b"Mix all
686 files"\v ).
688 \x04[Filter...]
689 Filter...
691 The filter command allows you to specify a shell pattern
692 (for example \b"*.tar.gz"\v ) which the files must match to be
693 shown. Regardless of the filter pattern, the directories
694 and the links to directories are always shown in the
695 directory panel.
697 \x04[Reread]
698 Reread
700 The reread command reload the list of files in the
701 directory. It is useful if other processes have created or
702 removed files. If you have panelized file names in a panel
703 this will reload the directory contents and remove the
704 panelized information (See the section \x01External panelize\x02External panelize\x03
705 for more information).
707 \x04[File Menu]
708 File Menu
710 The Midnight Commander uses the F1 - F10 keys as keyboard
711 shortcuts for commands appearing in the file menu. The
712 escape sequences for the Fkeys are terminfo capabilities
713 kf1 trough kf10. On terminals without function key
714 support, you can achieve the same functionality by
715 pressing the ESC key and then a number in the range 1
716 through 9 and 0 (corresponding to F1 to F9 and F10
717 respectively).
719 The File menu has the following commands (keyboard
720 shortcuts in parentheses):
722 \bHelp (F1)\v
724 Invokes the built-in hypertext help viewer. Inside the
725 \x01help viewer,\x02Help\x03 you can use the Tab key to select the next
726 link and the Enter key to follow that link. The keys Space
727 and Backspace are used to move forward and backward in a
728 help page. Press F1 again to get the full list of accepted
729 keys.
731 \bMenu (F2)\v
733 Invoke the \x01user menu.\x02Menu File Edit\x03 The user menu provides an easy way
734 to provide users with a menu and add extra features to the
735 Midnight Commander.
737 \bView (F3, Shift-F3)\v
739 View the currently selected file. By default this invokes
740 the \x01Internal File Viewer\x02Internal File Viewer\x03 but if the option "Use internal
741 view" is off, it invokes an external file viewer specified
742 by the \bPAGER \v environment variable. If \bPAGER\v is undefined,
743 the "view" command is invoked. If you use Shift-F3
744 instead, the viewer will be invoked without doing any
745 formatting or pre processing to the file.
747 \bFiltered View (M-!)\v
749 this command prompts for a command and it's arguments (the
750 argument defaults to the currently selected file name),
751 the output from such command is shown in the internal file
752 viewer.
754 \bEdit (F4)\v
756 Currently it invokes the \bvi \v editor, or the editor
757 specified in the \bEDITOR\v environment variable, or the
758 \x01Internal File Editor\x02Internal File Editor\x03 if the use_internal_edit option is
761 \bCopy (F5)\v
763 Pop up an input dialog with destination that defaults to
764 the directory in the non-selected panel and copies the
765 currently selected file (or the tagged files, if there is
766 at least one file tagged) to the directory specified by
767 the user in the input dialog. During this process, you can
768 press C-c or ESC to abort the operation. For details about
769 source mask (which will be usually either * or ^\(.*\)$
770 depending on setting of Use shell patterns) and possible
771 wildcards in the destination see \x01Mask copy/rename.\x02Mask Copy/Rename\x03
773 On some systems, it is possible to do the copy in the
774 background by clicking on the background button (or
775 pressing M-b in the dialog box). The \x01Background Jobs\x02Background Jobs\x03 is
776 used to control the background process.
778 \bLink (C-x l)\v
780 Create a hard link to the current file.
782 \bSymLink (C-x s)\v
784 Create a symbolic link to the current file. To those of
785 you who don't know what links are: creating a link to a
786 file is a bit like copying the file, but both the source
787 filename and the destination filename represent the same
788 file image. For example, if you edit one of these files,
789 all changes you make will appear in both files. Some
790 people call links aliases or shortcuts.
792 A hard link appears as a real file. After making it, there
793 is no way of telling which one is the original and which
794 is the link. If you delete either one of them the other
795 one is still intact. It is very difficult to notice that
796 the files represent the same image. Use hard links when
797 you don't even want to know.
799 A symbolic link is a reference to the name of the original
800 file. If the original file is deleted the symbolic link is
801 useless. It is quite easy to notice that the files
802 represent the same image. The Midnight Commander shows an
803 "@"-sign in front of the file name if it is a symbolic
804 link to somewhere (except to directory, where it shows a
805 tilde (~)). The original file which the link points to is
806 shown on mini-status line if the \x14"Show mini-status"\v option
807 is enabled. Use symbolic links when you want to avoid the
808 confusion that can be caused by hard links.
810 \bRename/Move (F6)\v
812 Pop up an input dialog that defaults to the directory in
813 the non-selected panel and moves the currently selected
814 file (or the tagged files if there is at least one tagged
815 file) to the directory specified by the user in the input
816 dialog. During the process, you can press C-c or ESC to
817 abort the operation. For more details look at Copy
818 operation above, most of the things are quite similar.
820 On some systems, it is possible to do the copy in the
821 background by clicking on the background button (or
822 pressing M-b in the dialog box). The \x01Background Jobs\x02Background Jobs\x03 is
823 used to control the background process.
825 \bMkdir (F7)\v
827 Pop up an input dialog and creates the directory
828 specified.
830 \bDelete (F8)\v
832 Delete the currently selected file or the tagged files in
833 the currently selected panel. During the process, you can
834 press C-c or ESC to abort the operation.
836 \bQuick cd (M-c)\v Use the \x01quick cd\x02Quick cd\x03 command if you have full
837 command line and want to cd somewhere.
839 \bSelect group (+)\v
841 This is used to select (tag) a group of files. The
842 Midnight Commander will prompt for a regular expression
843 describing the group. When \x14Shell Patterns \v are enabled,
844 the regular expression is much like the filename globbing
845 in the shell (* standing for zero or more characters and ?
846 standing for one character). If \x14Shell Patterns\v is off,
847 then the tagging of files is done with normal regular
848 expressions (see ed (1)).
850 To mark directories instead of files, the expression must
851 start or end with a '/'.
853 \bUnselect group (\\)\v
855 Used for unselecting a group of files. This is the
856 opposite of the \x14"Select group"\v command.
858 \bQuit (F10, Shift-F10)\v
860 Terminate the Midnight Commander. Shift-F10 is used when
861 you want to quit and you are using the shell wrapper.
862 Shift-F10 will not take you to the last directory you
863 visited with the Midnight Commander, instead it will stay
864 at the directory where you started the Midnight Commander.
866 \x04[Quick cd]
867 Quick cd
869 This command is useful if you have a full command line and
870 want to \x01cd\x02The cd internal command\x03 somewhere without having to yank and paste
871 the command line. This command pops up a small dialog,
872 where you enter everything you would enter after \bcd \v on
873 the command line and then you press enter. This features
874 all the things that are already in the \x01internal cd
875 command.\x02The cd internal command\x03
877 \x04[Command Menu]
878 Command Menu
880 The \x01Directory tree\x02Directory Tree\x03 command shows a tree figure of the
881 directories.
883 The \x01Find file\x02Find File\x03 command allows you to search for a specific
884 file. The "Swap panels" command swaps the contents of the
885 two directory panels.
887 The "Panels on/off" command shows the output of the last
888 shell command. This works only on xterm and on Linux and
889 SCO console.
891 The Compare directories (C-x d) command compares the
892 directory panels with each other. You can then use the
893 Copy (F5) command to make the panels identical. There are
894 three compare methods. The quick method compares only file
895 size and file date. The thorough method makes a full
896 byte-by-byte compare. The thorough method is not available
897 if the machine does not support the mmap(2) system call.
898 The size-only compare method just compares the file sizes
899 and does not check the contents or the date times, it just
900 checks the file size.
902 The Command history command shows a list of typed
903 commands. The selected command is copied to the command
904 line. The command history can also be accessed by typing
905 M-p or M-n.
907 The \x01Directory hotlist (C-\)\x02Hotlist\x03 command makes changing of the
908 current directory to often used directories faster.
910 The \x01External panelize\x02External panelize\x03 allows you to execute an external
911 program, and make the output of that program the contents
912 of the current panel.
914 \x01Extension file edit\x02Extension File Edit\x03 command allows you to specify
915 programs to executed when you try to execute, view, edit
916 and do a bunch of other thing on files with certain
917 extensions (filename endings). The \x01Menu file edit\x02Menu File Edit\x03
918 command may be used for editing the user menu (which
919 appears by pressing F2).
921 \x04[Directory Tree]
922 Directory Tree
924 The Directory Tree command shows a tree figure of the
925 directories. You can select a directory from the figure
926 and the Midnight Commander will change to that directory.
928 There are two ways to invoke the tree. The real directory
929 tree command is available from Commands menu. The other
930 way is to select tree view from the Left or Right menu.
932 To get rid of long delays the Midnight Commander creates
933 the tree figure by scanning only a small subset of all the
934 directories. If the directory which you want to see is
935 missing, move to its parent directory and press C-r (or
936 F2).
938 You can use the following keys:
940 \x01General movement keys\x02General Movement Keys\x03 are accepted.
942 \bEnter.\v In the directory tree, exits the directory tree and
943 changes to this directory in the current panel. In the
944 tree view, changes to this directory in the other panel
945 and stays in tree view mode in the current panel.
947 \bC-r, F2 (Rescan).\v Rescan this directory. Use this when the
948 tree figure is out of date: it is missing subdirectories
949 or shows some subdirectories which don't exist any more.
951 \bF3 (Forget).\v Delete this directory from the tree figure.
952 Use this to remove clutter from the figure. If you want
953 the directory back to the tree figure press F2 in its
954 parent directory.
956 \bF4 (Static/Dynamic).\v Toggle between the dynamic navigation
957 mode (default) and the static navigation mode.
959 In the static navigation mode you can use the Up and Down
960 keys to select a directory. All known directories are
961 shown.
963 In the dynamic navigation mode you can use the Up and Down
964 keys to select a sibling directory, the Left key to move
965 to the parent directory, and the Right key to move to a
966 child directory. Only the parent, sibling and children
967 directories are shown, others are left out. The tree
968 figure changes dynamically as you traverse.
970 \bF5 (Copy).\v Copy the directory.
972 \bF6 (RenMov).\v Move the directory.
974 \bF7 (Mkdir).\v Make a new directory below this directory.
976 \bF8 (Delete).\v Delete this directory from the file system.
978 \bC-s, M-s.\v Search the next directory matching the search
979 string. If there is no such directory these keys will move
980 one line down.
982 \bC-h, Backspace.\v Delete the last character of the search
983 string.
985 \bAny other character.\v Add the character to the search
986 string and move to the next directory which starts with
987 these characters. In the tree view you must first activate
988 the search mode by pressing C-s. The search string is
989 shown in the mini status line.
991 The following actions are available only in the directory
992 tree. They aren't supported in the tree view.
994 \bF1 (Help).\v Invoke the help viewer and show this section.
996 \bEsc, F10.\v Exit the directory tree. Do not change the
997 directory.
999 The mouse is supported. A double-click behaves like Enter.
1000 See also the section on \x01mouse support.\x02Mouse Support\x03
1002 \x04[Find File]
1003 Find File
1005 The Find File feature first asks for the start directory
1006 for the search and the filename to be searched for. By
1007 pressing the Tree button you can select the start
1008 directory from the \x01directory tree\x02Directory Tree\x03 figure.
1010 The contents field accepts regular expressions similar to
1011 egrep(1). That means you have to escape characters with a
1012 special meaning to egrep with "\", e.g. if you search for
1013 "strcmp (" you will have to input "strcmp \(" (without the
1014 double quotes).
1016 You can start the search by pressing the Ok button. During
1017 the search you can stop from the Stop button and continue
1018 from the Start button.
1020 You can browse the filelist with the up and down arrow
1021 keys. The Chdir button will change to the directory of the
1022 currently selected file. The Again button will ask for the
1023 parameters for a new search. The Quit button quits the
1024 search operation. The Panelize button will place the found
1025 files to the current directory panel so that you can do
1026 additional operations on them (view, copy, move, delete
1027 and so on). After panelizing you can press C-r to return
1028 to the normal file listing.
1030 It is possible to have a list of directories that the Find
1031 File command should skip during the search (for example,
1032 you may want to avoid searches on a CDROM or on a NFS
1033 directory that is mounted across a slow link).
1035 Directories to be skipped should be set on the variable
1036 \bfind_ignore_dirs \v in the \bMisc \v section of your ~/.mc/ini
1037 file.
1039 Directory components should be separated with a colon,
1040 here is an example:
1042 [Misc]
1043 find_ignore_dirs=/cdrom:/nfs/wuarchive:/afs
1045 You may consider using the \x01External panelize\x02External panelize\x03 command for
1046 some operations. Find file command is for simple queries
1047 only, while using External panelize you can do as
1048 mysterious searches as you would like.
1050 \x04[External panelize]
1051 External panelize
1053 The External panelize allows you to execute an external
1054 program, and make the output of that program the contents
1055 of the current panel.
1057 For example, if you want to manipulate in one of the
1058 panels all the symbolic links in the current directory,
1059 you can use external panelization to run the following
1060 command:
1062 find . -type l -print
1063 Upon command completion, the directory contents of the
1064 panel will no longer be the directory listing of the
1065 current directory, but all the files that are symbolic
1066 links.
1068 If you want to panelize all of the files that have been
1069 downloaded from your ftp server, you can use this awk
1070 command to extract the file name from the transfer log
1071 files:
1073 awk '$9 ~! /incoming/ { print $9 }' < /usr/adm/xferlog
1075 You may want to save often used panelize commands under a
1076 descriptive name, so that you can recall them quickly. You
1077 do this by typing the command on the input line and
1078 pressing Add new button. Then you enter a name under which
1079 you want the command to be saved. Next time, you just
1080 choose that command from the list and do not have to type
1081 it again.
1083 \x04[Hotlist]
1084 Hotlist
1086 The Directory hotlist command shows the labels of the
1087 directories in the directory hotlist. The Midnight
1088 Commander will change to the directory corresponding to
1089 the selected label. From the hotlist dialog, you can
1090 remove already created label/directory pairs and add new
1091 one. For adding you may want to use a standalone Add to
1092 hotlist command (C-x h), which adds the current directory
1093 into the directory hotlist, as well. The user is prompted
1094 for a label for the directory.
1096 This makes cd to often used directories faster. You may
1097 consider using the CDPATH variable as described in
1098 \x01internal cd command\x02The cd internal command\x03 description.
1100 \x04[Extension File Edit]
1101 Extension File Edit
1103 This will invoke your editor on the file ~/.mc/ext. The
1104 format of this file is as follows (the format has changed
1105 with version 3.0):
1107 All lines starting with # or empty lines are thrown away.
1109 Lines starting in the first column should have following
1110 format:
1112 \x14keyword/descNL,\v i.e. everything after \x14keyword/\v until new
1113 line is \x14desc\v
1115 keyword can be:
1117 \x14shell\v (desc is then any extension (no wildcards), i.e.
1118 matches all the files *desc . Example: .tar matches *.tar)
1120 \x14regex\v (desc is a regular expression)
1122 \x14type\v (file matches this if `file %f` matches regular
1123 expression desc (the filename: part from `file %f` is
1124 removed))
1126 \x14default\v (matches any file no matter what desc is)
1128 Other lines should start with a space or tab and should be
1129 of the format:
1131 \x14keyword=commandNL\v (with no spaces around =), where \x14keyword\v
1132 should be:
1134 \x14Open\v (if the user presses Enter or doubleclicks it), \x14View\v
1135 (F3), \x14Edit\v (F4), \x14Drop\v (user drops some files on it) or any
1136 other user defined name (those will be listed in the
1137 extension dependent pop-up menu). \x14Icon\v name is reserved
1138 for future use by mc.
1140 \x14command\v is any one-line shell command, with the simple
1141 \x01macro substitution.\x02Macro Substitution\x03
1143 Target are evaluated from top to bottom (order is thus
1144 important). If some actions are missing, search continues
1145 as if this target didn't match (i.e. if a file matches the
1146 first and second entry and View action is missing in the
1147 first one, then on pressing F3 the View action from the
1148 second entry will be used. default should catch all the
1149 actions.
1151 \x04[Background jobs]
1152 Background jobs
1154 This lets you control the state of any background Midnight
1155 Commander process (only copy and move files operations can
1156 be done in the background). You can stop, restart and kill
1157 a background job from here.
1159 \x04[Menu File Edit]
1160 Menu File Edit
1162 The user menu is a menu of useful actions that can be
1163 customized by the user. When you access the user menu, the
1164 file .mc.menu from the current directory is used if it
1165 exists, but only if it is owned by user or root and is not
1166 world-writable. If no such file found, ~/.mc/menu is tried
1167 in the same way, and otherwise mc uses the default
1168 system-wide menu @prefix@/lib/mc/mc.menu.
1170 The format of the menu file is very simple. Lines that
1171 start with anything but space or tab are considered
1172 entries for the menu (in order to be able to use it like a
1173 hot key, the first character should be a letter). All the
1174 lines that start with a space or a tab are the commands
1175 that will be executed when the entry is selected.
1177 When an option is selected all the command lines of the
1178 option are copied to a temporary file in the temporary
1179 directory (usually /usr/tmp) and then that file is
1180 executed. This allows the user to put normal shell
1181 constructs in the menus. Also simple macro substitution
1182 takes place before executing the menu code. For more
1183 information, see \x01macro substitution.\x02Macro Substitution\x03
1185 Here is a sample mc.menu file:
1187 A       Dump the currently selected file
1188         od -c %f
1190 B       Edit a bug report and send it to root
1191         vi /tmp/mail.$$
1192         mail -s "Midnight Commander bug" root < /tmp/mail.$$
1194 M       Read mail
1195         emacs -f rmail
1197 N       Read Usenet news
1198         emacs -f gnus
1200 H       Call the info hypertext browser
1201         info
1203 J       Copy current directory to other panel recursively
1204         tar cf - . | (cd %D && tar xvpf -)
1206 K       Make a release of the current subdirectory
1207         echo -n "Name of distribution file: "
1208         read tar
1209         ln -s %d `dirname %d`/$tar 
1210         cd ..
1211         tar cvhf ${tar}.tar $tar
1213 = f *.tar.gz | f *.tgz & t n
1214 X       Extract the contents of a compressed tar file
1215         tar xzvf %f
1217 \bDefault Conditions\v
1219 Each menu entry may be preceded by a condition. The
1220 condition must start from the first column with a '='
1221 character. If the condition is true, the menu entry will
1222 be the default entry.
1224 Condition syntax:       = <sub-cond>
1225   or:                   = <sub-cond> | <sub-cond> ...
1226   or:                   = <sub-cond> & <sub-cond> ... 
1228 Sub-condition is one of following:
1230   f <pattern>           current file matching pattern?
1231   F <pattern>           other file matching pattern?
1232   d <pattern>           current directory matching pattern?
1233   D <pattern>           other directory matching pattern?
1234   t <type>              current file of type?
1235   T <type>              other file of type?
1236   ! <sub-cond>          negate the result of sub-condition
1238 Pattern is a normal shell pattern or a regular expression,
1239 according to the shell patterns option. You can override
1240 the global value of the shell patterns option by writing
1241 "shell_patterns=x" on the first line of the menu file
1242 (where "x" is either 0 or 1).
1244 Type is one or more of the following characters:
1246   n     not directory
1247   r     regular file
1248   d     directory
1249   l     link
1250   c     char special
1251   b     block special
1252   f     fifo
1253   s     socket
1254   x     executable
1255   t     tagged
1257 For example 'rlf' means either regular file, link or fifo.
1258 The 't' type is a little special because it acts on the
1259 panel instead of the file. The condition '=t t' is true if
1260 there are tagged files in the current panel and false if
1261 not.
1263 If the condition starts with '=?' instead of '=' a debug
1264 trace will be shown whenever the value of the condition is
1265 calculated.
1267 The conditions are calculated from left to right. This
1268 means
1269         = f *.tar.gz | f *.tgz & t n
1270 is calculated as
1271         ( (f *.tar.gz) | (f *.tgz) ) & (t n)
1273 Here is a sample of the use of conditions:
1275 = f *.tar.gz | f *.tgz & t n
1276 L       List the contents of a compressed tar-archive
1277         gzip -cd %f | tar xvf -
1279 \bAddition Conditions\v
1281 If the condition begins with '+' (or '+?') instead of '='
1282 (or '=?') it is an addition condition. If the condition is
1283 true the menu entry will be included in the menu. If the
1284 condition is false the menu entry will not be included in
1285 the menu.
1287 You can combine default and addition conditions by
1288 starting condition with '+=' or '=+' (or '+=?' or '=+?' if
1289 you want debug trace). If you want to use two different
1290 conditions, one for adding and another for defaulting, you
1291 can precede a menu entry with two condition lines, one
1292 starting with '+' and another starting with '='.
1294 Comments are started with '#'. The additional comment
1295 lines must start with '#', space or tab.
1297 \x04[Options Menu]
1298 Options Menu
1300 The Midnight Commander has some options that may be
1301 toggled on and off in several dialogs which are accessible
1302 from this menue. Options are enabled if they have an
1303 asterisk or "x" in front of them.
1305 The \x01Configuration\x02Configuration\x03 command pops up a dialog from which you
1306 can change most of settings of the Midnight Commander.
1308 The \x01Display bits\x02Display bits\x03 command pops up a dialog from which you
1309 may select which characters is your terminal able to
1310 display.
1312 The \x01Confirmation\x02Confirmation\x03 command pops up a dialog from which you
1313 specify which actions you want to confirm.
1315 The \x01Learn keys\x02Learn keys\x03 command pops up a dialog from which you
1316 test some keys which are not working on some terminals and
1317 you may fix them.
1319 The \x01Virtual FS\x02Virtual FS\x03 command pops up a dialog from which you
1320 specify some VFS related options.
1322 The \x01Layout\x02Layout\x03 command pops up a dialog from which you specify
1323 a bunch of options how mc looks like on the screen.
1325 The \x01Save setup\x02Save Setup\x03 command saves the current settings of the
1326 Left, Right and Options menus. A small number of other
1327 settings is saved, too.
1329 \x04[Configuration]
1330 Configuration
1332 The options in this dialog are divided into three groups:
1333 Panel Options, Pause after run and Other Options.
1335 \bPanel Options\v
1337 \x14Show Backup Files.\v By default the Midnight Commander
1338 doesn't show files ending in '~' (like GNU's ls option
1339 -B).
1341 \x14Show Hidden Files.\v By default the Midnight Commander will
1342 show all files that start with a dot (like ls -a).
1344 \x14Mark moves down.\v By default when you mark a file (with
1345 either C-t or the Insert key) the selection bar will move
1346 down.
1348 \x14Drop down menues.\v When this option is enabled, when you
1349 press the \bF9\v key, the pull down menus will be activated,
1350 else, you will only be presented with the menu title, and
1351 you will have to select the entry with the arrow keys or
1352 the first letter and from there select your option in the
1353 menu.
1355 \x14Mix all files.\v When this option is enabled, all files and
1356 directories are shown mixed together. If the option is
1357 off, directories (and links to directories) are shown at
1358 the beginning of the listing, and other files afterwards.
1360 \x14Fast directory reload.\v This option is off by default. If
1361 you activate the fast reload, the Midnight Commander will
1362 use a trick to determine if the directory contents have
1363 changed. The trick is to reload the directory only if the
1364 i-node of the directory has changed; this means that
1365 reloads only happen when files are created or deleted. If
1366 what changes is the i-node for a file in the directory
1367 (file size changes, mode or owner changes, etc) the
1368 display is not updated. In these cases, if you have the
1369 option on, you have to rescan the directory manually (with
1370 C-r).
1372 \bPause after run\v
1374 After executing your commands, the Midnight Commander can
1375 pause, so that you can examine the output of the command.
1376 There are three possible settings for this variable: \x14Never\v
1377 Means that you do not want to see the output of your
1378 command. If you are using the Linux or SCO console or an
1379 xterm, you will be able to see the output of the command
1380 by typing C-o. \x14"On dumb terminals"\v You will get the pause
1381 message on terminals that are not capable of showing the
1382 output of the last command executed (any terminal that is
1383 not an xterm or the Linux console). \x14Always\v The program
1384 will pause after executing all of your commands.
1386 \bOther Options\v
1388 \x14Verbose operation.\v This toggles whether the file Copy,
1389 Rename and Delete operations are verbose (i.e., display a
1390 dialog box for each operation). If you have a slow
1391 terminal, you may wish to disable the verbose operation.
1392 It is automatically turned off if the speed of your
1393 terminal is less than 9600 bps.
1395 \x14Compute totals.\v If this option is enabled, the Midnight
1396 Commander computes total byte sizes and total number of
1397 files prior to any Copy, Rename and Delete operations.
1398 This will provide you with a more accurate progress bar at
1399 the expense of some speed. This option has no effect, if
1400 \x14Verbose operation\v is disabled.
1402 \x14Shell Patterns.\v By default the Select, Unselect and Filter
1403 commands will use shell-like regular expressions. The
1404 following conversions are performed to achieve this: the
1405 '*' is replaced by '.*' (zero or more characters); the '?'
1406 is replaced by '.' (exactly one character) and '.' by the
1407 literal dot. If the option is disabled, then the regular
1408 expressions are the ones described in ed(1).
1410 \x14Auto Save Setup.\v If this option is enabled, when you exit
1411 the Midnight Commander the configurable options of the
1412 Midnight Commander are saved in the ~/.mc/ini file.
1414 \x14Auto menus.\v If this option is enabled, the user menu will
1415 be invoked at startup. Useful for building menus for
1416 non-unixers.
1418 \x14Use internal editor.\v If this option is enabled, the
1419 built-in file editor is used to edit files. If the option
1420 is disabled, the editor specified in the \bEDITOR\v
1421 environment variable is used. If no editor is specified,
1422 \bvi\v is used. See the section on the \x01internal file editor.\x02Internal File Editor\x03
1424 \x14Use internal viewer.\v If this option is enabled, the
1425 built-in file viewer is used to view files. If the option
1426 is disabled, the pager specified in the \bPAGER\v environment
1427 variable is used. If no pager is specified, the \bview\v
1428 command is used. See the section on the \x01internal file
1429 viewer.\x02Internal File Viewer\x03
1431 \x14Complete: show all.\v By default the Midnight Commander pops
1432 up all possible \x01completions\x02Completion\x03 if the completion is ambiguous
1433 if you press \bM-Tab\v for the second time, for the first time
1434 it just completes as much as possible and in the case of
1435 ambiguity beeps. If you want to see all the possible
1436 completions already after the first \bM-Tab\v pressing, enable
1437 this option.
1439 \x14Rotating dash.\v If this option is enabled, the Midnight
1440 Commander shows a rotating dash in the upper right corner
1441 as a work in progress indicator.
1443 \x14Lynx-like motion.\v If this option is enabled, you may use
1444 the arrows keys to automatically chdir if the current
1445 selection is a subdirectory and the shell command line is
1446 empty. By default, this setting is off.
1448 \x14Advanced chown.\v If this option is enabled, the \x01Advanced
1449 Chown\x02Advanced Chown\x03 command will be invoked if you run the \x01Chmod\x02Chmod\x03 or
1450 \x01Chown\x02Chown\x03 command.
1452 \x14Cd follows links.\v This option, if set, causes the Midnight
1453 Commander to follow the logical chain of directories when
1454 changing current directory either in the panels, or using
1455 the cd command. This is the default behavior of bash. When
1456 unset, the Midnight Commander follows the real directory
1457 structure, so cd .. if you've entered that directory
1458 through a link will move you to the current directory's
1459 real parent and not to the directory where the link was
1460 present.
1462 \x14Safe delete.\v If this option is enabled, deleting files
1463 unintentionally will get more difficult. The default
1464 selection in the confirmation dialog changes from the
1465 "Yes" to the "No" button and deletion of non empty
1466 direcories has to be confirmed by entering the word \x14yes\v By
1467 default this option is disabled.
1469 \x04[Display bits]
1470 Display bits
1472 This is used to configure the range of visible characters
1473 on the screen. This setting may be 7-bits if your
1474 terminal/curses supports only seven output bits,
1475 ISO-8859-1 displays all the characters in the ISO-8859-1
1476 map and full 8 bits is for those terminals that can
1477 display full 8 bit characters.
1479 \x04[Confirmation]
1480 Confirmation
1482 In this menu you configure the confirmation options for
1483 file deletion, overwriting, execution by pressing enter
1484 and quitting the program.
1486 \x04[Learn keys]
1487 Learn keys
1489 This dialog lets you test if your keys F1-F20, Home, End,
1490 etc. work properly on your terminal. They often don't,
1491 since many terminal databases are broken.
1493 You can move around with the Tab key, with the vi moving
1494 keys ('h' left, 'j' down, 'k' up and 'l' right) and after
1495 you press any arrow key once (this will mark it OK), then
1496 you can use that key as well.
1498 You test them just by pressing each of them. As soon as
1499 you press a key and the key works properly, OK should
1500 appear next to the name of that key. Once a key is marked
1501 OK it starts to work as usually, e.g. F1 for the first
1502 time will just check that F1 works OK, but from that time
1503 on it will show help. The same applies to the arrow keys.
1504 Tab key should be working always.
1506 If some keys do not work properly, then you won't see OK
1507 after the key name after you have pressed that key. You
1508 may then want to fix it. You do it by pressing the button
1509 of that key (either by mouse or using Tab and Enter). Then
1510 a red message will appear and you will be asked to type
1511 that key. If you want to abort this, press just Esc and
1512 wait until the message disappears. Otherwise type the key
1513 you're asked to type and also wait until the dialog
1514 disappears.
1516 When you finish with all the keys, you may want either to
1517 Save your key fixes into your ~/.mc/ini file into the
1518 [terminal:TERM] section (where TERM is the name of your
1519 current terminal) or to discard them. If all your keys
1520 were working properly and you had not to fix any key, then
1521 (of course) no saving will occur.
1523 \x04[Virtual FS]
1524 Virtual FS
1526 This option gives you control over the settings of the
1527 \x01Virtual File System \x02Virtual File System\x03 information cache.
1529 The Midnight Commander keeps in memory the information
1530 related to some of the virtual file systems to speed up
1531 the access to the files in the file system (for example,
1532 directory listings fetched from ftp servers).
1534 Moreover in order to access the contents of compressed
1535 files (for eaxample, compressed tar files) the Midnight
1536 Commander has to create a temporary uncompressed file on
1537 your disk.
1539 Since both the information in memory and the temporary
1540 files on disk take up resources, you may want to tune the
1541 parameters of the cached information to decrease your
1542 resource usage or to maximize the speed of access to
1543 frequently used file systems.
1545 The Tar file system is quite clever about how it handles
1546 tar files: it just loads the directory entries and when it
1547 needs to use the information contained in the tar file, it
1548 goes and grab it.
1550 In the wild, tar files are usually kept compressed (plain
1551 tar files are species in extinction), and because of the
1552 nature of those files (the directory entries for the tar
1553 files is not there waiting for us to be loaded), the tar
1554 file system has to uncompress the file on the disk in a
1555 temporary location and then access the uncompressed file
1556 as a regular tar file.
1558 Now, since we all love to browse files and tar files all
1559 over the disk, it's common that you will leave a tar file
1560 and the re-enter it later. Since uncompression is slow,
1561 the Midnight Commander will cache the information in
1562 memory for a limited amount of time, after you hit the
1563 timeout, all of the resources associated with the file
1564 system will be freed. The default timeout is set to one
1565 minute.
1567 The \x01FTP File System\x02FTP File System\x03 keeps the directory listing it
1568 fetches from a ftp server in a cache. The cache expire
1569 time is configurable with the \x14ftpfs directory cache
1570 timeout\v option. A low value for this option may slow down
1571 every operation on the ftp file System because every
1572 operation is accompanied by a query of the ftp server.
1574 Moreover you can define a proxy host for doing ftp
1575 transfers and configure the Midnight Commander to always
1576 use the proxy host. See the section on \x01FTP File System\x02FTP File System\x03
1577 for more information.
1579 \x04[Layout]
1580 Layout
1582 The layout dialog gives you a possibility to change the
1583 general layout of screen. You can specify whether the
1584 menubar, the command prompt, the hintbar and the function
1585 keybar are visible. On the Linux or SCO console you can
1586 specify how many lines are shown in the output window.
1588 The rest of the screen area is used for the two directory
1589 panels. You can specify whether the area is split to the
1590 panels in vertical or horizontal direction. The split can
1591 be equal or you can specify an unequal split.
1593 By default all contents of the directory panels are
1594 displayed with the same color, but you can specify whether
1595 \x14permissions \v and \x14file types\v are highlighted with special
1596 \x01Colors.\x02Colors\x03 If permission highlighting is enabled, the parts
1597 of the \x14perm\v and \x14mode\v \x01display fields\x02Listing Mode...\x03 which are valid for
1598 the user running Midnight Commander are highlighted with
1599 the color defined with the \x14selected\v keyword. If file type
1600 highlighting is enabled, files are colored according to
1601 their file type (e.g. directory, core file, executable,
1602 ...).
1604 If the \x14Show Mini-Status\v option is enabled, one line of
1605 status information about the currently selected item is
1606 showed at the bottom of the panels.
1608 \x04[Save Setup]
1609 Save Setup
1611 At startup the Midnight Commander will try to load
1612 initialization information from the ~/.mc/ini file. If
1613 this file doesn't exist, it will load the information from
1614 the system-wide configuration file, located in
1615 @prefix@/lib/mc/mc.ini. If the system-wide configuration
1616 file doesn't exist, MC uses the default settings.
1618 The \x14Save Setup\v command creates the ~/.mc/ini file by
1619 saving the current settings of the \x01Left, Right\x02Left and Right Menus\x03 and
1620 \x01Options\x02Options Menu\x03 menus.
1622 If you activate the \x14auto save setup\v option, MC will always
1623 save the current settings when exiting.
1625 There also exist settings which can't be changed from the
1626 menus. To change these settings you have to edit the setup
1627 file with your favorite editor. See the section on \x01Special
1628 Settings\x02Special Settings\x03 for more information.
1630 \x04[]
1633 \x04[Executing operating system commands]
1634 Executing operating system commands
1636 You may execute commands by typing them directly in the
1637 Midnight Commander's input line, or by selecting the
1638 program you want to execute with the selection bar in one
1639 of the panels and hitting Enter.
1641 If you press Enter over a file that is not executable, the
1642 Midnight Commander checks the extension of the selected
1643 file against the extensions in the \x01Extensions File.\x02Extension File Edit\x03 If a
1644 match is found then the code associated with that
1645 extension is executed. A very simple \x01macro expansion\x02Macro Substitution\x03
1646 takes place before executing the command.
1648 \x04[The cd internal command]
1649 The cd internal command
1651 The \x14cd\v command is interpreted by the Midnight Commander,
1652 it is not passed to the command shell for execution. Thus
1653 it may not handle all of the nice macro expansion and
1654 substitution that your shell does, although it does some
1655 of them:
1657 \x14Tilde substitution\v The (~) will be substituted with your
1658 home directory, if you append a username after the tilde,
1659 then it will be substituted with the login directory of
1660 the the specified user.
1662 For example, ~guest is the home directory for the user
1663 guest, while ~/guest is the directory guest in your home
1664 directory.
1666 \x14Previous directory\v You can jump to the directory you were
1667 previously by using the special directory name '-' like
1668 this: \bcd -\v
1670 \x14CDPATH directories\v If the directory specified to the \bcd \v
1671 command is not in the current directory, then The Midnight
1672 Commander uses the value in the environment variable
1673 \bCDPATH\v to search for the directory in any of the named
1674 directories.
1676 For example you could set your \bCDPATH\v variable to
1677 ~/src:/usr/src, allowing you to change your directory to
1678 any of the directories inside the ~/src and /usr/src
1679 directories, from any place in the file system by using
1680 it's relative name (for example cd linux could take you to
1681 /usr/src/linux).
1683 \x04[Macro Substitution]
1684 Macro Substitution
1687 When accessing a \x01user menu, \x02Menu File Edit\x03 or executing an \x01extension
1688 dependent command,\x02Extension File Edit\x03 or running a command from the command
1689 line input, a simple macro substitution takes place.
1691 The macros are:
1693 \x14"%f"\v The current file name.
1695 \x14"%d"\v The current directory name.
1697 \x14"%F"\v The current file in the unselected panel.
1699 \x14"%D"\v The directory name of the unselected panel.
1701 \x14"%t"\v The currently tagged files.
1703 \x14"%T"\v The tagged files in the unselected panel.
1705 \x14"%u"\v and \x14"%U"\v Similar to the %t and %T macros, but in
1706 addition the files are untagged. You can use this macro
1707 only once per menu file entry or extension file entry,
1708 because next time there will be no tagged files.
1710 \x14"%s"\v and \x14"%S"\v The selected files: The tagged files if
1711 there are any. Otherwise the current file.
1713 \x14"%q"\v Dropped files. In all places except in the Drop
1714 action of the \x01mc.ext file,\x02Extension File Edit\x03 this will become a null
1715 string, in the Drop action it will be replaced with a
1716 space separated list of files that were dropped on the
1717 file.
1719 \x14"%cd"\v This is a special macro that is used to change the
1720 current directory to the directory specified in front of
1721 it. This is used primarily as an interface to the \x01Virtual
1722 File System.\x02Virtual File System\x03
1724 \x14"%view"\v This macro is used to invoke the internal viewer.
1725 This macro can be used alone, or with arguments. If you
1726 pass any arguments to this macro, they should be enclosed
1727 in brackets. The arguments are: \x14ascii\v to force the viewer
1728 into ascii mode; \x14hex\v to force the viewer into hex mode;
1729 \x14nroff\v to tell the viewer that it should interpret the bold
1730 and underline sequences of nroff; \x14unformated\v to tell the
1731 viewer to not interpret nroff commands for making the text
1732 bold or underlined.
1734 \x14"%%"\v The % character
1736 \x14"%{some text}"\v Prompt for the substitution. An input box
1737 is shown and the text inside the braces is used as a
1738 prompt. The macro is substituted by the text typed by the
1739 user. The user can press ESC or F10 to cancel. This macro
1740 doesn't work on the command line yet.
1742 \x04[The subshell support]
1743 The subshell support
1745 The subshell support is a compile time option, that works
1746 with the shells: bash, tcsh and zsh.
1748 When the subshell code is activated the Midnight Commander
1749 will spawn a concurrent copy of your shell (the one
1750 defined in the \bSHELL\v variable and if it is not defined,
1751 then the one in the /etc/passwd file) and run it in a
1752 pseudo terminal, instead of invoking a new shell each time
1753 you execute a command, the command will be passed to the
1754 subshell as if you had typed it. This also allows you to
1755 change the environment variables, use shell functions and
1756 define aliases that are valid until you quit the Midnight
1757 Commander.
1759 If you are using \bbash\v you can specify startup commands for
1760 the subshell in your ~/.mc/bashrc file and special
1761 keyboard maps in the ~/.mc/inputrc file. \btcsh \v users may
1762 specify startup commands in the ~/.mc/tcshrc file.
1764 When the subshell code is used, you can suspend
1765 applications at any time with the sequence C-o and jump
1766 back to the Midnight Commander, if you interrupt an
1767 application, you will not be able to run other external
1768 commands until you quit the application you interrupted.
1770 An extra added feature of using the subshell is that the
1771 prompt displayed by the Midnight Commander is the same
1772 prompt that you are currently using in your shell.
1774 The OPTIONS section has more information on how you can
1775 control the subshell code.
1777 \x04[Controlling Midnight Commander]
1778 Controlling Midnight Commander
1780 The Midnight Commander defines an environment variable
1781 MC_CONTROL_FILE. The commands executed by MC may give
1782 instructions to MC by writing to the file specified by
1783 this variable. This is only available if you compiled your
1784 copy of the Midnight Commander with the WANT_PARSE option.
1786 The following instructions are supported.
1788 clear_tags              Clear all tags.
1789 tag <filename>          Tag specified file.
1790 untag <filename>        Untag specified file.
1791 select <filename>       Move pointer to file.
1792 change_panel            Switch between panels.
1793 cd <path>               Change directory.
1795 If the first letter of the instruction is in lower case it
1796 operates on the current panel. If the letter is in upper
1797 case the instruction operates on the other panel. The
1798 additional letters must be in lower case. Instructions
1799 must be separated by exactly one space, tab or newline.
1800 The instructions don't work in the Info, Tree and Quick
1801 views. The first error causes the rest to be ignored.
1803 \x04[Chmod]
1804 Chmod
1806 The Chmod window is used to change the attribute bits in a
1807 group of files and directories. It can be invoked with the
1808 C-x c key combination.
1810 The Chmod window has two parts - \x14Permissions\v and \x14File\v
1812 In the File section are displayed the name of the file or
1813 directory and its permissions in octal form, as well as
1814 its owner and group.
1816 In the Permissions section there is a set of check buttons
1817 which correspond to the file attribute bits. As you change
1818 the attribute bits, you can see the octal value change in
1819 the File section.
1821 To move between the widgets (buttons and check buttons)
1822 use the \x14arrow keys\v or the \x14Tab\v key. To change the state of
1823 the check buttons or to select a button use \x14Space.\v You can
1824 also use the hotkeys on the buttons to quickly activate
1825 that selection (they are the highlit letters on the
1826 buttons).
1828 To set the attribute bits, use the Enter key.
1830 When working with a group of files or directories, you
1831 just click on the bits you want to set or clear. Once you
1832 have selected the bits you want to change, you select one
1833 of the action buttons (Set marked or Clear marked).
1835 Finally, to set the attributes exactly to those specified,
1836 you can use the \b[Set all]\v button, which will act on all
1837 the tagged files.
1839 \b[Marked all]\v set only marked attributes to all selected
1840 files
1842 \b[Set marked]\v set marked bits in attributes of all selected
1843 files
1845 \b[Clean marked]\v clear marked bits in attributes of all
1846 selected files
1848 \b[Set]\v set the attributes of one file
1850 \b[Cancel]\v cancel the Chmod command
1852 \x04[Chown]
1853 Chown
1855 The Chown command is used to change the owner/group of a
1856 file. The hot key for this command is C-x o.
1858 \x04[Advanced Chown]
1859 Advanced Chown
1861 The Advanced Chown command is the \x01Chmod\x02Chmod\x03 and \x01Chown\x02Chown\x03 command
1862 combined into one window. You can change the permissions
1863 and owner/group of files at once.
1865 \x04[File Operations]
1866 File Operations
1868 When you copy, move or delete files the Midnight Commander
1869 shows the file operations dialog. It shows the files
1870 currently being operated on and there are at most three
1871 progress bars. The file bar tells how big part of the
1872 current file has been copied so far. The count bar tells
1873 how many of tagged files have been handled so far. The
1874 bytes bar tells how big part of total size of the tagged
1875 files has been handled so far. If the verbose option is
1876 off the file and bytes bars are not shown.
1878 There are two buttons at the bottom of the dialog.
1879 Pressing the Skip button will skip the rest of the current
1880 file. Pressing the Abort button will abort the whole
1881 operation, the rest of the files are skipped.
1883 There are three other dialogs which you can run into
1884 during the file operations.
1886 The error dialog informs about error conditions and has
1887 three choices. Normally you select either the Skip button
1888 to skip the file or the Abort button to abort the
1889 operation altogether. You can also select the Retry button
1890 if you fixed the problem from another terminal.
1892 The replace dialog is shown when you attempt to copy or
1893 move a file on the top of an existing file. The dialog
1894 shows the dates and sizes of the both files. Press the Yes
1895 button to overwrite the file, the No button to skip the
1896 file, the alL button to overwrite all the files, the nonE
1897 button to never overwrite and the Update button to
1898 overwrite if the source file is newer than the target
1899 file. You can abort the whole operation by pressing the
1900 Abort button.
1902 The recursive delete dialog is shown when you try to
1903 delete a directory which is not empty. Press the Yes
1904 button to delete the directory recursively, the No button
1905 to skip the directory, the alL button to delete all the
1906 directories and the nonE button to skip all the non-empty
1907 directories. You can abort the whole operation by pressing
1908 the Abort button. If you selected the Yes or alL button
1909 you will be asked for a confirmation. Type "yes" only if
1910 you are really sure you want to do the recursive delete.
1912 If you have tagged files and perform an operation on them
1913 only the files on which the operation succeeded are
1914 untagged. Failed and skipped files are left tagged.
1916 \x04[Mask Copy/Rename]
1917 Mask Copy/Rename
1919 The copy/move operations lets you translate the names of
1920 files in an easy way. To do it, you have to specify the
1921 correct source mask and usually in the trailing part of
1922 the destination specify some wildcards. All the files
1923 matching the source mask are copied/renamed according to
1924 the target mask. If there are tagged files, only the
1925 tagged files matching the source mask are renamed.
1927 There are other option which you can set:
1929 Follow links tells whether make the symlinks and hardlinks
1930 in the source directory (recursively in subdirectories)
1931 new links in the target directory or whether would you
1932 like to copy their content.
1934 Dive into subdirs tells what to do if in the target
1935 directory exists a directory with the same name as the
1936 file/directory being copied. The default action is to copy
1937 it's content into that directory, by enabling this you can
1938 copy the source directory into that directory. Perhaps an
1939 example will help:
1941 You want to copy content of a directory foo to /bla/foo,
1942 which is an already existing directory. Normally (when
1943 Dive is not set), mc would copy it exactly into /bla/foo.
1944 By enabling this option you will copy the content into
1945 /bla/foo/foo, because the directory already exists.
1947 Preserve attributes tells whether to preserve the original
1948 files' permissions, timestamps and if you are root whether
1949 to preserve the original files' UID and GID. If this
1950 option is not set the current value of the umask will be
1951 respected.
1953 \b"Use shell patterns on"\v
1955 When the shell patterns option is on you can use the '*'
1956 and '?' wildcards in the source mask. They work like they
1957 do in the shell. In the target mask only the '*' and
1958 '\<digit>' wildcards are allowed. The first '*' wildcard
1959 in the target mask corresponds to the first wildcard group
1960 in the source mask, the second '*' corresponds to the
1961 second group and so on. The '\1' wildcard corresponds to
1962 the first wildcard group in the source mask, the '\2'
1963 wildcard corresponds to the second group and so on all the
1964 way up to '\9'. The '\0' wildcard is the whole filename of
1965 the source file.
1967 Two examples:
1969 If the source mask is "*.tar.gz", the destination is
1970 "/bla/*.tgz" and the file to be copied is "foo.tar.gz",
1971 the copy will be "foo.tgz" in "/bla".
1973 Let's suppose you want to swap basename and extension so
1974 that "file.c" will become "c.file" and so on. The source
1975 mask for this is "*.*" and the destination is "\2.\1".
1977 \b"Use shell patterns off"\v
1979 When the shell patterns option is off the MC doesn't do
1980 automatic grouping anymore. You must use '\(...\)'
1981 expressions in the source mask to specify meaning for the
1982 wildcards in the target mask. This is more flexible but
1983 also requires more typing. Otherwise target masks are
1984 similar to the situation when the shell patterns option is
1987 Two examples:
1989 If the source mask is "^\(.*\)\.tar\.gz$", the destination
1990 is "/bla/*.tgz" and the file to be copied is "foo.tar.gz",
1991 the copy will be "/bla/foo.tgz".
1993 Let's suppose you want to swap basename and extension so
1994 that "file.c" will become "c.file" and so on. The source
1995 mask for this is "^\(.*\)\.\(.*\)$" and the destination is
1996 "\2.\1".
1998 \b"Case Conversions"\v
2000 You can also change the case of the filenames. If you use
2001 '\u' or '\l' in the target mask the next character will be
2002 converted to uppercase or lowercase correspondingly.
2004 If you use '\U' or '\L' in the target mask the next
2005 characters will be converted to uppercase or lowercase
2006 correspondingly up to the next '\E' or next '\U', '\L' or
2007 the end of the file name.
2009 The '\u' and '\l' are stronger than '\U' and '\L'.
2011 For example, if the source mask is '*' (shell patterns on)
2012 or '^\(.*\)$' (shell patterns off) and the target mask is
2013 '\L\u*' the file names will be converted to have initial
2014 upper case and otherwise lower case.
2016 You can also use '\' as a quote character. For example,
2017 '\\' is a backslash and '\*' is an asterisk.
2019 \x04[Internal File Viewer]
2020 Internal File Viewer
2022 The internal file viewer provides two display modes: ASCII
2023 and hex. To toggle between modes, use the F4 key. If you
2024 have the GNU gzip program installed, it will be used to
2025 automatically decompress the files on demand.
2027 The viewer will try to use the best method provided by
2028 your system or the file type to display the information.
2029 The internal file viewer will interpret some string
2030 sequences to set the bold and underline attributes, thus
2031 making a pretty display of your files.
2033 When in hex mode, the search function accepts text in
2034 quotes as well as hexadecimal constants.
2036 You can mix quoted text with constants like this: "String"
2037 0xFE 0xBB "more text". Text between constants and quoted
2038 text is just ignored.
2040 Some internal details about the viewer: On systems that
2041 provide the mmap(2) system call, the program maps the file
2042 instead of loading it; if the system does not provide the
2043 mmap(2) system call or the file matches an action that
2044 requires a filter, then the viewer will use it's growing
2045 buffers, thus loading only those parts of the file that
2046 you actually access (this includes compressed files).
2048 Here is a listing of the actions associated with each key
2049 that the Midnight Commander handles in the internal file
2050 viewer.
2052 \bF1\v Invoke the builtin hypertext help viewer.
2054 \bF2\v Toggle the wrap mode.
2056 \bF4\v Toggle the hex mode.
2058 \bF5\v Goto line. This will prompt you for a line number and
2059 will display that line.
2061 \bF6, /. \v Regular expression search.
2063 \b?,\v Reverse regular expression search.
2065 \bF7\v Normal search / hex mode search.
2067 \bC-s.\v Start normal search if there was no previous search
2068 expression else find next match.
2070 \bC-r.\v Start reverse search if there was no previous search
2071 expression else find next match.
2073 \bn.\v Find next match.
2075 \bF8\v Toggle Raw/Parsed mode: This will show the file as
2076 found on disk or if a processing filter has been specified
2077 in the mc.ext file, then the output from the filter.
2078 Current mode is always the other than written on the
2079 button label, since on the button is the mode which you
2080 enter by that key.
2082 \bF9\v Toggle the format/unformat mode: when format mode is on
2083 the viewer will interpret some string sequences to show
2084 bold and underline with different colors. Also, on button
2085 label is the other mode than current.
2087 \bF10, Esc.\v Exit the internal file viewer.
2089 \bnext-page, space, C-v.\v Scroll one page forward.
2091 \bprev-page, M-v, C-b, backspace.\v Scroll one page backward.
2093 \bdown-key\v Scroll one line forward.
2095 \bup-key\v Scroll one line backward.
2097 \bC-l\v Refresh the screen.
2099 \b!\v Spawn a shell in the currently working directory.
2101 \b"[n] m"\v Set the mark n.
2103 \b"[n] r"\v Jump to the mark n.
2105 \bC-f\v Jump to the next file.
2107 \bC-b \v Jump to the previous file.
2109 \bM-r \v Toggle the ruler.
2111 It's possible to instruct the file viewer how to display a
2112 file, look at the \x01Extension File Edit section\x02Extension File Edit\x03\x04[Internal File Editor]
2113 Internal File Editor
2115 The internal file editor provides most of the features of
2116 common full screen editors. It is invoked using \bF4\v
2117 provided the \x14use_internal_edit\v option is set in the
2118 initialization file. It has an extensible file size limit
2119 of sixteen megabytes and edits binary files flawlessly.
2121 The features it presently supports are: Block copy, move,
2122 delete, cut, paste; \x14"key for key undo"; \v pull-down menus;
2123 file insertion; macro definition; regular expression
2124 search and replace (and our own scanf-printf search and
2125 replace); shift-arrow MSW-MAC text highlighting (for the
2126 linux console only); insert-overwrite toggle; and an
2127 option to pipe text blocks through shell commands like
2128 indent.
2130 The editor is very easy to use and requires no tutoring.
2131 To see what keys do what, just consult the appropriate
2132 pull-down menu. Other keys are: Shift movement keys do
2133 text highlighting. \bCtrl-Ins\v copies to the file
2134 \bcooledit.clip and \v \bShift-Ins\v pastes from cooledit.clip.
2135 \bShift-Del \v cuts to \bcooledit.clip, \v and \bCtrl-Del\v deletes
2136 highlighted text. The completion key also does a Return
2137 with an automatic indent. Mouse highlighting also works,
2138 and you can override the mouse as usual by holding down
2139 the shift key while dragging the mouse to let normal
2140 terminal mouse highlighting work.
2142 To define a macro, press \bCtrl-R\v and then type out the key
2143 strokes you want to be executed. Press \bCtrl-R\v again when
2144 finished. You can then assign the macro to any key you
2145 like by pressing that key. The macro is executed when you
2146 press \bCtrl-A and then the assigned key. The macro is also
2147 executed if\v you press Meta, Ctrl, or Esc and the assigned
2148 key, provided that the key is not used for any other
2149 function. Once defined, the macro commands go into the
2150 file \bcedit/cooledit.macros\v in your home directory. You can
2151 delete a macro by deleting the appropriate line in this
2152 file.
2154 \bF19 will format C code when it is highlighted. For this\v to
2155 work, make an executable file called \bcedit/edit.indent.rc\v
2156 in your home directory containing the following:
2158 #!/bin/sh
2159 /usr/bin/indent -kr -pcs ~/cedit/cooledit.block >& /dev/null
2160 cat /dev/null > ~/cedit/cooledit.error
2162 You can use scanf search and replace to search and replace
2163 a C format string. First take a look at the \bsscanf\v and
2164 \bsprintf man pages to see what a format string\v is and how
2165 it works. An example is as follows: Suppose you want to
2166 replace all occurences of say, an open bracket, three
2167 comma seperated numbers, and a close bracket, with the
2168 word \x14apples, \v the third number, the word \x14oranges\v and then
2169 the second number, I would fill in the Replace dialog box
2170 as follows:
2172  Enter search string
2173 (%d,%d,%d)
2174  Enter replace string
2175 apples %d oranges %d
2176  Enter replacement argument order
2179 The last line specifies that the third and then the second
2180 number are to be used in place of the first and second.
2182 It is advisable to use this feature with Prompt on replace
2183 on, because a match is thought to be found whenever the
2184 number of arguments found matches the number given, which
2185 is not always a real match. Scanf also treats whitespace
2186 as being elastic. Note that the scanf format % is very
2187 useful for scanning strings, and whitespace.
2189 The editor also displays non-us characters (160+). When
2190 editing binary files, you should set \bdisplay bits\v to 7
2191 bits in the options menu to keep the spacing clean.
2193 See also the file \bREADME.edit\v in the source tree for some
2194 more info.
2196 \x04[Completion]
2197 Completion
2200 Let the Midnight Commander type for you.
2202 Attempt to perform completion on the text before current
2203 position. MC attempts completion treating the text as
2204 variable (if the text begins with \b$\v ), username (if the
2205 text begins with \b~\v ), hostname (if the text begins with \b@\v
2206 ) or command (if you are on the command line in the
2207 position where you might type a command, possible
2208 completions then include shell reserved words and shell
2209 builtin commands as well) in turn. If none of these
2210 produces a match, filename completion is attempted.
2212 Filename, username, variable and hostname completion works
2213 on all input lines, command completion is command line
2214 specific. If the completion is ambiguous (there are more
2215 different possibilities), MC beeps and the following
2216 action depends on the setting of the \x14Complete: show all\v
2217 option in the \x01Configuration\x02Configuration">\x03 dialog. If it is enabled, a
2218 list of all possibilities pops up next to the current
2219 position and you can select with the arrow keys and \bEnter\v
2220 the correct entry. You can also type the first letters in
2221 which the possibilities differ to move to a subset of all
2222 possibilities and complete as much as possible. If you
2223 press \bM-Tab\v again, only the subset will be shown in the
2224 listbox, otherwise the first item which matches all the
2225 previous characters will be highlighted. As soon as there
2226 is no ambiguity, dialog disappears, but you can hide it by
2227 canceling keys \bEsc,\v \bF10\v and left and right arrow keys. If
2228 \x01Complete: show all\x02Configuration\x03 is disabled, the dialog pops up only if
2229 you press \bM-Tab\v for the second time, for the first time MC
2230 just beeps.
2232 \x04[Virtual File System]
2233 Virtual File System
2235 The Midnight Commander is provided with a code layer to
2236 access the file system; this code layer is known as the
2237 virtual file system switch. The virtual file system switch
2238 allows the Midnight Commander to manipulate files not
2239 located on the Unix file system.
2241 Currently the Midnight Commander is packaged with some
2242 Virtual File Systems (VFS): the local file system, used
2243 for accessing the regular Unix file system; the ftpfs,
2244 used to manipulate files on remote systems with the FTP
2245 protocol; the tarfs, used to manipulate tar and compressed
2246 tar files; the undelfs, used to recover deleted files on
2247 ext2 file systems (the default file system for Linux
2248 systems), fish (for manipulating files over shell
2249 connections such as rsh and ssh) and finally the mcfs
2250 (Midnight Commander file system), a network based file
2251 system.
2253 The VFS switch code will interpret all of the path names
2254 used and will forward them to the correct file system, the
2255 formats used for each one of the file systems is described
2256 later in their own section.
2258 \x04[FTP File System]
2259 FTP File System
2261 The ftpfs allows you to manipulate files on remote
2262 machines, to actually use it, you may try to use the panel
2263 command FTP link (accessible from the menubar) or you may
2264 directly change your current directory to it using the cd
2265 command to a path name that looks like this:
2267 \x14/#ftp:[!][user[:pass]@]machine[:port][remote-dir]\v
2269 The, \x14user, port\v and \x14remote-dir\v elements are optional. If
2270 you specify the \x14user\v element, then the Midnight Commander
2271 will try to logon on the remote machine as that user,
2272 otherwise it will use your login name. The optional \x14pass\v
2273 element, if present is the password used for the
2274 connection. This use is not recomented (nor keeping this
2275 in your hotlist, unless you set the appropiate permissions
2276 there, and then, it may not be entirely safe anyways).
2278 Examples:
2280     /#ftp:ftp.nuclecu.unam.mx/linux/local
2281     /#ftp:tsx-11.mit.edu/pub/linux/packages
2282     /#ftp:!behind.firewall.edu/pub
2283     /#ftp:guest@remote-host.com:40/pub
2284     /#ftp:miguel:xxx@server/pub
2286 To connect to sites behind a firewall, you will need to
2287 use the prefix ftp://! (ie, with a bang character after
2288 the double slash) to make the Midnight Commander use a
2289 proxy host for doing the ftp transfer. You can define the
2290 proxy host in the \x01Virtual File System\x02Virtual FS\x03 dialog box.
2292 Another option to set is the \x14Always use ftp proxy\v option
2293 in the \x01Virtual File System\x02Virtual FS\x03 dialog box. This will
2294 configure the program to always use the proxy host. If
2295 this variable is set, the program will do two things:
2296 consult the @prefix@/lib/mc.no_proxy file for lines
2297 containing host names that are local (if the host name
2298 starts with a dot, it is assumed to be a domain) and to
2299 assume that any hostnames without dots in their names are
2300 directly accessible.
2302 If you are using the ftpfs code with a filtering packet
2303 router that does not allow you to use the regular mode of
2304 opening files, you may want to force the program to use
2305 the passive-open mode. To use this, set the
2306 ftpfs_use_passive_connections option in the initialization
2307 file.
2309 The Midnight Commander keeps the directory listing in a
2310 cache. The cache expire time is configurable in the
2311 \x01Virtual File System \x02Virtual FS\x03 dialog box. This has the funny
2312 behavior that even if you make changes to a directory,
2313 they will not be reflected in the directory listing until
2314 you force a cache reload with the C-r key. This is a
2315 feature (when you think it's a bug, think about
2316 manipulating files on the other side of the Atlantic with
2317 ftpfs).
2319 \x04[Tar File System]
2320 Tar File System
2322 The tar file system provides you with read-only access to
2323 your tar files and compressed tar files by using the chdir
2324 command. To change your directory to a tar file, you
2325 change your current directory to the tar file by using the
2326 following syntax:
2328 \x14/filename.tar:utar/[dir-inside-tar]\v
2330 The mc.ext file already provides a shortcut for tar files,
2331 this means that usually you just point to a tar file and
2332 press return to enter into the tar file, see the \x01Extension
2333 File Edit \x02Extension File Edit\x03 section for details on how this is done.
2335 Examples:
2337     mc-3.0.tar.gz#utar/mc-3.0/vfs
2338     /ftp/GCC/gcc-2.7.0.tar#utar
2340 The latter specifies the full path of the tar archive.\x04[FIle transfer over SHell filesystem]
2341 FIle transfer over SHell filesystem
2344 The fish file system is a network based file system that
2345 allows you to manipulate the files in a remote machine as
2346 if they were local. To use this, the other side has to
2347 either run fish server, or has to have bash-compatible
2348 shell.
2350 To connect to a remote machine, you just need to chdir
2351 into a special directory which name is in the following
2352 format:
2354 /#sh:[user@]machine[:options];/[remote-dir];</em>
2355 The, \x14user, \v \x14options\v and \x14remote-dir\v elements are optional.
2356 If you specify the \x14user\v element then the Midnight
2357 Commander will try to logon on the remote machine as that
2358 user, otherwise it will use your login name.
2360 The \x14options\v are 'C' - use compression and 'rsh' use rsh
2361 instead of ssh. If the \x14remote-dir\v element is present, your
2362 current directory on the remote machine will be set to
2363 this one.
2365 Examples:
2367     /#sh:onlyrsh.mx:r/linux/local
2368     /#sh:joe@want.compression.edu:C/private
2369     /#sh:joe@noncompressed.ssh.edu/private
2371 \x04[Network File System]
2372 Network File System
2374 The Midnight Commander file system is a network base file
2375 system that allows you to manipulate the files in a remote
2376 machine as if they were local. To use this, the remote
2377 machine must be running the mcserv(8) server program.
2379 To connect to a remote machine, you just need to chdir
2380 into a special directory which name is in the following
2381 format:
2383 \x14/#mc:[user@]machine[:port][remote-dir]\v
2385 The, \x14user, port\v and \x14remote-dir\v elements are optional. If
2386 you specify the \x14user\v element then the Midnight Commander
2387 will try to logon on the remote machine as that user,
2388 otherwise it will use your login name.
2390 The \x14port\v element is used when the remote machine running
2391 on a special port (see the mcserv(8) manual page for more
2392 information about ports); finally, if the \x14remote-dir\v
2393 element is present, your current directory on the remote
2394 machine will be set to this one.
2396 Examples:
2398     /#mc:ftp.nuclecu.unam.mx/linux/local
2399     /#mc:joe@foo.edu:11321/private
2401 \x04[Undelete File System]
2402 Undelete File System
2404 On Linux systems, if you asked configure to use the ext2fs
2405 undelete facilities, you will have the undelete file
2406 system available. Recovery of deleted files is only
2407 available on ext2 file systems. The undelete file system
2408 is just an interface to the ext2fs library to: retrieve
2409 all of the deleted files names on an ext2fs and provides
2410 and to extract the selected files into a regular
2411 partition.
2413 To use this file system, you have to chdir into the
2414 special file name formed by the "/#undel" prefix and the
2415 file name where the actual file system resides.
2417 For example, to recover deleted files on the second
2418 partition of the first scsi disk on Linux, you would use
2419 the following path name:
2421     /#undel:/dev/sda2
2423 It may take a while for the undelfs to load the required
2424 information before you start browsing files there.
2426 \x04[Colors]
2427 Colors
2429 The Midnight Commander will try to detect if your terminal
2430 supports color using the terminal database and your
2431 terminal name. Sometimes it gets confused, so you may
2432 force color mode or disable color mode using the -c and -b
2433 flag respectively.
2435 If the program is compiled with the Slang screen manager
2436 instead of ncurses, it will also check the variable
2437 \bCOLORTERM,\v if it is set, it has the same effect as the -c
2438 flag.
2440 You may specify terminals that always force color mode by
2441 adding the \x14color_terminals\v variable to the Colors section
2442 of the initialization file. This will prevent the Midnight
2443 Commander from trying to detect if your terminal supports
2444 color. Example:
2445 [Colors]
2446 color_terminals=linux,xterm
2447 color_terminals=terminal-name1,terminal-name2...
2449 The program can be compiled with both ncurses and slang,
2450 ncurses does not provide a way to force color mode:
2451 ncurses uses just the information in the terminal
2452 database.
2454 The Midnight Commander provides a way to change the
2455 default colors. Currently the colors are configured using
2456 the environment variable \bMC_COLOR_TABLE \v or the Colors
2457 section in the initialization file.
2459 In the Colors section, the default color map is loaded
2460 from the \x14base_color \v variable. You can specify an
2461 alternate color map for a terminal by using the terminal
2462 name as the key in this section. Example:
2464 [Colors]
2465 base_color=
2466 xterm=menu=magenta:marked=,magenta:markselect=,red
2468 The format for the color definition is:
2470   <keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...
2472 The colors are optional, and the keywords are: normal,
2473 selected, marked, markselect, errors, input, reverse,
2474 gauge; Menu colors are: menu, menusel, menuhot,
2475 menuhotsel; Dialog colors are: dnormal, dfocus,
2476 dhotnormal, dhotfocus; Help colors are: helpnormal,
2477 helpitalic, helpbold, helplink, helpslink; Viewer color
2478 is: viewunderline; Special highlighting colors are:
2479 executable, directory, link, device, special, core; Editor
2480 colors are: editnormal, editbold, editmarked.
2482 \x14input \v determines the color of input lines used in query
2483 dialogs.
2485 \x14gauge \v determines the color of the filled part of the
2486 progress bar (gauge), which shows how many percent of
2487 files were copied etc. in a graphical way.
2489 The dialog boxes use the following colors: \x14dnormal \v is
2490 used for the normal text, \x14dfocus\v is the color used for the
2491 currently selected component, \x14dhotnormal\v is the color used
2492 to differentiate the hotkey color in normal components,
2493 whereas the \x14dhotfocus\v color is used for the highlighted
2494 color in the currently selected component.
2496 Menus use the same scheme but uses the menu, menusel,
2497 menuhot and menuhotsel tags instead.
2499 Help uses the following colors: \x14helpnormal\v is used for
2500 normal text, \x14helpitalic\v is used for text which is
2501 emphasized in italic in the manual page, \x14helpbold\v is used
2502 for text which is emphasized in bold in the manual page,
2503 \x14helplink\v is used for not selected hyperlinks and \x14helpslink\v
2504 is used for selected hyperlink.
2506 Special highlight colors determine how files are displayed
2507 when file highlighting is enabled (see the section on
2508 \x01Layout).\x02Layout\x03 \x14directory\v is used for directories or symbolic
2509 links to directories; \x14executable\v for executable files;
2510 \x14link\v is used for symbolic links which are neither stalled
2511 nor linked to a directory; \x14stalledlink\v is used for stalled
2512 symbolic links; \x14device\v - character and block devices;
2513 \x14special\v is used for special files, such as FIFOs and IPC
2514 sockets; \x14core\v is for core files.
2516 The possible colors are: black, gray, red, brightred,
2517 green, brightgreen, brown, yellow, blue, brightblue,
2518 magenta, brightmagenta, cyan, brightcyan, lightgray and
2519 white. And there is a special keyword for transparent
2520 background. It is 'default'. The 'default' can only be
2521 used for background color. Example:
2522 [Colors]
2523 base_color=normal=white,default:marked=magenta,default
2525 \x04[Special Settings]
2526 Special Settings
2528 Most of the settings of the Midnight Commander can be
2529 changed from the menus. However, there are a small number
2530 of settings which can only be changed by editing the setup
2531 file.
2533 These variables may be set in your ~/.mc/ini file:
2535 \x14clear_before_exec.\v By default the Midnight Commander
2536 clears the screen before executing a command. If you would
2537 prefer to see the output of the command at the bottom of
2538 the screen, edit your ~/mc.ini file and change the value
2539 of the field clear_before_exec to 0.
2541 \x14confirm_view_dir.\v If you press F3 on a directory, normally
2542 MC enters that directory. If this flag is set to 1, then
2543 MC will ask for confirmation before changing the directory
2544 if you have files tagged.
2546 \x14ftpfs_retry_seconds.\v This value is the number of seconds
2547 the Midnight Commander will wait before attempting a
2548 reconnection to an ftp server that has denied the login.
2549 If the value is zero, the the program will not retry the
2550 login.
2552 \x14ftpfs_use_passive_connections.\v This option is by off
2553 default. This makes the ftpfs code use the passive open
2554 mode for transfering files. This is used by people that
2555 are behind a filtering packet router. This option just
2556 works if you are not using an ftp proxy.
2558 \x14max_dirt_limit.\v Specifies how many screen updates can be
2559 skipped at most in the internal file viewer. Normally this
2560 value is not significant, because the code automatically
2561 adjusts the number of updates to skip according to the
2562 rate of incoming keypresses. However, on very slow
2563 machines or terminals with a fast keyboard auto repeat, a
2564 big value can make screen updates too jumpy. It seems that
2565 setting max_dirt_limit to 10 causes the best behavior, and
2566 that is the default value.
2568 \x14mouse_move_pages.\v Controls whenever scrolling with the
2569 mouse is done by pages or line by line on the panels.
2571 \x14mouse_move_pages_viewer.\v Controls if scrolling with the
2572 mouse is done by pages or line by line on the internal
2573 file viewer.
2575 \x14old_esc_mode\v By default the Midnight Commander treats the
2576 ESC key as a key prefix (old_esc_mode=0), if you set this
2577 option (old_esc_mode=1), then the ESC key will act as a
2578 prefix key for one second, and if no extra keys have
2579 arrived, then the ESC key is interpreted as a cancel key
2580 (ESC ESC).
2583 \x14only_leading_plus_minus\v set special treatment for '+',
2584 '-', '*' in command line (select, unselect, reverse
2585 selection) only if command line is empty. No need to quote
2586 this characters in the middle of the command line. But we
2587 can not change selection when command line is not empty.
2588 \x14panel_scroll_pages\v If set (the default), panel will scroll
2589 by half the display when the cursor reaches the end or the
2590 beginning of the panel, otherwise it will just scroll a
2591 file at a time.
2593 \x14preserve_uidgid\v If this option is set (the default), when
2594 logged in as root the default will be to preserve the UID
2595 and the GID of files. Some users prefer to disable this
2596 option, so that's why it's configurable.
2598 \x14show_output_starts_shell\v This variable only works if you
2599 are not using the subshell support. When you use the C-o
2600 keystroke to go back to the user screen, if this one is
2601 set, you will get a fresh shell. Otherwise, pressing any
2602 key will bring you back to the Midnight Commander.
2604 \x14torben_fj_mode\v If this flag is set, then the home and end
2605 keys will work slightly different on the panels, instead
2606 of moving the selection to the first and last files in the
2607 panels, they will act as follows: The home key will: Go up
2608 to the middle line, if below it; else go to the top line
2609 unless it is already on the top line, in this case it will
2610 go to the first file in the panel. The end key has a
2611 similar behavior: Go down to the middle line, if over it;
2612 else go to the bottom line unless you already are at the
2613 bottom line, in such case it will move the selection to
2614 the last file name in the panel.
2616 \x14use_file_to_guess_type\v If this variable is on (the
2617 default) it will spawn the file command to match the file
2618 types listed on the \x01mc.ext file.\x02Extension File Edit\x03
2620 \x14xterm_mode\v If this variable is on (default is off) when
2621 you browse the file system on a Tree panel, it will
2622 automatically reload the other panel with the contents of
2623 the selected directory.
2625 \x04[Terminal databases]
2626 Terminal databases
2628 The Midnight Commander provides a way to fix your system
2629 terminal database without requiring root privileges. The
2630 Midnight Commander searches in the system initialization
2631 file (the mc.lib file located in the Midnight Commander
2632 library directory) or in the ~/.mc/ini file for the
2633 section "terminal:your-terminal-name" and then for the
2634 section "terminal:general", each line of the section
2635 contains a key symbol that you want to define, followed by
2636 an equal sign and the definition for the key. You can use
2637 the special \E form to represent the escape character and
2638 the ^x to represent the control-x character.
2640 The possible key symbols are:
2642 f0 to f20     Function keys f0-f20
2643 bs            backspace
2644 home          home key
2645 end           end key
2646 up            up arrow key
2647 down          down arrow key
2648 left          left arrow key
2649 right         right arrow key
2650 pgdn          page down key
2651 pgup          page up key
2652 insert        the insert character
2653 delete        the delete character
2654 complete      to do completion
2656 For example, to define the key insert to be the Escape + [
2657 + O + p, you set this in the ini file:
2659 insert=\\E[Op
2661 The \x14complete\v key symbol represents the escape sequences
2662 used to invoke the completion process, this is invoked
2663 with M-tab, but you can define other keys to do the same
2664 work (on those keyboard with tons of nice and unused keys
2665 everywhere).
2667 \x04[]
2670 \x04[FILES]
2671 FILES
2674 The program will retrieve all of its information relative
2675 to the MCHOME environment variable, if this variable is
2676 not set, then it will fall back to the @prefix@ directory.
2678 @prefix@/lib/mc.hlp The help file for the program.
2680 @prefix@/lib/mc/mc.ext The default system-wide extensions
2681 file.
2683 ~/.mc/ext User's own extension, view configuration and
2684 edit configuration file. They override the contents of the
2685 system wide files if present.
2687 @prefix@/lib/mc/mc.ini The default system-wide setup for
2688 the Midnight Commander, used only if the user lacks his
2689 own ~/.mc/ini file.
2691 @prefix@/lib/mc/mc.lib Global settings for the Midnight
2692 Commander. Settings in this file are global to any
2693 Midnight Commander, it is useful to define site-global
2694 terminal settings.
2696 ~/.mc/ini User's own setup. If this file is present then
2697 the setup is loaded from here instead of the system-wide
2698 startup file.
2700 @prefix@/lib/mc/mc.hint This file contains the hints
2701 (cookies) displayed by the program.
2703 @prefix@/lib/mc/mc.menu This file contains the default
2704 system-wide applications menu.
2706 ~/.mc/menu User's own application menu. If this file is
2707 present it is used instead of the system-wide applications
2708 menu.
2710 ~/.mc/tree The directory list for the directory tree and
2711 tree view features. Each line is one entry. The lines
2712 starting with a slash are full directory names. The lines
2713 starting with a number have that many characters equal to
2714 the previous directory. If you want you may create this
2715 file by giving the command "find / -type d -print | sort >
2716 ~/.mc.tree". Normally there is no sense in doing it
2717 because the Midnight Commander automatically updates this
2718 file for you.
2720 Local user-defined menu. If this file is present it is
2721 used instead of the home or system-wide applications menu.
2723 \x04[AVAILABILITY]
2724 AVAILABILITY
2726 The latest version of this program can be found at
2727 ftp.nuclecu.unam.mx in the directory /linux/local and from
2728 Europe at sunsite.mff.cuni.cz in the directory /GNU/mc and
2729 at ftp.teuto.de in the directory /lmb/mc.\x04[SEE ALSO]
2730 SEE ALSO
2732 ed(1), gpm(1), mcserv(8), terminfo(1), view(1), sh(1),
2733 bash(1), tcsh(1), zsh(1).
2735 The Midnight Commander page on the World Wide Web:
2736         http://www.gnome.org/mc/
2738 \x04[AUTHORS]
2739 AUTHORS
2741 Miguel de Icaza (miguel@roxanne.nuclecu.unam.mx), Janne
2742 Kukonlehto (jtklehto@paju.oulu.fi), Radek Doulik
2743 (rodo@ucw.cz), Fred Leeflang (fredl@nebula.ow.org), Dugan
2744 Porter (dugan@b011.eunet.es), Jakub Jelinek
2745 (jj@sunsite.mff.cuni.cz), Ching Hui
2746 (mr854307@cs.nthu.edu.tw), Andrej Borsenkow
2747 (borsenkow.msk@sni.de), Norbert Warmuth
2748 (nwarmuth@privat.circular.de), Mauricio Plaza
2749 (mok@roxanne.nuclecu.unam.mx), Paul Sheer
2750 (psheer@icon.co.za) and Pavel Machek (pavel@ucw.cz) are
2751 the developers of this package; Alessandro Rubini
2752 (rubini@ipvvis.unipv.it) has been especially helpful
2753 debugging and enhancing the program's mouse support, John
2754 Davis (davis@space.mit.edu) also made his S-Lang library
2755 available to us under the GPL and answered my questions
2756 about it, and the following people have contributed code
2757 and many bug fixes (in alphabetical order):
2759 Adam Tla/lka (atlka@sunrise.pg.gda.pl), alex@bcs.zp.ua
2760 (Alex I. Tkachenko), Antonio Palama, DOS port
2761 (palama@posso.dm.unipi.it), Erwin van Eijk
2762 (wabbit@corner.iaf.nl), Gerd Knorr
2763 (kraxel@cs.tu-berlin.de), Jean-Daniel Luiset
2764 (luiset@cih.hcuge.ch), Jon Stevens
2765 (root@dolphin.csudh.edu), Juan Francisco Grigera, Win32
2766 port (j-grigera@usa.net), Juan Jose Ciarlante
2767 (jjciarla@raiz.uncu.edu.ar), Ilya Rybkin
2768 (rybkin@rouge.phys.lsu.edu), Marcelo Roccasalva
2769 (mfroccas@raiz.uncu.edu.ar), Massimo Fontanelli
2770 (MC8737@mclink.it), Pavel Roskin 
2771 (pavel_roskin@geocities.com), Sergey Ya. Korshunoff
2772 (root@seyko.msk.su), Thomas Pundt 
2773 (pundtt@math.uni-muenster.de), Timur Bakeyev (timur@bat.ru), 
2774 Tomasz Cholewo (tjchol01@mecca.spd.louisville.edu), 
2775 Torben Fjerdingstad (torben.fjerdingstad@uni-c.dk), 
2776 Vadim Sinolitis (vvs@nsrd.npi.msu.su) and Wim Osterholt
2777 (wim@djo.wtm.tudelft.nl).
2779 \x04[BUGS]
2780 BUGS
2782 See the file TODO in the distribution for information on
2783 what remains to be done.
2785 If you want to report a problem with the program, please
2786 send mail to this address:
2787 mc-bugs@roxanne.nuclecu.unam.mx.
2789 Provide a detailed description of the bug, the version of
2790 the program you are running (mc -V display this
2791 information), the operating system you are running the
2792 program on and if the program crashes, we would appreciate
2793 a stack trace.
2795 \x04[main]
2796 \x0e \x05lqwqk     k           k     \x06
2797  \x05x x x .   x     .     x     \x06
2798  \x05x x x k lqu wqk k lqw tqk n \x06
2799  \x05x x x x x x x x x x x x x x \x06
2800  \x05v   v v mqv v v v mqu v v mj\x06
2801      \x05qqqqqq\x06\bCommander\v\x05qj\x06 \a
2802 \x0f\x10\f
2804 Version \a
2806 \x11This is the main help screen for the \bGNU Midnight Commander\v
2808 To learn more on how to use the interactive help facility
2809 just tap \x01enter\x02How to use help\x03. You may like to go directly to the
2810 help \x01contents\x02Contents\x03.
2812 The Midnight Commander is written by its \x01authors\x02AUTHORS\x03.
2814 The Midnight Commander comes with ABSOLUTELY NO \x01WARRANTY\x02Warranty\x03.
2815 This is free software, and you are welcome to redistribute
2816 it under certain \x01conditions\x02License\x03.\x04[License]
2818                 GNU GENERAL PUBLIC LICENSE
2819                    Version 2, June 1991
2821  Copyright (C) 1989, 1991 Free Software Foundation,
2822 Inc. 675 Mass Ave, Cambridge, MA 02139, USA.
2824  Everyone is permitted to copy and distribute verbatim
2825 copies of this license document, but changing it is not
2826 allowed.
2828                          Preamble
2830   The licenses for most software are designed to take away
2831 your freedom to share and change it.  By contrast, the GNU
2832 General Public License is intended to guarantee your
2833 freedom to share and change free software--to make sure
2834 the software is free for all its users.  This General
2835 Public License applies to most of the Free Software
2836 Foundation's software and to any other program whose
2837 authors commit to using it.  (Some other Free Software
2838 Foundation software is covered by the GNU Library General
2839 Public License instead.)  You can apply it to your
2840 programs, too.
2842   When we speak of free software, we are referring to
2843 freedom, not price.  Our General Public Licenses are
2844 designed to make sure that you have the freedom to
2845 distribute copies of free software (and charge for this
2846 service if you wish), that you receive source code or can
2847 get it if you want it, that you can change the software or
2848 use pieces of it in new free programs; and that you know
2849 you can do these things.
2851   To protect your rights, we need to make restrictions
2852 that forbid anyone to deny you these rights or to ask you
2853 to surrender the rights.  These restrictions translate to
2854 certain responsibilities for you if you distribute copies
2855 of the software, or if you modify it.
2857   For example, if you distribute copies of such a program,
2858 whether gratis or for a fee, you must give the recipients
2859 all the rights that you have.  You must make sure that
2860 they, too, receive or can get the source code.  And you
2861 must show them these terms so they know their rights.
2863   We protect your rights with two steps: (1) copyright the
2864 software, and (2) offer you this license which gives you
2865 legal permission to copy, distribute and/or modify the
2866 software.
2868   Also, for each author's protection and ours, we want to
2869 make certain that everyone understands that there is no
2870 warranty for this free software.  If the software is
2871 modified by someone else and passed on, we want its
2872 recipients to know that what they have is not the
2873 original, so that any problems introduced by others will
2874 not reflect on the original authors' reputations.
2876   Finally, any free program is threatened constantly by
2877 software patents.  We wish to avoid the danger that
2878 redistributors of a free program will individually obtain
2879 patent licenses, in effect making the program proprietary.
2880 To prevent this, we have made it clear that any patent
2881 must be licensed for everyone's free use or not licensed
2882 at all.
2884   The precise terms and conditions for copying,
2885 distribution and modification follow.
2887                 GNU GENERAL PUBLIC LICENSE
2888             TERMS AND CONDITIONS FOR COPYING,
2889               DISTRIBUTION AND MODIFICATION
2891   0. This License applies to any program or other work
2892 which contains a notice placed by the copyright holder
2893 saying it may be distributed under the terms of this
2894 General Public License.  The "Program", below, refers to
2895 any such program or work, and a "work based on the
2896 Program" means either the Program or any derivative work
2897 under copyright law: that is to say, a work containing the
2898 Program or a portion of it, either verbatim or with
2899 modifications and/or translated into another language.
2900 (Hereinafter, translation is included without limitation
2901 in the term "modification".)  Each licensee is addressed
2902 as "you".
2904 Activities other than copying, distribution and
2905 modification are not covered by this License; they are
2906 outside its scope.  The act of running the Program is not
2907 restricted, and the output from the Program is covered
2908 only if its contents constitute a work based on the
2909 Program (independent of having been made by running the
2910 Program).  Whether that is true depends on what the
2911 Program does.
2913   1. You may copy and distribute verbatim copies of the
2914 Program's source code as you receive it, in any medium,
2915 provided that you conspicuously and appropriately publish
2916 on each copy an appropriate copyright notice and
2917 disclaimer of warranty; keep intact all the notices that
2918 refer to this License and to the absence of any warranty;
2919 and give any other recipients of the Program a copy of
2920 this License along with the Program.
2922 You may charge a fee for the physical act of transferring
2923 a copy, and you may at your option offer warranty
2924 protection in exchange for a fee.
2926   2. You may modify your copy or copies of the Program or
2927 any portion of it, thus forming a work based on the
2928 Program, and copy and distribute such modifications or
2929 work under the terms of Section 1 above, provided that you
2930 also meet all of these conditions:
2932     a) You must cause the modified files to carry
2933 prominent notices stating that you changed the files and
2934 the date of any change.
2936     b) You must cause any work that you distribute or
2937 publish, that in whole or in part contains or is derived
2938 from the Program or any part thereof, to be licensed as a
2939 whole at no charge to all third parties under the terms of
2940 this License.
2942     c) If the modified program normally reads commands
2943 interactively when run, you must cause it, when started
2944 running for such interactive use in the most ordinary way,
2945 to print or display an announcement including an
2946 appropriate copyright notice and a notice that there is no
2947 warranty (or else, saying that you provide a warranty) and
2948 that users may redistribute the program under these
2949 conditions, and telling the user how to view a copy of
2950 this License.  (Exception: if the Program itself is
2951 interactive but does not normally print such an
2952 announcement, your work based on the Program is not
2953 required to print an announcement.)
2955 These requirements apply to the modified work as a whole.
2956 If identifiable sections of that work are not derived from
2957 the Program, and can be reasonably considered independent
2958 and separate works in themselves, then this License, and
2959 its terms, do not apply to those sections when you
2960 distribute them as separate works.  But when you
2961 distribute the same sections as part of a whole which is a
2962 work based on the Program, the distribution of the whole
2963 must be on the terms of this License, whose permissions
2964 for other licensees extend to the entire whole, and thus
2965 to each and every part regardless of who wrote it.
2967 Thus, it is not the intent of this section to claim rights
2968 or contest your rights to work written entirely by you;
2969 rather, the intent is to exercise the right to control the
2970 distribution of derivative or collective works based on
2971 the Program.
2973 In addition, mere aggregation of another work not based on
2974 the Program with the Program (or with a work based on the
2975 Program) on a volume of a storage or distribution medium
2976 does not bring the other work under the scope of this
2977 License.
2979   3. You may copy and distribute the Program (or a work
2980 based on it, under Section 2) in object code or executable
2981 form under the terms of Sections 1 and 2 above provided
2982 that you also do one of the following:
2984     a) Accompany it with the complete corresponding
2985 machine-readable source code, which must be distributed
2986 under the terms of Sections 1 and 2 above on a medium
2987 customarily used for software interchange; or,
2989     b) Accompany it with a written offer, valid for at
2990 least three years, to give any third party, for a charge
2991 no more than your cost of physically performing source
2992 distribution, a complete machine-readable copy of the
2993 corresponding source code, to be distributed under the
2994 terms of Sections 1 and 2 above on a medium customarily
2995 used for software interchange; or,
2997     c) Accompany it with the information you received as
2998 to the offer to distribute corresponding source code.
2999 (This alternative is allowed only for noncommercial
3000 distribution and only if you received the program in
3001 object code or executable form with such an offer, in
3002 accord with Subsection b above.)
3004 The source code for a work means the preferred form of the
3005 work for making modifications to it.  For an executable
3006 work, complete source code means all the source code for
3007 all modules it contains, plus any associated interface
3008 definition files, plus the scripts used to control
3009 compilation and installation of the executable.  However,
3010 as a special exception, the source code distributed need
3011 not include anything that is normally distributed (in
3012 either source or binary form) with the major components
3013 (compiler, kernel, and so on) of the operating system on
3014 which the executable runs, unless that component itself
3015 accompanies the executable.
3017 If distribution of executable or object code is made by
3018 offering access to copy from a designated place, then
3019 offering equivalent access to copy the source code from
3020 the same place counts as distribution of the source code,
3021 even though third parties are not compelled to copy the
3022 source along with the object code.
3024   4. You may not copy, modify, sublicense, or distribute
3025 the Program except as expressly provided under this
3026 License.  Any attempt otherwise to copy, modify,
3027 sublicense or distribute the Program is void, and will
3028 automatically terminate your rights under this License.
3029 However, parties who have received copies, or rights, from
3030 you under this License will not have their licenses
3031 terminated so long as such parties remain in full
3032 compliance.
3034   5. You are not required to accept this License, since
3035 you have not signed it.  However, nothing else grants you
3036 permission to modify or distribute the Program or its
3037 derivative works.  These actions are prohibited by law if
3038 you do not accept this License.  Therefore, by modifying
3039 or distributing the Program (or any work based on the
3040 Program), you indicate your acceptance of this License to
3041 do so, and all its terms and conditions for copying,
3042 distributing or modifying the Program or works based on
3045   6. Each time you redistribute the Program (or any work
3046 based on the Program), the recipient automatically
3047 receives a license from the original licensor to copy,
3048 distribute or modify the Program subject to these terms
3049 and conditions.  You may not impose any further
3050 restrictions on the recipients' exercise of the rights
3051 granted herein.  You are not responsible for enforcing
3052 compliance by third parties to this License.
3054   7. If, as a consequence of a court judgment or
3055 allegation of patent infringement or for any other reason
3056 (not limited to patent issues), conditions are imposed on
3057 you (whether by court order, agreement or otherwise) that
3058 contradict the conditions of this License, they do not
3059 excuse you from the conditions of this License.  If you
3060 cannot distribute so as to satisfy simultaneously your
3061 obligations under this License and any other pertinent
3062 obligations, then as a consequence you may not distribute
3063 the Program at all.  For example, if a patent license
3064 would not permit royalty-free redistribution of the
3065 Program by all those who receive copies directly or
3066 indirectly through you, then the only way you could
3067 satisfy both it and this License would be to refrain
3068 entirely from distribution of the Program.
3070 If any portion of this section is held invalid or
3071 unenforceable under any particular circumstance, the
3072 balance of the section is intended to apply and the
3073 section as a whole is intended to apply in other
3074 circumstances.
3076 It is not the purpose of this section to induce you to
3077 infringe any patents or other property right claims or to
3078 contest validity of any such claims; this section has the
3079 sole purpose of protecting the integrity of the free
3080 software distribution system, which is implemented by
3081 public license practices.  Many people have made generous
3082 contributions to the wide range of software distributed
3083 through that system in reliance on consistent application
3084 of that system; it is up to the author/donor to decide if
3085 he or she is willing to distribute software through any
3086 other system and a licensee cannot impose that choice.
3088 This section is intended to make thoroughly clear what is
3089 believed to be a consequence of the rest of this License.
3091   8. If the distribution and/or use of the Program is
3092 restricted in certain countries either by patents or by
3093 copyrighted interfaces, the original copyright holder who
3094 places the Program under this License may add an explicit
3095 geographical distribution limitation excluding those
3096 countries, so that distribution is permitted only in or
3097 among countries not thus excluded.  In such case, this
3098 License incorporates the limitation as if written in the
3099 body of this License.
3101   9. The Free Software Foundation may publish revised
3102 and/or new versions of the General Public License from
3103 time to time.  Such new versions will be similar in spirit
3104 to the present version, but may differ in detail to
3105 address new problems or concerns.
3107 Each version is given a distinguishing version number.  If
3108 the Program specifies a version number of this License
3109 which applies to it and "any later version", you have the
3110 option of following the terms and conditions either of
3111 that version or of any later version published by the Free
3112 Software Foundation.  If the Program does not specify a
3113 version number of this License, you may choose any version
3114 ever published by the Free Software Foundation.
3116   10. If you wish to incorporate parts of the Program into
3117 other free programs whose distribution conditions are
3118 different, write to the author to ask for permission.  For
3119 software which is copyrighted by the Free Software
3120 Foundation, write to the Free Software Foundation; we
3121 sometimes make exceptions for this.  Our decision will be
3122 guided by the two goals of preserving the free status of
3123 all derivatives of our free software and of promoting the
3124 sharing and reuse of software generally.
3126 [Warranty]
3127                        NO WARRANTY
3129   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE,
3130 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT
3131 PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED
3132 IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
3133 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
3134 EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED
3135 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
3136 FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
3137 QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
3138 SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
3139 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
3141   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR
3142 AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY
3143 OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM
3144 AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
3145 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
3146 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY
3147 TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
3148 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED
3149 BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO
3150 OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR
3151 OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
3152 DAMAGES.
3154                END OF TERMS AND CONDITIONS
3156       How to Apply These Terms to Your New Programs
3158   If you develop a new program, and you want it to be of
3159 the greatest possible use to the public, the best way to
3160 achieve this is to make it free software which everyone
3161 can redistribute and change under these terms.
3163   To do so, attach the following notices to the program.
3164 It is safest to attach them to the start of each source
3165 file to most effectively convey the exclusion of warranty;
3166 and each file should have at least the "copyright" line
3167 and a pointer to where the full notice is found.
3169 <one line to give the program's name and a brief idea of 
3170 what it does.>
3171 Copyright (C) 19yy  <name of author>
3173     This program is free software; you can redistribute it
3174 and/or modify it under the terms of the GNU General Public
3175 License as published by the Free Software Foundation;
3176 either version 2 of the License, or (at your option) any
3177 later version.
3179     This program is distributed in the hope that it will
3180 be useful, but WITHOUT ANY WARRANTY; without even the
3181 implied warranty of MERCHANTABILITY or FITNESS FOR A
3182 PARTICULAR PURPOSE.  See the GNU General Public License
3183 for more details.
3185     You should have received a copy of the GNU General
3186 Public License along with this program; if not, write to
3187 the Free Software Foundation, Inc., 675 Mass Ave,
3188 Cambridge, MA 02139, USA.
3190 Also add information on how to contact you by electronic
3191 and paper mail.
3193 If the program is interactive, make it output a short
3194 notice like this when it starts in an interactive mode:
3196 Gnomovision version 69, Copyright (C) 19yy name of author
3197 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
3198 type `show w'.  This is free software, and you are welcome
3199 to redistribute it under certain conditions; type `show c'
3200 for details.
3202 The hypothetical commands `show w' and `show c' should
3203 show the appropriate parts of the General Public License.
3204 Of course, the commands you use may be called something
3205 other than `show w' and `show c'; they could even be
3206 mouse-clicks or menu items--whatever suits your program.
3208 You should also get your employer (if you work as a
3209 programmer) or your school, if any, to sign a "copyright
3210 disclaimer" for the program, if necessary.  Here is a
3211 sample; alter the names:
3213   Yoyodyne, Inc., hereby disclaims all copyright interest
3214 in the program `Gnomovision' (which makes passes at
3215 compilers) written by James Hacker.
3217   <signature of Ty Coon>, 1 April 1989
3218   Ty Coon, President of Vice
3220 This General Public License does not permit incorporating
3221 your program into proprietary programs.  If your program
3222 is a subroutine library, you may consider it more useful
3223 to permit linking proprietary applications with the
3224 library.  If this is what you want to do, use the GNU
3225 Library General Public License instead of this License.
3227 \x04[QueryBox]
3229 In the query dialog box you can use the arrow keys or the
3230 first letter to select an item or click with the mouse on
3231 the button.
3233 \x04[How to use help]
3235 You can use the cursor keys or mouse to navigate in the
3236 help viewer.
3237 Press down arrow to move to the next item or scroll down.
3238 Press up arrow to move to the previous item or scroll up.
3239 Press right arrow to follow the current link.
3240 Press left arrow to go back in the history of nodes that
3241 you have visited.
3243 If you terminal doesn't support the cursor keys you can
3244 use the space bar to scroll forward and the 'b' key scroll
3245 back. Use the TAB key to move to the next item and press
3246 ENTER to follow the current link. The 'l' (last) key may
3247 be used to go back in the history of nodes that you have
3248 visited. Press ESC to exit the help viewer.
3250 The left mouse button will follow the link or scroll. The
3251 right mouse button can be used to go back in the history
3252 of nodes.
3254 The full key list of the help viewer:
3256 \x01General movement keys\x02General Movement Keys\x03 are accepted.
3258 tab           Move to the next item.
3259 M-tab         Move to the previous item. 
3260 down          Move to the next item or scroll a line down.
3261 up            Move to the previous item or scroll a line up.
3262 right, enter  Follow the current link.    
3263 left, l       Go back in the history of visited nodes.
3264 F1            Show the help for the help viewer.
3265 n             Go to the next node.
3266 p             Go to the previous node.    
3267 c             Go to the Contents node.    
3268 F10, esc      Exit the help viewer.
3269 \x04
3270 Local variables:
3271 fill-column: 58
3272 end: