mc.1.in 121 KB

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