mc.1.in 128 KB

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