mc.1.in 128 KB

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