mc.1.in 115 KB

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