mc.1.in 102 KB

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