mc.1.in 104 KB

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