mc.1.in 120 KB

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