mc.1.in 129 KB

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