mc.1.in 129 KB

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