mc.1.in 120 KB

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