mc.1.in 124 KB

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