mc.1.in 122 KB

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