mc.1.in 121 KB

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