mc.1.in 129 KB

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