{
    "mode": "man",
    "parameter": "mc",
    "section": "joe",
    "url": "https://www.chedong.com/phpMan.php/man/mc/joe/json",
    "generated": "2026-06-14T05:36:41Z",
    "synopsis": "mc [-abcCdfhPstuUVx] [-l log] [dir1 [dir2]] [-e [file] ...] [-v file]",
    "sections": {
        "NAME": {
            "content": "mc - Visual shell for Unix-like systems.\n",
            "subsections": []
        },
        "Syntax": {
            "content": "",
            "subsections": [
                {
                    "name": "joe [global-options] [ [local-options] filename ]...",
                    "content": ""
                },
                {
                    "name": "jstar [global-options] [ [local-options] filename ]...",
                    "content": ""
                },
                {
                    "name": "jmacs [global-options] [ [local-options] filename ]...",
                    "content": ""
                },
                {
                    "name": "rjoe [global-options] [ [local-options] filename ]...",
                    "content": ""
                },
                {
                    "name": "jpico [global-options] [ [local-options] filename ]...",
                    "content": ""
                }
            ]
        },
        "Description": {
            "content": "JOE is a powerful console screen editor. It has a \"mode-less\" user interface which is similar\nto many user-friendly PC editors. Users of Micro-Pro´s WordStar  or  Borland´s  \"Turbo\"  lan‐\nguages will feel at home. JOE is a full featured UNIX screen-editor though, and has many fea‐\ntures for editing programs and text.\n\nJOE also emulates several other editors. JSTAR is a close imitation  of  WordStar  with  many\n\"JOE\"  extensions.  JPICO  is a close imitation of the Pine mailing system´s PICO editor, but\nwith many extensions and improvements. JMACS is a GNU-EMACS imitation. RJOE is  a  restricted\nversion of JOE, which allows you to edit only the files specified on the command line.\n\nAlthough  JOE  is actually five different editors, it still requires only one executable, but\none with five different names. The name of the editor with an \"rc\" appended gives the name of\nJOE´s initialization file, which determines the personality of the editor.\n\nJOE  is free software; you can distribute it and/or modify it under the terms of the GNU Gen‐\neral Public License as published by the Free Software Foundation. JOE is available  over  the\nInternet from http://www.sourceforge.net/projects/joe-editor.\n",
            "subsections": []
        },
        "Usage": {
            "content": "To  start the editor, type joe followed by zero or more names of files you want to edit. Each\nfile name may be preceded by a local option setting (see the local options table  which  fol‐\nlows).  Other global options, which apply to the editor as a whole, may also be placed on the\ncommand line (see the global options table which follows). If you are editing a new file, you\ncan  either  give  the name of the new file when you invoke the editor, or in the editor when\nyou save the new file. A modified syntax for file names is provided to allow you to edit pro‐\ngram  output,  standard  input/output, or sections of files or devices. See the section File‐\nnames below for details.\n\nOnce you are in the editor, you can type in text and use special control-character  sequences\nto  perform  other  editing tasks. To find out what the control-character sequences are, read\nthe rest of this man page or type ^K H for help in the editor.\n\nNow for some obscure computer-lore:\n\nThe ^ means that you hold down the Control key while pressing the following key (the same way\nthe  Shift key works for uppercase letters). A number of control-key sequences are duplicated\non other keys, so that you don´t need to press the control key: Esc will work in place of ^[,\nDel  will  work in place of ^?, Backspace will work in place of ^H, Tab will work in place of\n^I, Return or Enter will work in place of ^M and Linefeed will work in place of ^J. Some key‐\nboards  may  give  you  trouble  with some control keys. ^, ^^ and ^@ can usually be entered\nwithout pressing shift (i.e., try ^-, ^6 and ^2). Other keyboards may reassign these to other\nkeys.  Try:  ^.,  ^,  and ^/. ^Space can usually be used in place of ^@. ^\\ and ^] are inter‐\npreted by many communication programs, including telnet and kermit. Usually you just hit  the\nkey twice to get it to pass through the communication program.\n\nOn  some keyboards, holding the Alt key down while pressing another key is the same as typing\nEsc before typing the other key.\n\nOnce you have typed ^K H, the first help window appears at the top of  the  screen.  You  can\ncontinue  to  enter  and edit text while the help window is on. To page through other topics,\nhit Esc , and Esc . (that is, Esc , and Esc .). Use ^K H to dismiss the help window.\n\nYou can customize the keyboard layout, the help screens and a number of behavior defaults  by\ncopying  JOE´s  initialization file (usually /etc/joe/joerc) to .joerc in your home directory\nand then by modifying it. See the section joerc below.\n\nTo have JOE used as your default editor for e-mail and News, you need to set the  EDITOR  and\nVISUAL  environment variables in your shell initialization file (.cshrc or .profile) to refer\nto JOE (JOE usually resides as /usr/bin/joe).\n\nThere are a number of other obscure invocation parameters which may have to be set,  particu‐\nlarly  if  your terminal screen is not updating as you think it should. See the section Envi‐\nronment variables below.\n",
            "subsections": [
                {
                    "name": "Command Line Options",
                    "content": "These options can also be specified in the joerc file. Local options can be set depending  on\nthe  file-name  extension. Programs (.c, .h or .p extension) usually have autoindent enabled.\nWordwrap is enabled on other files, but rc files have it disabled.\n\nAn option is enabled when it´s given like this:\n\n\n\n-wordwrap\n\n\n\nAn option is disabled when it´s given like this:\n\n\n\n--wordwrap\n\n\n\nSome options take arguments. Arguments are given like this:\n\n\n\n-lmargin 5\n\n\n\nThe following global options may be specified on the command line:\n\n•   asis\nCharacters with codes above 127 will be sent to the terminal as-is, instead of as inverse\nof  the  corresponding  character  below  128. If this does not work, check your terminal\nserver. This option has no effect if UTF-8 encoding is used.\n\n\n•   assume256color\nAssume ANSI-like terminal emulator supports 256 colors even  if  termcap  entry  says  it\ndoesn´t.\n\n\n•   assumecolor\nAssume ANSI-like terminal emulator supports color even if termcap entry says it doesn´t.\n\n\n•   textcolor color\nSet color for text.\n\n\n•   statuscolor color\nSet color for status bar.\n\n\n•   helpcolor color\nSet color for help.\n\n\n•   menucolor color\nSet color for menus.\n\n\n•   promptcolor color\nSet color for prompts.\n\n\n•   msgcolor color\nSet color for messages.\n\n\n•   autoswap\nAutomatically  swap  ^K  B  with  ^K  K  if  necessary to mark a legal block during block\ncopy/move commands.\n\n\n•   backpath path\nSets path to a directory where all backup files are to be stored. If this is  unset  (the\ndefault) backup files are stored in the directory containing the file.\n\n\n•   baud nnn\nSet  the  baud rate for the purposes of terminal screen optimization (overrides value re‐\nported by stty). JOE inserts delays for  baud  rates  below  19200,  which  bypasses  tty\nbuffering so that typeahead will interrupt the screen output. Scrolling commands will not\nbe used for 38400 baud and above. This is useful for X-terms and other console ttys which\nreally aren´t going over a serial line.\n\n\n•   beep\nEnable  beeps when edit commands return errors, for example when the cursor goes past ex‐\ntremes.\n\n\n•   breaklinks\nWhen enabled, JOE first deletes the file before writing it in order to  break  hard-links\nand symbolic-links.\n\n\n•   breakhardlinks\nWhen  enabled,  and  the  file is not a symbolic links, JOE first deletes the file before\nwriting it in order to break hard-links.\n\n\n•   brpaste\nWhen JOE starts, send command to the terminal  emulator  that  enables  \"bracketed  paste\nmode\"  (but  only if the terminal seems to have the ANSI command set). In this mode, text\npasted into the window is bracketed with ESC [ 2 0 0 ~ and ESC [ 2 0 1 ~.\n\n\n•   columns nnn\nSet number of columns in terminal emulator (in case termcap entry is wrong). This is only\nuseful on old system which don´t have the \"get window size\" ioctl.\n\n\n•   csmode\nEnable  continued  search  mode:  Successive  ^K  Fs repeat the current search instead of\nprompting for a new one.\n\n\n•   dopadding\nEnable JOE to send padding NULs to the terminal (for very old terminals).\n\n\n•   exask\nWhen set, ^K X prompts for a new name before saving the file.\n\n\n•   floatmouse\nWhen set, mouse clicks can position the cursor beyond the ends of lines.\n\n\n•   guesscrlf\nWhen set, JOE tries to guess the file format MS-DOS or UNIX.\n\n\n•   guessindent\nWhen set, JOE tries to guess the indentation character and indentation step based on  the\ncontents  of  the  file. The algorithm is to find the greatest common factor of the three\nmost common indentations found in the file.\n\n\n•   guessnonutf8\nWhen set, enable guessing of non-UTF-8 files in UTF-8 locales.\n\n\n•   guessutf8\nWhen set, enable guessing of UTF-8 files in non-UTF-8 locales.\n\n\n•   guessutf16\nWhen set, enable guessing of UTF-16 files. If a UTF-16BE or UTF-16LE file is detected, it\nis converted to UTF-8 during load, and converted back to UTF-16 during save.\n\n\n•   helpon\nWhen set, start off with the on-line help enabled.\n\n\n•   helpisutf8\nWhen set, the help text in the joerc file is assumed to be UTF-8.\n\n\n•   icase\nSearch is case insensitive by default when set.\n\n\n•   joestate\nEnable reading and writing of ~/.joestate file\n\n\n•   joexterm\nSet this if xterm was configured with --paste64 option for better mouse support.\n\n\n•   keepup\nThe column number on the status line is updated constantly when this is set, otherwise it\nis updated only once a second.\n\n\n•   language language\nSets language for aspell.\n\n\n•   lightoff\nAutomatically turn off ^K B ^K K highlighting after a block operation.\n\n\n•   lines nnn\nSet number of lines in terminal emulator (in case termcap entry is wrong). This  is  only\nuseful on old system which don´t have the \"get window size\" ioctl.\n\n\n•   marking\nEnable marking mode: highlights between ^K B and cursor.\n\n\n•   menuabove\nPut menus above prompt instead of below them.\n\n\n•   menuexplorer\nStay  in  menu when a directory is selected (otherwise the directory is added to the path\nand the cursor jumps back to the prompt).\n\n\n•   menujump\nJump into the file selection menu when Tab Tab is hit.\n\n\n•   mid\nIf this option is set and the cursor moves off the window, the window will be scrolled so\nthat  the  cursor  is  in the center. This option is forced on slow terminals which don´t\nhave scrolling commands.\n\n\n•   left nn\nThis sets the number of columns the screen scrolls to the left when cursor moves past the\nleft edge or when the crawll command is issued. If nn is negative, then it´s the fraction\nof the screen to scroll. For example, -2 means scroll 1/2 the screen.\n\n\n•   right nn\nThis sets the number of columns the screen scrolls to the right when  cursor  moves  past\nthe  right  edge  or  when the crawlr command is issued. If nn is negative, then it´s the\nfraction of the screen to scroll. For example, -3 means scroll 1/3 the screen.\n\n\n•   mouse\nEnable xterm mouse support.\n\n\n•   nobackups\nDisable backup files.\n\n\n•   nocurdir\nDisable current-directory prefix in prompts.\n\n\n•   noexmsg\nDisable exiting message (\"File not changed so no update needed\")\n\n\n•   nolinefeeds\nDisable sending linefeeds to preserve screen history in terminal  emulator´s  scroll-back\nbuffer (only relevant when notite mode is enabled).\n\n\n•   nolocks\nDisable EMACS compatible file locks.\n\n\n•   nomodcheck\nDisable periodic file modification check.\n\n\n•   nonotice\nThis option prevents the copyright notice from being displayed when the editor starts.\n\n\n•   nosta\nThis  option eliminates the top-most status line. It´s nice for when you only want to see\nyour text on the screen or if you´re using a vt52.\n\n\n•   notagsmenu\nDisable selection menu for tags search with multiple results.\n\n\n•   notite\nDisable ti and te termcap sequences which are usually set up to save and restore the ter‐\nminal screen contents when JOE starts and exits.\n\n\n•   pastehack\nIf  keyboard input comes in as one block assume it´s a mouse paste and disable autoindent\nand wordwrap.\n\n\n•   noxon\nDisable ^S and ^Q flow control, possibly allowing ^S and ^Q to be used as editor keys.\n\n\n•   orphan\nOrphan extra files given on the command line instead of creating windows  for  them  (the\nfiles are loaded, but you need to use switch-buffer commands to access them).\n\n\n•   pg nnn\nSet number of lines to keep during Page Up and Page Down (use -1 for 1/2 window size).\n\n\n•   regex\nUse  standard regular expression syntax by default, instead of the JOE syntax (where spe‐\ncial characters have their meaning only when preceded with backslash).\n\n\n•   restore\nSet to have cursor positions restored to last positions of previously edited files.\n\n\n•   rtbutton\nSwap left and right mouse buttons.\n\n\n•   searchprompting\nShow previous search string in search command (like in PICO).\n\n\n•   skiptop nnn\nWhen set to N, the first N lines of the terminal screen are not used by JOE and  are  in‐\nstead  left  with  their original contents. This is useful for programs which call JOE to\nleave a message for the user.\n\n\n•   square\nEnable rectangular block mode.\n\n\n•   transpose\nTranspose rows with columns in all menus.\n\n\n•   title\nDisplay context (titles) in status line.  When enabled this shows the first line  of  the\nfunction  that  the cursor is in on the status line.  The syntax file context.jsf identi‐\nfies which lines are title lines.\n\n\n•   type\nSelect file type, overriding the automatically determined type. The file  types  are  de‐\nfined in the ftyperc file.\n\n\n•   undokeep nnn\nSets number of undo records to keep (0 means infinite).\n\n\n•   usetabs\nSet to allow rectangular block operations to use tabs.\n\n\n•   wrap\nEnable search to wrap to beginning of file.\n\n\n\n\nThe following local options may be specified on the command line:\n\n•   +nnn\nThe cursor starts on the specified line.\n\n\n•   autoindent\nEnable  auto-indent  mode. When you hit Enter on an indented line, the indentation is du‐\nplicated onto the new line.\n\n\n•   ccomment\nEnable ^G skipping of C-style comments /.../\n\n\n•   cpara characters\nSets list of characters which can indent paragraphs.\n\n\n•   cnotpara characters\nSets list of characters which begin lines which are definitely not part of paragraphs.\n\n\n•   cppcomment\nEnable ^G skipping of C++-style comments // ...\n\n\n•   crlf\nJOE uses CR-LF as the end of line sequence instead of just LF. This is for editing MS-DOS\nor VMS files.\n\n\n•   encoding encoding\nSet file encoding (like utf-8 or 8859-1).\n\n\n•   flowed\nSet to force an extra space after each line of a paragraph but the last.\n\n\n•   force\nWhen  set,  a  final  newline is appended to the file if there isn´t one when the file is\nsaved.\n\n\n•   french\nWhen set, only one space is inserted after periods in paragraph reformats instead of two.\n\n\n•   hex\nEnable hex-dump mode.\n\n\n•   highlight\nEnable syntax highlighting.\n\n\n•   highlightercontext\nEnable use of syntax file to identify comments and strings which should be  skipped  over\nduring ^G matching.\n\n\n•   indentc nnn\nSets the indentation character for shift left and shift right (^K , and ^K .). Use 32 for\nSpace, 9 for Tab.\n\n\n•   indentfirst\nWhen set, the smart home key jumps to the indentation point first, otherwise it jumps  to\ncolumn 1 first.\n\n\n•   istep nnn\nSets indentation step.\n\n\n•   linums\nEnable line number display.\n\n\n•   lmargin\nSet left margin.\n\n\n•   lmsg\nDefine left-side status bar message.\n\n\n•   overwrite\nEnable  overtype  mode. Typing overwrites existing characters instead of inserting before\nthem.\n\n\n•   picture\nEnable \"picture\" mode- allows cursor to go past ends of lines.\n\n\n•   poundcomment\n^G ignores # ... comments.\n\n\n•   purify\nFix indentation if necessary before shifting or smart backspace. For example, if indenta‐\ntion  uses  a mix of tabs and spaces, and indentc is space, then indentation will be con‐\nverted to all spaces before the shifting operation.\n\n\n•   rdonly\nSet read-only mode.\n\n\n•   rmargin nnn\nSet right margin.\n\n\n•   rmsg string\nDefine right-side status bar message.\n\n\n•   semicomment\n^G ignores ; ... comments.\n\n\n•   singlequoted\n^G ignores ´...´\n\n\n•   smartbacks\nEnable smart backspace and tab. When this mode is set backspace and tab indent  or  unin‐\ndent based on the values of the istep and indentc options.\n\n\n•   smarthome\nHome  key  first  moves  cursor  to  beginning  of  line, then if hit again, to the first\nnon-blank character.\n\n\n•   smsg string\nDefine status command format when cursor is on a character.\n\n\n•   spaces\nInsert spaces when Tab key is hit.\n\n\n•   syntax syntax\nSet syntax for syntax highlighting.\n\n\n•   tab nnn\nSet tab stop width.\n\n\n•   textdelimiters word delimiter list\nGive list of word delimiters which ^G will step through.\n\n\n\nFor example, \"begin=end:if=elif=else=endif\" means that ^G will jump between the matching  if,\nelif, else and endif.\n\n•   vhdlcomment\n^G ignores -- ... comments\n\n\n•   wordwrap\nJOE wraps the previous word when you type past the right margin.\n\n\n•   zmsg string\nDefine status command format when cursor is at end of file.\n\n\n•   xmsg string\nDefine startup message (usually the copyright notice).\n\n\n•   aborthint string\nGive the key sequence to show in prompts for abort (usually ^C).\n\n\n•   helphint string\nGive the key sequence to show in prompts for help (usually ^K H).\n\n\n\n"
                },
                {
                    "name": "Colors and attributes",
                    "content": "Combine  attributes  and  up to one foreground color and one background color to create argu‐\nments for color options like textcolor. For example: bold+bggreen+blue\n\n•   Attributes: bold, inverse, blink, dim, underline, and italic\n\n•   Foreground colors: white, cyan, magenta, blue, yellow, green, red, or black\n\n•   Background colors: bgwhite, bgcyan, bgmagenta, bgblue, bgyellow, bggreen, bgred or\nbgblack\n\n\n\nWith  a  16  color or 256 color terminal emulator (export TERM=xterm-16color), these brighter\nthan normal colors become available:\n\n•   Foreground: WHITE, CYAN, MAGENTA, BLUE, YELLOW, GREEN, RED or BLACK\n\n•   Background: bgWHITE,  bgCYAN,  bgMAGENTA,  bgBLUE,  bgYELLOW,  bgGREEN,  bgRED  or\nbgBLACK\n\n\n\nWith a 256 color terminal emulator (export TERM=xterm-256color), these become available:\n\n•   fgRGB and bgRGB, where R, G and B rand from 0 - 5. So: fg500 is bright red.\n\n•   fgNN and bgNN give shades of grey, where the intensity, NN, ranges from 0 - 23.\n\n\n"
                },
                {
                    "name": "Status line definition strings",
                    "content": "-lmsg  defines  the  left-justified  string and -rmsg defines the right-justified string. The\nfirst character of -rmsg is the background fill character.\n\n-smsg defines the status command (^K Space). -zmsg defines it when the cursor is at  the  end\nof the file. The last character of smsg or zmsg is the fill character.\n\nThe following escape sequences can be used in these strings:\n\n\n\n%t  12 hour time\n%u  24 hour time\n%T  O for overtype mode, I for insert mode\n%W  W if wordwrap is enabled\n%I  A if autoindent is enabled\n%X  Rectangle mode indicator\n%n  File name\n%m  ´(Modified)´ if file has been changed\n%*  ´*´ if file has been changed\n%R  Read-only indicator\n%r  Row (line) number\n%c  Column number\n%o  Byte offset into file\n%O  Byte offset into file in hex\n%a  Ascii value of character under cursor\n%A  Ascii value of character under cursor in hex\n%w  Width of character under cursor\n%p  Percent of file cursor is at\n%l  No. lines in file\n%k  Entered prefix keys\n%S  ´*SHELL*´ if there is a shell running in window\n%M  Macro recording message\n%y  Syntax\n%e  Encoding\n%x  Context (first non-indented line going backwards)\n%dd day\n%dm month\n%dY year\n%Ename%  value of environment variable\n%Tname%  value of option (ON or OFF for Boolean options)\n\n\n\nThese formatting escape sequences may also be given:\n\n\n\n\\i  Inverse\n\\u  Underline\n\\b  Bold\n\\d  Dim\n\\f  Blink\n\\l  Italic\n\n\n"
                },
                {
                    "name": "Basic Editing",
                    "content": "When  you  type  characters  into  the editor, they are normally inserted into the file being\nedited (or appended to the file if the cursor is at the end of the file). This is the  normal\noperating  mode  of the editor. If you want to replace some existing text, you have to delete\nthe old text before or after you type in the replacement text. The Backspace key can be  used\nfor  deleting  text:  move  the  cursor  to  right  after the text you want to delete and hit\nBackspace a number of times.\n\nHit the Enter or Return key to insert a line-break. For example, if the  cursor  was  in  the\nmiddle  of  a  line and you hit Enter, the line would be split into two lines with the cursor\nappearing at the beginning of the second line. Hit Backspace at the beginning of  a  line  to\neliminate a line-break.\n\nUse  the  arrow keys to move around the file. If your keyboard doesn´t have arrow keys (or if\nthey don´t work for some reason), use ^F to move  forwards  (right),  ^B  to  move  backwards\n(left),  ^P  to  move  to the previous line (up), and ^N to move to the next line (down). The\nright and left arrow keys simply move forwards or backwards one character at a  time  through\nthe  text:  if you´re at the beginning of a line and you press left-arrow, you will end up at\nthe end of the previous line. The up and down arrow  keys  move  forwards  and  backwards  by\nenough  characters so that the cursor appears in the same column that it was in on the origi‐\nnal line.\n\nIf you want to indent the text you enter, you can use the Tab key.  This  inserts  a  special\ncontrol  character which makes the characters which follow it begin at the next tab stop. Tab\nstops normally occur every 8 columns, but this can be changed with the ^T D  command.  PASCAL\nand C programmers often set tab stops on every 4 columns.\n\nIf  for  some  reason your terminal screen gets messed up (for example, if you receive a mail\nnotice from biff), you can have the editor refresh the screen by hitting ^R.\n\nThere are many other keys for deleting text and moving around the file. For example,  hit  ^D\nto  delete  the  character  the cursor is on instead of deleting backwards like Backspace. ^D\nwill also delete a line-break if the cursor is at the end of a line. Type ^Y  to  delete  the\nentire line the cursor is on or ^J to delete just from the cursor to the end of the line.\n\nHit  ^A to move the cursor to the beginning of the line it´s on. Hit ^E to move the cursor to\nthe end of the line. Hit ^U or ^V for scrolling the cursor up or down 1/2 a screen´s worth.\n\"Scrolling\" means that the text on the screen moves, but the cursor stays at the  same  place\nrelative  to  the  screen. Hit ^K U or ^K V to move the cursor to the beginning or the end of\nthe file. Look at the help screens in the editor to find even more delete and  movement  com‐\nmands.\n\nIf  you make a mistake, you can hit ^ to \"undo\" it. On most keyboards you hit just ^- to get\n^, but on some you might have to hold both the Shift and Control keys down at the same  time\nto  get it. If you \"undo\" too much, you can \"redo\" the changes back into existence by hitting\n^^ (type this with just ^6 on most keyboards).\n"
                },
                {
                    "name": "Cursor position history",
                    "content": "If you were editing in one place within the file, and you then temporarily  had  to  look  or\nedit  some  other place within the file, you can get back to the original place by hitting ^K\n-. This command actually returns you to the last place you made a change in the file. You can\nstep through a history of places with ^K - and ^K =, in the same way you can step through the\nhistory of changes with the \"undo\" and \"redo\" commands.\n"
                },
                {
                    "name": "Save and exit",
                    "content": "When you are done editing the file, hit ^K X to exit the editor. You will be prompted  for  a\nfile name if you hadn´t already named the file you were editing.\n\nWhen  you  edit  a file, you actually edit only a copy of the file. So if you decide that you\ndon´t want the changes you made to a file during a particular edit session, you can hit ^C to\nexit the editor without saving them.\n\nIf you edit a file and save the changes, a backup copy of that file is created in the current\ndirectory, with a ~ appended to the name, which contains the original version of the file.\n"
                },
                {
                    "name": "File operations",
                    "content": "You can hit ^K D to save the current file (possibly under a different name from what the file\nwas called originally). After the file is saved, you can hit ^K E to edit a different file.\n\nIf you want to save only a selected section of the file, see the section on Blocks below.\n\nIf you want to include another file in the file you´re editing, use ^K R to insert it.\n"
                },
                {
                    "name": "Filenames",
                    "content": "Wherever  JOE  expects  you  to  enter a file name, whether on the command line or in prompts\nwithin the editor, you may also type:\n\n•   !command\n\n\n\nTo read or write data to or from a shell command. For example, use joe ´´!ls´´ to get a copy of\nyour directory listing to edit or from within the editor use ^K D !mail jhallen@world.std.com\nto send the file being edited to me.\n\n•   >>filename\n\n\n\nUse this to have JOE append the edited text to the end of the file \"filename.\"\n\n•   filename,START,SIZE\n\n\n\nUse this to access a fixed section of a file or device. START and SIZE may be entered in dec‐\nimal  (ex.:  123)  octal  (ex.:  0777)  or  hexadecimal  (ex.:  0xFF).  For  example, use joe\n/dev/fd0,508,2 to edit bytes 508 and 509 of the first floppy drive in Linux.\n\n•   -\n\n\n\nUse this to get input from the standard input or to write output to the standard output.  For\nexample,  you  can  put JOE in a pipe of commands: quota -v | joe | mail root, if you want to\ncomplain about your low quota.\n"
                },
                {
                    "name": "Using JOE in a shell script",
                    "content": "JOE used to use /dev/tty to access the terminal. This  caused  a  problem  with  idle-session\nkillers  (they  would  kill JOE because the real tty device was not being accessed for a long\ntime), so now JOE only uses /dev/tty if you need to pipe a file into JOE, as in:\n\n\n\necho \"hi\" | joe\n\n\n\nIf you want to use JOE in a shell script which has its stdin/stdout redirected,  but  you  do\nnot need to pipe to it, you should simply redirect JOE´s stdin/stdout to /dev/tty:\n\n\n\njoe filename  </dev/tty >/dev/tty\n\n\n"
                },
                {
                    "name": "Word wrap and formatting",
                    "content": "If you type past the right edge of the screen in a C or PASCAL language file, the screen will\nscroll to the right to follow the cursor. If you type past the right edge of the screen in  a\nnormal  file  (one  whose  name doesn´t end in .c, .h or .p), JOE will automatically wrap the\nlast word onto the next line so that you don´t have to hit Enter. This  is  called  word-wrap\nmode.  Word-wrap  can be turned on or off with the ^T W command. JOE´s initialization file is\nusually set up so that this mode is automatically turned on for all  non-program  files.  See\nthe section below on the joerc file to change this and other defaults.\n\nAside  for  Word-wrap  mode,  JOE  does not automatically keep paragraphs formatted like some\nword-processors. Instead, if you need a paragraph to be reformatted, hit ^K J.  This  command\n\"fills  in\" the paragraph that the cursor is in, fitting as many words in a line as is possi‐\nble. A paragraph, in this case, is a block of text separated above and below by a blank line.\n\nThe margins which JOE uses for paragraph formatting and word-wrap can be set with  the  ^T  L\nand  ^T  R  commands.  If the left margin is set to a value other than 1, then when you start\ntyping at the beginning of a line, the cursor will immediately jump to the left margin.\n\nThere are a number of options which control the paragraph reformatter and word wrapper:\n\n•   The cpara option provides a list of characters which can indent a paragraph. For example,\nin  e-mail  quoted  matter is indicated by > at the beginnings of line, so this character\nshould be in the cpara list.\n\n•   The cnotpara option provides a list of characters which, if they are the first non-white‐\nspace  character  of  a  line,  indicate that the line is not to be included as part of a\nparagraph for formatting. For example, lines beginning with ´.´ in nroff can not be para‐\ngraph lines.\n\n•   Autoindent  mode  affects  the  formatter. If autoindent is disabled, only the first line\nwill be indented. If autoindent is enabled, the entire paragraph is indented.\n\n•   french determines how many spaces are inserted after periods.\n\n•   When flowed is enabled, a space is inserted after each but the last  line  of  the  para‐\ngraph.  This  indicates that the lines belong together as a single paragraph in some pro‐\ngrams.\n\n•   When overtype is enabled, the word wrapper will not insert lines.\n\n\n"
                },
                {
                    "name": "Centering",
                    "content": "If you want to center a line within the margins, use the ^K A command.\n"
                },
                {
                    "name": "Spell checker",
                    "content": "Hit Esc N to check the spelling of the word the cursor is on using the aspell program (or is‐\npell  program  if you modify the joerc file). Hit Esc L to check the highlighted block or the\nentire file if no block is highlighted.\n\nJOE passes the language and character encoding to the spell checker. To change the  language,\nhit ^T V. For example, use enUS for English.\n"
                },
                {
                    "name": "Overtype mode",
                    "content": "Sometimes  it´s tiresome to have to delete old text before or after you insert new text. This\nhappens, for example, when you are changing a table and you want to maintain the column posi‐\ntion of the right side of the table.\nWhen this occurs, you can put the editor in overtype mode with ^T T.\nWhen  the  editor is in this mode, the characters you type in replace existing characters, in\nthe way an idealized typewriter would. Also, Backspace simply moves left instead of  deleting\nthe  character to the left, when it´s not at the end or beginning of a line. Overtype mode is\nnot the natural way of dealing with text electronically, so you should go back to insert-mode\nas soon as possible by typing ^T T again.\n\nIf you need to insert while you´re in overtype mode, hit ^@. This inserts a single Space into\nthe text.\n"
                },
                {
                    "name": "Control and Meta characters",
                    "content": "Each character is represented by a number. For example, the number for ´A´ is 65 and the num‐\nber  for ´1´ is 49. All of the characters which you normally see have numbers in the range of\n32 - 126 (this particular arbitrary assignment between characters and numbers is  called  the\nASCII  character  set). The numbers outside of this range, from 0 to 255, aren´t usually dis‐\nplayed, but sometimes have other special meanings. The number 10, for example,  is  used  for\nthe  line-breaks. You can enter these special, non-displayed control characters by first hit‐\nting ^Q and then hitting a character in the range @ A B C ... X Y Z [ ^ ] \\  to get the num‐\nber  0 - 31, and ? to get 127. For example, if you hit ^Q J, you´ll insert a line-break char‐\nacter, or if you hit ^Q I, you´ll insert a Tab character (which does the same thing  the  Tab\nkey  does).  A  useful control character to enter is 12 (^Q L), which causes most printers to\nadvance to the top of the page. You´ll notice that JOE displays this character as  an  under‐\nlined  L.  You  can enter the characters above 127, the meta characters, by first hitting ^\\.\nThis adds 128 to the next (possibly control) character entered. JOE displays characters above\n128  in  inverse-video. Some foreign languages, which have more letters than English, use the\nmeta characters for the rest of their alphabet. You have to put the editor in  asis  mode  to\nhave these passed untranslated to the terminal.\n\nNote:  JOE  now  normally  passes all 8-bits to the terminal unless the locale is set to C or\nPOSIX. If the locale is C or POSIX, then the asis flag  determines  if  meta  characters  are\nshown in inverse video or passed directly to the terminal.\n\nNote: In older version of JOE, you had to use Esc ´´ to enter control characters.\n"
                },
                {
                    "name": "Character sets and UTF-8",
                    "content": "JOE  natively  handles two classes of character sets: UTF-8 and byte coded (like ISO-8859-1).\nFor these character sets, the file is loaded as-is into memory, and is exactly preserved dur‐\ning save, even if it contains UTF-8 coding errors.\n\nIt  can not yet natively handle other major classes such as UTF-16 or GB2312. There are other\nrestrictions: character sets must use LF (0x0A) or CR-LF (0x0D - 0x0A) as  line  terminators,\nspace must be 0x20 and tab must be 0x09. Basically, the files must be UNIX or MS-DOS compati‐\nble text files.\n\nThis means EBCDIC will not work properly (but you would need to handle  fixed  record  length\nlines anyway) and character sets which use CR terminated lines (MACs) will not yet work.\n\nJOE now supports UTF-16 (both big endian and little endian). It supports UTF-16 by converting\nto UTF-8 during load, and converting back to UTF-16 during save.\n\nThe terminal and the file can have different encodings. JOE will translate between  the  two.\nCurrently, one of the two must be UTF-8 for translation to work.\n\nThe  character set for the terminal and the default character set assumed for files is deter‐\nmined by the ´LCALL´ environment variable (and if that´s not set, LCCTYPE and LANG are also\nchecked).\n\nFor example, if LCALL is set to:\n\n\n\ndeDE\n\n\n\nThen the character set will be ISO-8859-1.\n\nIf LCALL is set to:\n\n\n\ndeDE.UTF-8\n\n\n\nThe character set will be UTF-8.\n\nHit  ^T  E  to  change  the  coding for the file. Hit Tab Tab at this prompt to get a list of\navailable codings. There are a number of built-in character sets, plus you can install  char‐\nacter sets in the ~/.joe/charmaps and /usr/share/joe/charmaps directories.\n\nCheck: /usr/share/i18n/charmaps for example character set files. Only byte oriented character\nsets will work. Also,  the  file  should  not  be  gzipped  (all  of  the  charmap  files  in\n/usr/share/i18n/charmaps  on  my  computer were compressed). The parser is very bad, so basi‐\ncally the file has to look exactly like the example one in /usr/share/joe/charmaps.\n\nYou can hit ^K Space to see the current character set.\n\nYou can hit ^Q x to enter a Unicode character if the file coding is UTF-8.\n"
                }
            ]
        },
        "Prompts": {
            "content": "Most prompts record a history of the responses you give them. You can hit up and  down  arrow\nto step through these histories.\n\nPrompts are actually single line windows with no status line, so you can use any editing com‐\nmand that you normally use on text within the prompts. The prompt history  is  actually  just\nother  lines  of  the same \"prompt file\". Thus you can can search backwards though the prompt\nhistory with the normal ^K F command if you want.\n\nSince prompts are windows, you can also switch out of them with ^K P and ^K N.\n",
            "subsections": [
                {
                    "name": "Completion and selection menus",
                    "content": "You can hit Tab in just about any prompt to request JOE to complete the word you are  typing.\nIf  JOE  beeps,  there  are  either no completions or many. As with the \"bash\" shell, hit Tab\ntwice to bring up a list of all the possibilities. This list is actually a menu, but  by  de‐\nfault,  the  cursor does not jump into it since it is usually easier to just type in your se‐\nlection. You can, however, jump into the menu window with ^K P (move to previous window)  and\nuse  the arrow keys and <Enter> to make your selection. Also in a menu, you can hit the first\nletter of any of the items to make the cursor jump directly to it. The ^T option  menu  works\nlike this.\n\nIf the menu is too large to fit in the window, you can hit Page Up and Page Down to scroll it\n(even if you have not jumped into it).\n\nTab completion works in the search and replace prompts as well. In this case,  JOE  tries  to\ncomplete the word based on the contents of the buffer. If you need search for the Tab charac‐\nter itself, you can enter it with ^Q Tab.\n\nAlso, you can hit Esc Enter in a text window to request JOE to complete the word you are typ‐\ning.  As  with the search prompt, JOE tries to complete the word based on the contents of the\nbuffer. It will bring up a menu of possibilities if you hit Esc Enter twice.\n"
                },
                {
                    "name": "Where am I?",
                    "content": "Hit ^K Space to have JOE report the line number, column number, and byte number on  the  last\nline  of  the  screen.  The  number associated with the character the cursor is on (its ASCII\ncode) is also shown. You can have the line number and/or column number  always  displayed  on\nthe status line by placing the appropriate escape sequences in the status line setup strings.\nEdit the joerc file for details.\n"
                },
                {
                    "name": "What if I hit <strong>^K</strong> by accident?",
                    "content": "Hit the space bar. This runs an innocuous command (it shows the line  number  on  the  status\nbar).\n"
                },
                {
                    "name": "Temporarily suspending the editor",
                    "content": "If you need to temporarily stop the editor and go back to the shell, hit ^K Z. You might want\nto do this to stop whatever you´re editing and answer an e-mail  message  or  read  this  man\npage,  for  example.  You have to type fg or exit (you´ll be told which when you hit ^K Z) to\nreturn to the editor.\n"
                },
                {
                    "name": "Searching for text",
                    "content": "Hit ^K F to have the editor search forwards or backwards for a  text  fragment  (string)  for\nyou.  You  will be prompted for the text to search for. After you hit Enter, you are prompted\nto enter options.\nYou can just hit Enter again to have the editor immediately search forwards for the text,  or\nyou can enter one or more of these options:\n\n•   b\n\n\n\n\nSearch backwards instead of forwards.\n\n•   i\n\n\n\n\nTreat  uppercase  and  lower  case letters as the same when searching. Normally uppercase and\nlowercase letters are considered to be different.\n\n•   nnn\n\n\n\n\n(where nnn is a number) If you enter a number, JOE searches for the  Nth  occurrence  of  the\ntext. This is useful for going to specific places in files structured in some regular manner.\n\n•   r\n\n\n\n\nReplace  text.  If  you enter the r option, then you will be further prompted for replacement\ntext. Each time the editor finds the search text, you will be prompted as to whether you want\nto  replace  the  found search text with the replacement text. You hit: y to replace the text\nand then find the next occurrence, n to not replace this text, but to then find the next  oc‐\ncurrence,  r  to replace all of the remaining occurrences of the search text in the remainder\nof the file without asking for confirmation (subject to the nnn option above), or ^C to  stop\nsearching and replacing.\n\nYou  can  also hit B or Backspace to back up to the previously found text (if it had been re‐\nplaced, the replacement is undone).\n\n•   a\n\n\n\n\nThe search covers all loaded buffers. So to replace all instances of \"foo\" with \"bar\" in  all\n.c files in the current directory:\n\n\n\njoe *.c\n^K F\nfoo <Enter>\nra <Enter>\nbar <Enter>\n\n\n\n•   e\n\n\n\n\nThe  search  covers  all  files in the grep or make error list. You can use a UNIX command to\ngenerate a list of files and search and replace through the list. So to replace all instances\nof  \"foo\" with \"bar\" in all .c files which begin with f. You can also use \"ls\" and \"find\" in‐\nstead of grep to create the file list.\n\n\n\nEsc G\ngrep -n foo f*.c <Enter>\n^K F\nfoo <Enter>\nre <Enter>\nbar <Enter>\n\n\n\n•   x\n\n\n\n\nJOE will use the standard syntax for regular expressions if this  option  is  given.  In  the\nstandard syntax, these characters have their special meanings directly, and do not have to be\nescaped with backslash: ., *, +, ?, {, }, (, ), |, ^, $ and [.\n\n•   y\n\n\n\n\nJOE will use the JOE syntax for regular expressions instead  of  the  standard  syntax.  This\noverrides the \"-regex\" option.\n\n•   v\n\n\n\n\nJOE  will send debug information about the regular expression to the startup log. The log can\nbe viewed with the showlog command.\n\nYou can hit ^L to repeat the previous search.\n\nYou can hit ^K H at the search and replace options prompt to bring up a list  of  all  search\nand replace options.\n"
                },
                {
                    "name": "Regular Expressions",
                    "content": "A number of special character sequences may be entered as search text:\n\n•   \\*\n\n\n\n\nThis finds zero or more of the item to the left. For example, if you give AB\\*C as the search\ntext, JOE will try to find an A followed by any number of Bs, and then a C.\n\n•   \\+\n\n\n\n\nThis finds one or more of the item to the left. For example, if you give AB\\+C as the  search\ntext, JOE will try to find an A followed by one or more Bs, and then a C.\n\n•   \\?\n\n\n\n\nThis  indicates  that the item to the left is optional. For example, if you give AB\\?C as the\nsearch text, JOE will find AC or ABC.\n\n•   \\{min,max}\n\n\n\n\nThis indicates that JOE should try to find a string with a specific number of occurrences  of\nthe  item  to the left. For example, AX\\{2,5}B will match these strings: AXXB, AXXXB, AXXXXB,\nand AXXXXXB. Min can be left out to indicate 0 occurrences. Max (and the comma) can  be  left\nout to indicate any number of occurrences.\n\n•   \\.\n\n\n\n\nThis  finds exactly one character. For example, if you give A\\.B as the search text, JOE will\nfind AXB, but not AB or AXXB.\n\n•   \\!\n\n\n\n\nThis works like ., but matches a balanced C-language expression. For example, if  you  search\nfor  malloc(\\!\\*),  then  JOE  will  find all function calls to malloc, even if there was a )\nwithin the parenthesis.\n\n•   \\|\n\n\n\n\nThis finds the item on the left or the item on the right. For example, if you  give  A\\|B  as\nthe search text, JOE will try to find either an A or a B.\n\n•   \\( \\)\n\n\n\n\nUse  these  to  group characters together. For example, if you search for \\(foo\\)\\+, then JOE\nwill find strings like \"foo\", and \"foofoofoo\".\n\n•   ^ \\$\n\n\n\n\nThese match the beginnings and endings of lines. For example, if you give ^test\\$,  then  JOE\nwith find test on a line by itself.\n\n•   \\\\\\\n\n\n\n\nThese  match  the  beginnings  and endings of words. For example, if you give \\is\\\\, then JOE\nwill find the word \"is\" but will not find the \"is\" in \"this\".\n\n•   \\[...]\n\n\n\n\nThis matches any single character which appears within the brackets. For example, if \\[Tt]his\nis  entered as the search string, then JOE finds both This and this. Ranges of characters can\nbe entered within the brackets. For example, \\[A-Z] finds any uppercase letter. If the  first\ncharacter  given  in the brackets is ^, then JOE tries to find any character not given in the\nthe brackets. To include - itself, include it as the last or first character (possibly  after\n^).\n\n•   \\\\\n\n\n\n\nMatches a single \\.\n\n•   \\n\n\n\n\n\nThis finds the special end-of-line or line-break character.\n\nA number of special character sequences may also be given in the replacement string:\n\n•   \\&\n\n\n\n\nThis  gets  replaced  by the text which matched the search string. For example, if the search\nstring was \\\\*\\\\, which matches words, and you give \"\\&\",  then  JOE  will  put  quote  marks\naround words.\n\n•   \\1 - \\9\n\n\n\n\nThese  get replaced with the text which matched the Nth grouping; the text within the Nth set\nof \\( \\).\n\n•   \\l, \\u\n\n\n\n\nConvert the next character of the replacement text to lowercase or uppercase.\n\n•   \\L, \\U\n\n\n\n\nConvert all following replacement text to lowercase or uppercase. Conversion stops when \\E is\nencountered.\n\n•   \\\\\n\n\n\n\nUse this if you need to put a \\ in the replacement string.\n\n•   \\n\n\n\n\n\nUse this if you need to put a line-break in the replacement string.\n\nSome examples:\n\nSuppose  you  have a list of addresses, each on a separate line, which starts with \"Address:\"\nand has each element separated by commas. Like so:\n\nAddress: S. Holmes, 221b Baker St., London, England\n\nIf you wanted to rearrange the list, to get the country first, then the city, then  the  per‐\nson´s name, and then the address, you could do this:\n\nType ^K F to start the search, and type:\n\nAddress:\\(\\.\\*\\),\\(\\.\\*\\),\\(\\.\\*\\),\\(\\.\\*\\)\\$\n\nto  match  \"Address:\",  the four comma-separated elements, and then the end of the line. When\nasked for options, you would type r to replace the string, and then type:\n"
                },
                {
                    "name": "Address:\\4,\\3,\\1,\\2",
                    "content": "To shuffle the information the way you want it. After hitting return, the search would begin,\nand the sample line would be changed to:\n\nAddress: England, London, S. Holmes, 221b Baker St.\n"
                },
                {
                    "name": "Escape sequences",
                    "content": "JOE understands the following escape sequences withing search and replacement strings:\n\n•   \\x{10ffff}\n\n\n\n\nThis matches a specific Unicode code point given in hexadecimal.\n\n•   \\xFF\n\n\n\n\nThis matches a specific character specified in hexadecimal.\n\n•   \\377\n\n\n\n\nThis matches a specific character specified in octal.\n\n•   \\p{Ll}\n\n\n\n\nThis matches any character in the named Unicode category or block.\n\nThe block names, such as \"Latin-1 Supplement\" or \"Arabic\" can be found here:\n\nUnicode Blocks ftp://ftp.unicode.org/Public/8.0.0/ucd/Blocks.txt\n\nThe category names such as \"Ll\" can be found here:\n\nUnicode Categories ftp://ftp.unicode.org/Public/5.1.0/ucd/UCD.html#GeneralCategoryValues\n\nNote that a single letter matches all of the category names which start with that letter. For\nexample, \\p{N} (any number) include \\p{Nd} (decimal digit), \\p{Nl} (letter number) and \\p{No}\n(other number).\n\n•   \\d\n\n\n\n\nThis matches any Unicode digit. This is the same as \\p{Nd}.\n\n•   \\D\n\n\n\n\nThis matches anything except for a Unicode digit. This is the same as \\[^\\p{Nd}].\n\n•   \\w\n\n\n\n\nThis matches any word character. This is the same as \\[^\\p{C}\\p{P}\\p{Z}].\n\n•   \\W\n\n\n\n\nThis matches anything except for a word character. This is the same as \\[\\p{C}\\p{P}\\p{Z}].\n\n•   \\s\n\n\n\n\nThis matches any space character. This is the same as \\[\\t\\r\\f\\n\\p{Z}].\n\n•   \\S\n\n\n\n\nThis matches anything except for a spacing character. This is the same as \\[^\\t\\r\\f\\n\\p{Z}].\n\n•   \\i\n\n\n\n\nThis matches an identifier start character. This is the same as \\[\\p{L}\\p{Pc}\\p{Nl}].\n\n•   \\I\n\n\n\n\nThis  matches  anything  except  for  an  identifier  start  character.  This  is the same as\n\\[^\\p{L}\\p{Pc}\\p{Nl}].\n\n•   \\c\n\n\n\n\nThis   matches   an   identifier   continuation   character.   This   is    the    same    as\n\\[\\i\\p{Mn}\\p{Mc}\\p{Nd}\\x{200c}\\x{200d}].\n\n•   \\C\n\n\n\n\nThis  matches  anything  except for an identifier continuation character. This is the same as\n\\[^\\i\\p{Mn}\\p{Mc}\\p{Nd}\\x{200c}\\x{200d}].\n\n•   \\t Tab\n\n•   \\n Newline\n\n•   \\r Carriage return\n\n•   \\b Backspace\n\n•   \\a Alert\n\n•   \\f Formfeed\n\n•   \\e Escape\n\n•   \\\\ Backslash\n\n\n"
                },
                {
                    "name": "Incremental search",
                    "content": "Use Esc S to start an increment search forwards, or Esc R  to  start  an  incremental  search\nbackwards. As you type the search string, the cursor will jump to the first text that matches\nthe regular expression you have entered so far.\n\nHit Esc S or Esc R again to find the next occurrence of the text or to switch  the  direction\nof the search.\n\n^S,  ^\\ and ^L have the same effect as Esc S. ^R has the same effect as Esc R. These keys are\nto support JMACS.\n\nHit Backspace to undo the last incremental search action. The last action could be  a  repeat\nof a previous search or the entering of a new character.\n\nUse  ^Q  to  insert control characters into the search text. Previously, ` could also be used\nfor this.\n\nHit any other key to exit the increment search.\n"
                },
                {
                    "name": "Goto matching delimiter",
                    "content": "Hit ^G to jump between matching delimiters. This works on both character delimiters (like ´(´\nand  ´)´)  and  word  delimiters  for languages like Pascal and Verilog which use \"begin\" and\n\"end\" to delimit blocks. It also works for matching start and end tags in XML. If a  word  is\nnot known, ^G starts a search with the word moved into the search prompt.\n\nFor  ^G  to work on word delimiters, the cursor must be positioned on the first letter of the\nword. So in XML, if the cursor is on the < in <foo>, it will jump to the >. But if it is  one\nthe ´f´, it will jump to the matching </foo>. Likewise, in C, ^G will jump between #if, #else\nand #endif, but you need to position the cursor on the letter, not the ´#´.\n\n^G is smart enough to skip delimiters found in quoted or commented-out matter.  You  need  to\ntell  JOE  how your language indicates this: see the ftyperc file for examples of how this is\ndone.\n\nThe are a number of options which control the behavior of ^G.  These  options  control  which\nkinds of comments ^G can skip over:\n\n•   ccomment\n\n•   cppcomment\n\n•   pountcomment\n\n•   semicomment\n\n•   vhdlcomment\n\n\n\nThese options determine which kinds of strings ^G can skip over:\n\n•   singlequoted\n\n•   doublequoted\n\n\n\nThis  option  allows  an annotated syntax file to determine which text can be counted as com‐\nments or strings which can be skipped over by ^G:\n\n•   highlightercontext\n\n\n\nThis option enables the use of syntax files to identify comments and strings which should  be\nskipped  over  during ^G matching. The syntax file states should be annotated with the string\nand comment keywords for this to work.\n\n•   textdelimiters\n\n\n\nThis  option  provides  a  list  of   word   delimiters   to   match.   For   example,   \"be‐\ngin=end:if=elif=else=endif\"  means  that ^G will jump between the matching if, elif, else and\nendif. It will also jump between begin and end.\n\n^G has a built-in table for matching character delimiters- it knows that ( goes with ).\n\n^G has a built-in parser to handle start/end tag matching for XML.\n"
                }
            ]
        },
        "Regions": {
            "content": "If you want to move, copy, save or delete a specific section of text,  you  can  do  it  with\nhighlighted  blocks.  First,  move the cursor to the start of the section of text you want to\nwork on, and press ^K B. Then move the cursor to the character just after the end of the text\nyou  want  to  affect  and press ^K K. The text between the ^K B and ^K K should become high‐\nlighted. Now you can move your cursor to someplace else in your document and press  ^K  M  to\nmove the highlighted text there.\nYou  can  press ^K C to make a copy of the highlighted text and insert it to where the cursor\nis positioned. ^K Y to deletes the highlighted text. ^K W, writes the highlighted text  to  a\nfile.\n\nA  very useful command is ^K /, which filters a block of text through a UNIX command. For ex‐\nample, if you select a list of words with ^K B and ^K K, and then type ^K / sort, the list of\nwords  will  be  sorted. Another useful UNIX command for ^K /, is tr. If you type ^K / tr a-z\nA-Z, then all of the letters in the highlighted block will be converted to uppercase.\n",
            "subsections": [
                {
                    "name": "How do I deselect a highlighted region?",
                    "content": "After you are finished with some region operations, you can just leave the highlighting on if\nyou  don´t mind it (but don´t accidentally hit ^K Y). If it really bothers you, however, just\nhit ^K B ^K K, to turn the highlighting off.\n\nBeginning with JOE 4.2, you can hit ^C to cancel the region selection.\n"
                },
                {
                    "name": "New ways of selecting regions",
                    "content": "The classic way is to hit ^K B at the beginning and ^K K  at  the  end.  These  set  pointers\ncalled markb and markk. Once these are set you can jump to markb with Esc B and jump to markk\nwith Esc K.\n\nNew way: hit Ctrl-Right Arrow to start selecting rightward. Each time you hit Ctrl-Right  Ar‐‐\nrow,  the  block  is  extended  one more to the right. This uses a simple macro: \"beginmark‐\ning,rtarw,togglemarking\".\n\nUnfortunately, there is no standard way to get the keysequence given by the terminal emulator\nwhen you hit Ctrl-Right Arrow. Instead you have to determine this sequence yourself and enter\nit directly in the joerc file. Some examples are given for Xterm and gnome-terminal.  Hit  ^Q\nCtrl-Right  Arrow  within JOE to have the sequence shown on your screen. Note that Putty uses\nEsc Esc [ C which will not appear with ^Q Right Arrow (also Esc Esc is the set bookmark  com‐\nmand, so you need to unbind it to do this in Putty).\n\nAlso  you  can hit Ctrl-Delete to cut and Ctrl-Insert to paste if the sequence for these keys\nare known.\n\nThe mouse can also be used to select text if mouse support is enabled in JOE.\n"
                },
                {
                    "name": "Indenting program blocks",
                    "content": "Auto-indent mode is toggled with the ^T I command. The joerc file is normally set up so  that\nfiles  with  names  ending  with .p, .c or .h have auto-indent mode enabled. When auto-indent\nmode is enabled and you hit Enter, the cursor will be placed in  the  same  column  that  the\nfirst non-whitespace character was on in the original line.\n\nYou  can  use the ^K , and ^K . commands to shift a block of text to the left or right. If no\nhighlighting is set when you give these commands, the program block (as indicated by indenta‐\ntion)  that  the  cursor is located in will be selected, and will be moved by subsequent ^K ,\nand ^K . commands.\n\nThe number of columns these commands shift by and the character used for shifting can be  set\nthrough the istep and indentc options. These options are available in the ^T menu. Also, ^T =\ncan be used to quickly select from a number of common values for indentation step and charac‐\nter.\n\nJOE has a number of additional options related to indenting programs:\n\n•   smartbacks\nEnable  smart  backspace and tab. When this mode is set Backspace and Tab indent or unin‐\ndent based on the values of the istep and indentc options.\n\n\n•   smarthome\nThe Home and ^A keys first move the cursor to the beginning of  the  line,  then  if  hit\nagain, to the first non-blank character.\n\n\n•   indentfirst\nSmart  home goes to first non-blank character first, instead of going to the beginning of\nthe line first.\n\n\n•   purify\nFix indentation if necessary before shifting or smart backspace. For example, if indenta‐\ntion  uses  a mix of tabs and spaces, and indentc is space, then indentation will be con‐\nverted to all spaces before the shifting operation.\n\n\n•   guessindent\nWhen set, JOE tries to guess the indentation character and indentation step based on  the\ncontents  of  the  file. The algorithm is to find the greatest common factor of the three\nmost common indentations found in the file.\n\n\n\n"
                },
                {
                    "name": "Rectangle mode",
                    "content": "Type ^T X to have ^K B and ^K K select rectangular blocks instead of  stream-of-text  blocks.\nThis  is  also  known  as columnar mode. This mode is useful for moving, copying, deleting or\nsaving columns of text. You can also filter columns of text with the ^K  /  command-  if  you\nwant to sort a column, for example. The insert file command, ^K R is also affected.\n\nWhen  rectangle  mode is selected, overtype mode is also useful (^T T). When overtype mode is\nselected, rectangles will replace existing text instead of getting inserted before  it.  Also\nthe  delete  block  command (^K Y) will clear the selected rectangle with Spaces and Tabs in‐\nstead of deleting it. Overtype mode is especially useful for the filter block command (^K /),\nsince it will maintain the original width of the selected column.\n"
                },
                {
                    "name": "Picture mode",
                    "content": "Use ^T P to enter or exit picture mode. Picture mode helps with ASCII drawings.\n\nPicture  mode  controls  how JOE handles the case where the cursor is past the ends of lines.\nThis happens when you use the up or down arrow keys to move the cursor from the end of a long\nline to a short line.\n\nIf you attempt to type a character in this case:\n\nIf picture mode is off, the cursor will jump to the end of the line and insert it there.\n\nIf  picture  mode is on, the line is filled with spaces so that the character can be inserted\nat the cursor position.\n"
                }
            ]
        },
        "Windows": {
            "content": "You can edit more than one file at the same time or edit two or more different places of  the\nsame  file.  To  do this, hit ^K O, to split the screen into two windows. Use ^K P or ^K N to\nmove the cursor into the top window or the lower window. Use ^K E to edit a new file  in  one\nof the windows. A window will go away when you save the file with ^K X or abort the file with\n^C. If you abort a file which exists in two windows, one of the window  goes  away,  not  the\nfile.\n\nYou can hit ^K O within a window to create even more windows. If you have too many windows on\nthe screen, but you don´t want to eliminate them, you can hit ^K I. This will show  only  the\nwindow  the cursor is in, or if there was only one window on the screen to begin with, try to\nfit all hidden windows on the screen. If there are more windows than can fit on  the  screen,\nyou can hit ^K N on the bottom-most window or ^K P on the top-most window to get to them.\n\nIf you gave more than one file name to JOE on the command line, each file will be placed in a\ndifferent window.\n\nYou can change the height of the windows with the ^K G and ^K T commands.\n",
            "subsections": [
                {
                    "name": "Windowing system model",
                    "content": "JOE has an unusual model for its windowing system. Basically you have a ring of windows,  but\nonly a section of this ring may fit on the screen. The windows not on the screen still exist,\nthey are just scrolled off. When you hit ^K N on the bottom window of the screen, it  scrolls\nfurther  windows from the ring onto the screen, possibly letting the top window scroll out of\nview.\n\nNative JOE tries to keep each loaded buffer in a window, so users can find all of the buffers\nby  scrolling  through  the windows. The explode command (^K I) either expands all windows to\nthe size of the screen so that only one window can fit on the screen, or shrinks them all  as\nmuch as possible to fit many on the screen.\n\nOn the other hand, JOE supports \"orphan\" buffers- files loaded into the editor, but which are\nnot in a window. ^C normally closes a window and discards the buffer that was in it.  If  you\nhit  ^C on the last remaining window, it will normally exit the editor. However, if there are\norphan buffers, ^C will instead load them into this final window to give you a chance to  ex‐\nplicitly  discard  them. If the orphan option is given on the command line, as in joe -orphan\n*.c, then JOE only loads the first file into a window and leaves all the rest as orphans.\n\norphan also controls whether the edit command ^K E creates a new window for  a  newly  loaded\nfile, or reuses the current window (orphaning its previous occupant).\n\nThe bufed command prompts for a name of a buffer to switch into a window. Its completion list\nwill show all buffers, including orphans and buffers which appear in other windows. Esc V and\nEsc U (nbuf and pbuf commands) allow you to cycle through all buffers within a single window.\n\nWindows  maintain  a  stack  of  occupants to support the pop-up shell window feature. When a\npop-up window is dismissed, the previous buffer is returned to the window.\n"
                },
                {
                    "name": "Scratch buffers",
                    "content": "Scratch buffers are buffers which JOE does not worry about trying to preserve. JOE  will  not\nask  to  save modified scratch buffers. Pop-up shell windows, the startup log and compile and\ngrep message windows are scratch buffers. You can create your own  scratch  buffer  with  the\nscratch command.\n\nThe following commands load scratch buffers:\n\n•   showlog Show startup log\n\n•   mwind Show message window (compile / grep messages from Esc C and Esc G commands).\n\n\n"
                },
                {
                    "name": "Keyboard macros",
                    "content": "Macros allow you to record a series of keystrokes and replay them with the press of two keys.\nThis is useful to automate repetitive tasks. To start a macro recording, hit ^K [ followed by\na  number  from 0 to 9. The status line will display (Macro n recording...). Now, type in the\nseries of keystrokes that you want to be able to repeat. The  commands  you  type  will  have\ntheir  usual effects. Hit ^K ] to stop recording the macro. Hit ^K followed by the number you\nrecorded the macro in to execute one iteration of the key-strokes.\n\nFor example, if you want to put \"\" in front of a number of lines, you can type:\n\n^K [ 0 ^A down arrow\\ ^K ]\n\nWhich starts the macro recording, moves the cursor to the  beginning  of  the  line,  inserts\n\"\",  moves  the  cursor  down  one line, and then ends the recording. Since we included the\nkey-strokes needed to position the cursor on the next line, we can repeatedly use this  macro\nwithout  having  to  move the cursor ourselves, something you should always keep in mind when\nrecording a macro.\n"
                },
                {
                    "name": "Keyboard macro subroutines",
                    "content": "If you find that the macro you are recording itself has a repeated set of key-strokes in  it,\nyou  can  record  a macro within the macro, as long as you use a different macro number. Also\nyou can execute previously recorded macros from within new macros.\n"
                },
                {
                    "name": "Query suspend",
                    "content": "If your macro includes a prompt for user input, and you want the user to fill in  the  prompt\nevery time the macro is executed, hit ^K ? at the point in the macro recording where the user\naction is required. Keyboard input will not be recorded at this point.  When  the  user  com‐\npletes the prompt, macro recording will continue.\n\nWhen  the  macro is executed, the macro player will pause at the point where ^K ? was entered\nto allow user input. When the user completes the prompt, the player continues with  the  rest\nof the macro.\n"
                },
                {
                    "name": "Repeat",
                    "content": "You  can use the repeat command, ^K \\, to repeat a macro, or any other edit command or even a\nnormal character, a specified number of times. Hit ^K \\, type in the number of times you want\nthe  command  repeated  and  press Enter. The next edit command you now give will be repeated\nthat many times. For example, to delete the next 20 lines of text, type:\n\n^K \\ 20return^Y\n"
                },
                {
                    "name": "Macros and commands",
                    "content": "A macro is a comma separated list of commands. When the macro is executed,  each  command  is\nexecuted  until either the end of the list is reached, or one of the commands fails (non-zero\nreturn value from the command). Failed commands beep if you have beeps enabled (^T B).\n\nHit Esc D to insert the current set of keyboard macros as text into the current  buffer.  For\nexample, the \"\" insert macro above looks like this:\n\n\n\nhome,\"\",dnarw ^K 0    Macro 0\n\n\n\nYou  could  insert  this into your .joerc file and change the key sequence (the K 0) to some‐\nthing more permanent.\n"
                },
                {
                    "name": "Define your own",
                    "content": "You can bind macros to key sequences or define your own named macros in the joerc  file.  For\nexample, this will define a macro called foo:\n\n\n\n:def foo eof,bol\n\n\n\nfoo  will position the cursor at the beginning of the last line of the file. eof jumps to the\nend of the file. bol jumps to the beginning of a line. Once a macro has been named  this  way\nit will show up in the completion list of the Esc X command prompt.\n"
                },
                {
                    "name": "Command prompt",
                    "content": "You  can execute a macro directly by typing it into the command prompt. Hit Esc X to bring up\nthe command prompt. Hit Tab at this prompt for a completion list of all available commands.\n\nHere is a complete list of commands.\n\nMacro don´´t stop modifier\nSometimes, you expect commands to sometimes fail, but want the rest of the  commands  in  the\nlist  to be executed anyway. To mark a command which is allowed to fail, postfix it with ´!´.\nFor example, here a macro which hits down page in the window above:\n\n\n\nprevw,pgdn!,nextw\n\n\n\nIf prevw fails, the macro is aborted as usual. Even if pgdn fails (already at end of buffer),\nnextw will be executed so that the cursor is returned to the original window.\n"
                },
                {
                    "name": "Macro repeat argument modifiers",
                    "content": "Repeat  arguments  can be specified with ^K \\. When a command is executed with a repeat argu‐\nment, it is repeatedly executed the specified number of times. If the repeat argument is neg‐\native,  an  opposite  command (if one exists) is executed instead. For example, if you repeat\n\"rtarw\" -3 times, \"ltarw\" will be repeated 3 times. If a negative argument  is  given  for  a\ncommand which does not have an opposite, the repeat argument is ignored.\n\nNormally,  if  a  repeat  argument is specified for a macro, the macro is simply repeated the\ngiven number of times. If a negative argument is given, the argument is ignored.\n\nSometimes you want to allow negative arguments for macros and have their  behavior  modified.\nTo  do  this,  postfix each command within the macro which should be switched to its opposite\nfor negative arguments with ´-´. For example, here is the page down other window macro:\n\n\n\nprevw,pgdn-!,nextw\n\n\n\nNow if you execute this with an argument of -2, it will be repeated twice, but pgup  will  be\nexecuted  instead of pgdn. (note that several postfix modifiers can be placed after each com‐\nmand).\n\nSometimes when a repeat argument is given to macro, you want only one of the commands in  the\nlist to be repeated, not the entire macro. This can be indicated as follows:\n\n\n\nprevw,pgdn#!,nextw\n\n\n\nIf  this  is  executed with an argument of 2, prevw is executed once, pgdn is executed twice,\nand nextw is executed once.\n\nFinally, even more complex semantics can be expressed with the \"if\" command:\n\n\n\nif~,\"arg<0\",then,\nltarw,\nelse,\nrtarw,\nendif\n\n\n\nWhen the macro is executed, the \"arg\" math variable is set to the given repeat argument.  The\n\"argset\"  variable is set to true if the user set an argument, even if it´s 1. If no argument\nwas given, argset is false.\n\nIf any command in the list is postfixed with ~ (if above), the macro is not repeated, even if\nthere is an argument. ´arg´ is still set to the given repeat count, however.\n\n´´psh´´/´´query´´ interaction\nThe ´psh´ command saves the ^K B and ^K K positions on a stack. When the macro completes, (or\nwhen the ´pop´ command is called) the positions are restored.\n\nThe ´query´ command suspends macro execution until the current dialog is  complete.  It  also\nsuspends  the  automatic ´pop´ which happens at the end of a macro- so if the macro ends in a\ndialog you often want to call ´query´ to prevent the ^K B ^K K positions from being  restored\ntoo early.\n"
                },
                {
                    "name": "Tags search",
                    "content": "If you are editing a large C program with many source files, you can use the ctags program to\ngenerate a tags file. This file contains a list of program symbols and the  files  and  posi‐\ntions where the symbols are defined.\n\nFirst, create the tags file with the \"ctags\" program. For example:\n\n\n\nctags *.c *.h\n\n\n\nThis will create a file called \"tags\" in the current directory.\n\nJOE looks for the \"tags\" file in the current directory. If there is none, it will try to open\nthe file specified by the TAGS environment variable.\n\nPaths in the tags file are always relative to location of the tags file itself.\n\nThe tags file contains a list of identifier definition locations in one of these formats:\n\n\n\nidentifier filename /search-expression/[;comments]\n\nidentifier filename ?search-expression?[;comments]\n\nidentifier filename line-number[;comments]\n\n\n\nSome versions of ctags include class-names in the identifiers:\n\n\n\nclass::member\n\n\n\nIn this case, JOE will match on any of these strings:\n\n\n\nmember\n::member\nclass::member\n\n\n\nSome versions of ctags include a filename in the identifier:\n\n\n\nfilename:identifier\n\n\n\nIn this case JOE will only find the identifier if the buffer name matches the filename.\n\nThe search-expression is a vi regular expression, but JOE only supports the following special\ncharacters:\n\n\n\n^ at the beginning means expression starts at beginning of line\n\n$ at the end means expression ends at end of line\n\n\\x quote x (suppress meaning of /, ?, ^ or $)\n\n\n\nType  ^K  ;  to  bring  up a tags search prompt. If the cursor had been on an identifier, the\nprompt is pre-loaded with it. Tab completion works in this prompt (it uses the tags  file  to\nfind completions).\n\nWhen you hit Enter, the tags search commences:\n\nIf there is one and only one match, JOE will jump directly to the definition.\n\nIf  there  are multiple matches, then the behavior is controlled by the notagsmenu option. If\nnotagsmenu is enabled JOE jumps to the first definition. If you hit ^K ; again before hitting\nany  other keys, JOE jumps to the next definition, and so on. The \"tagjump\" command also per‐\nforms this function.\n\nIf notagsmenu is disabled, JOE brings up a menu of all the matches. You select  the  one  you\nwant  and JOE jumps to it. If you hit ^K ; again before hitting any other keys, the same menu\nre-appears with the cursor left in the original location.\n\nYou can hit ^K - to move the cursor back to the original location before the tags search (of‐\nten ^C will work as well).\n\nSince  ^K ; loads the definition file into the current window, you probably want to split the\nwindow first with ^K O, to have both the original file and the definition file loaded.\n"
                }
            ]
        },
        "Calculator": {
            "content": "JOE has a built-in calculator which can be invoked with Esc M.\n",
            "subsections": [
                {
                    "name": "Math functions",
                    "content": "sin, cos, tan, exp, sqrt, cbrt, ln, log, asin, acos, atan, sinh, cosh,  tanh,  asinh,  acosh,\natanh, int, floor, ceil, abs, erf, erfc, j0, j1, y0, y1\n"
                },
                {
                    "name": "Variables",
                    "content": "•   e\nSet to ´e´\n\n\n•   pi\nSet to ´pi´\n\n\n•   top\nSet to line number of top window line\n\n\n•   lines\nSet to number of lines in file\n\n\n•   line\nSet to current line number\n\n\n•   col\nSet to current column number\n\n\n•   byte\nSet to current byte number\n\n\n•   size\nSet to buffer size\n\n\n•   height\nSet to window height\n\n\n•   width\nSet to window width\n\n\n•   char\nSet to ASCII val of character under cursor\n\n\n•   markv\nTrue if there is a valid block set (^KB ... ^KK)\n\n\n•   rdonly\nTrue if file is read-only\n\n\n•   arg\nCurrent repeat argument\n\n\n•   argset\nTrue if a repeat argument was given\n\n\n•   isshell\nTrue if executed in an active shell window\n\n\n•   nowindows\nNo. buffer windows on the screen\n\n\n•   ans\nResult of previous expression\n\n\n\n"
                },
                {
                    "name": "Commands",
                    "content": "•   hex\nHex display mode\n\n\n•   dec\nDecimal display mode\n\n\n•   ins\nInsert ´ans´ into buffer\n\n\n•   sum\nSum of numbers in block\n\n\n•   cnt\nCount numbers in block\n\n\n•   avg\nAverage value of numbers in block\n\n\n•   dev\nStandard deviation of numbers in block\n\n\n•   eval\nEvaluate math expressions in block (or whole file if no block set).\n\n\n•   joe(...)\nExecute  a  JOE macro (argument in same format as joerc file macros). Return value of JOE\nmacro is returned (for macro success, return true (non-zero)).\n\n\n\n\nFor example:\n\n\n\njoe(sys,\"[ 1 == 1 ]\",rtn)\n\n\n\n([ 1 == 1 ]) is a shell command. \"[\" is a synonym for the \"test\" UNIX command.\n\nReturns true.\n\nRemember: argument for JOE macro command \"if\" is a  math  expression.  So  for  example,  the\nmacro:\n\n\n\nif,\"joe(sys,\\\"[ 1 == 1 ]\\\",rtn)\",then,\"TRUE\",endif\n\n\n\nTypes TRUE into the buffer.\n"
                },
                {
                    "name": "Operators:",
                    "content": "•   !x\nLogical not of x.\n\n\n•   x\nRaise x to power of y.\n\n\n•   a*b\nMultiply.\n\n\n•   a/b\nDivide.\n\n\n•   a%b\nModulus.\n\n\n•   a+b\nAdd.\n\n\n•   a-b\nSubtract.\n\n\n•   a<b\nTrue if a is less than b.\n\n\n•   a<=b\nTrue if a is less than or equal to b.\n\n\n•   a>b\nTrue if a is greater than b.\n\n\n•   a>=b\nTrue if a is greater than or equal to b.\n\n\n•   a==b\nTrue if a equals b.\n\n\n•   a!=b\nTrue if a does not equal b.\n\n\n•   a&&b\nTrue if both a and b are true.\n\n\n•   a||b\nTrue if ether a or b are true.\n\n\n•   a?b:c\nIf a is true return b, otherwise return c.\n\n\n•   a=b\nAssign b to a.\n\n\n•   a:b\nExecute a, then execute b.\n\n\n\n\n&&, || and ? : work as in C and sh as far as side effects: if the\n\nleft side of && is false, the right side is not evaluated.\nis expression separator.\n"
                },
                {
                    "name": "Shell windows",
                    "content": "Hit  ^K  ´´ to run a command shell in one of JOE´s windows. When the cursor is at the end of a\nshell window (use ^K V if it´s not), whatever you type is passed to the shell instead of  the\nbuffer.  Any  output from the shell or from commands executed in the shell is appended to the\nshell window (the cursor will follow this output if it´s at the end  of  the  shell  window).\nThis command is useful for recording the results of shell commands- for example the output of\nmake, the result of grepping a set of files for a string, or directory listings from FTP ses‐\nsions.  Besides typeable characters, the keys ^C, Backspace, Del, Return and ^D are passed to\nthe shell. Type the shell exit command to stop recording shell output. If you press ^C  in  a\nshell window, when the cursor is not at the end of the window, the shell is killed.\n\nIf  you use Bash, you can hit: ^Q Up Arrow and ^Q Down Arrow to scroll through Bash´s history\nbuffer. Other keys work as well: try ^Q ^A to go to beginning of line or ^Q ^E to go  to  end\nof  line. Unfortunately JOE only emulates a dumb terminal, so you have to use a lot of imagi‐\nnation to do any editing beyond hitting backspace.\n\nIn general, any character quoted with ^Q is sent to the shell.\n\nAlso sent to the shell: Tab, Backspace, Enter, ^C and ^D.\n"
                },
                {
                    "name": "Pop-up shell windows",
                    "content": "Hit F1 - F4 to open and switch between shell windows.\n\nPop-up shell windows use a full terminal emulator so that when you type \"man ls\" it´s format‐\nted  correctly (it works well enough so that some interactive programs can be used). Even so,\nthe shell window is still an edit buffer.\n\nThe old shell window (with no terminal emulation) still exists: use ^K  ´´  to  invoke  it  as\nusual. This is useful to see control sequences emitted by a program.\n\nMore  of the keys get passed to the running program in pop-up shell windows compared with the\nolder one. There is a :vtshell section of the joerc file to control which ones. In particular\narrow  keys  and  Ctrl-C are passed to the program. It means you can easily step through bash\nhistory with the arrow keys, or abort programs the normal way with Ctrl-C.\n\nOn the other hand, loss of Ctrl-C means it´s less obvious how to close the window. One way is\nto  move the cursor off of the shell data entry point (with Ctrl-P), and then hit Ctrl-C. An‐\nother is to hit ^K Q. Finally, you can type ´pop´ at the command prompt.\n\nIf you need to pass a key to the shell that JOE normally uses, quote it. For example, if  you\ninvoke \"emacs -nw\" in the shell window, you can exit it with:\n\n\n\n^Q ^X ^C\n\n\n\nTo quickly position the cursor back to the point where data is entered into the shell, hit ^K\nV.\n\nWhen you open a shell window, a JOE-specific  startup-script  is  sourced.  It´s  located  in\n/etc/joe/shell.sh (also /etc/joe/shell.csh). It contains some aliases which allow you to con‐\ntrol JOE with fake shell commands. I have these commands so far:\n\n•   clear\nerase shell window (delete buffer contents)\n\n\n•   joe file\nedit a file in JOE\n\n\n•   math 1+2\nevaluate equation using JOE´s calculator\n\n\n•   cd xyz\nchange directory, keep JOE up to date\n\n\n•   markb\nsame as ^KB\n\n\n•   markk\nsame as ^KK\n\n\n•   mark command\nexecute shell command, mark it´s output\n\n\n•   parse command\nexecute shell command, parse it´s output for file names and line  numbers  (for  find  or\ngrep)\n\n\n•   parser comman\nexecute shell command, parse it´s output for errors (for gcc)\n\n\n•   release\nrelease parsed errors\n\n\n•   pop\ndismiss shell window (same as ^K Q)\n\n\n\n\nThese  work  by  emitting  an  escape  sequence  recognized  by  the terminal emulator: Esc {\njoemacro }. When this is received, the macro is executed. For security, only macros  defined\nin the joerc file which begin with \"shell\" can be executed this way.\n"
                },
                {
                    "name": "Use cases",
                    "content": "Pop-up shell windows have a number of nice use cases:\n\n•   Use it to browse manual pages\n\nHit  F1  and  type  \"man  fopen\". Use ´b´ (´u´) and space to control more (or less) while\nviewing the manual. You can leave the manual on the screen in one window while editing in\nanother window.\n\n•   Use it to switch directories\n\nHit F1 and navigate to the directory while using cd. Once you are in the right place, hit\n^K E to load a file (or type \"edit file\" from the shell).\n\n•   Use it in conjunction with the error parser to find files\n\nHit F1 and navigate to a directory. Use grep or find (or both)  to  generate  a  list  of\nfiles):\n\n\n\n\n\nparse grep -n FIXME *.c\n\n\n\nOr:\n\n\n\nmarkb; find . | xargs grep -n FIXME; markk; parse\n\n\n\n(Note that you can´t say this:\n\n\n\nparse find . | xargs grep -n FIXME\n\n\n\n...the issue is that only the words to the left of the pipe symbol are passed as arguments to\nthe parse command).\n\nNow use ^P to position the cursor on one of the lines of the list. Hit Esc Space to have  JOE\nedit  the  file  and  jump  to  the  specified line (also you can use Esc - and Esc = to step\nthrough the list).\n\n•   Use it in conjunction with search and replace to edit many files\n\nOnce JOE has a list of files (from above), use search and replace with the ´e´ option  to\nvisit all of them:\n\n\n\n\n\n^K F\nFind: <text>\nOptions: re\nReplace: <replacement text>\n\n\n\n•   Build your project\n\n\n\nEasily capture errors from a build with:\n\n\n\nparserr make\n\n\n\nHit Esc = and Esc - to step through the errors.\n"
                },
                {
                    "name": "How it works..",
                    "content": "•   There  is a new mode \"ansi\". (Esc X mode ansi). When this mode is enabled, the screen up‐\ndater hides escape sequences which are in the buffer. Otherwise you get a big  mess  from\nthe sequences surrounding colored output from ´ls´.\n\n•   There  is  a  new built-in syntax: \"ansi\". (^T Y ansi). This syntax parses the ANSI color\ncontrol sequences so that text gets colored.\n\n•   There is a terminal emulator to interpret control sequences from the  shell  program.  It\nemulates a terminal by modifying the contents of an edit buffer.\n\n•   When  the edit window is resized we tell the shell by issuing the TIOCSSIZE or TIOCSWINSZ\nioctl. This way, the program running in the shell knows the window size.\n\n\n"
                },
                {
                    "name": "Compiler and grep/find parsers",
                    "content": "JOE has two parsers which can be used to generate the error list (list of file names  /  line\nnumbers).\n\nThe  \"parserr\"  command parses the entire buffer, or if the block is set, just the highighted\nblock for compiler error messages. The messages should be in this format:\n\n\n\n<junk> file.name <junk> line-number <junk> : <junk>\n\n\n\nThe file name needs to be made of numbers, letters, ´/´, ´.´ and ´-´. It must  have  at  leat\none  ´.´  in it. There needs to be a colon somewhere after the line number. Lines not in this\nformat are ignored.\n\nThe \"gparse´ command parses the entire buffer, or if the block is set, just  the  highlighted\nblock for a list of filenames or filenames with line numbers from \"grep -n\", \"find\" and simi‐\nlar programs.\n\n\n\nfilename\n\nfilename:<junk>\n\nfilename:line-number:<junk>\n\n\n\nOnce JOE has the error list, there are a number of things you can do with it:\n\n•   Visit the files/locations in the list with Esc - and Esc =\n\n•   Search and replace across all files in the list by using the ´e´ search and  replace  op‐\ntion.\n\n•   Clear the list by using the \"release\" command.\n\n\n\nAlso,  you  can use Esc Space (´jump´ command) to parse the line the cursor is on and jump to\nthe parsed filename and line number. ´jump´ uses the grep/find parser  unless  ´parserr´  had\nbeen previously issued in the buffer.\n"
                },
                {
                    "name": "Grep-find",
                    "content": "Hit  Esc G to bring up the prompt. Enter a command which results in file names with line num‐\nbers, for example: ´grep -n fred *.c´. This will list all instances  of  ´fred´  in  the  *.c\nfiles. You need the ´-n´ to get the line numbers.\n\nNow you can hit Esc Space on one of the lines to jump to the selected file. Also, you can use\nEsc = and Esc - to step through each line.\n"
                },
                {
                    "name": "Compile",
                    "content": "Hit Esc C to save all modified files and then bring up the compile prompt. Enter the  command\nyou want to use for the compiler (typically \"make -w\"). The compiler will run in a shell win‐\ndow. When it´s complete, the results are parsed.\n\nThe ´-w´ flag should be given to \"make\" so that it prints messages whenever it changes direc‐\ntories. The message are in this format:\n\n\n\nmake[1]: Entering directory `/home/jhallen/joe-editor-mercurial/joe´\n\n\n\nIf  there  are  any  errors or warnings from the compiler you can hit Esc Space on one of the\nlines to jump to the selected file. Also, you can use Esc = and Esc - to  step  through  each\nline.\n"
                },
                {
                    "name": "Syntax highlighting",
                    "content": "To enable highlight use ^T H.\n\nTo select the syntax, use ^T Y. You can hit Tab Tab at the prompt for a completion list.\n\nJOE tries to determine the syntax to use based on the name and contents of the file. The con‐\nfiguration file /etc/joe/ftyperc contains the definitions.\n\nEach syntax is defined by a file located /usr/share/joe/syntax/.\n"
                },
                {
                    "name": "How JOE syntax highlighting works",
                    "content": "from   c.jsf   http://joe-editor.hg.sourceforge.net/hgweb/joe-editor/joe-editor/file/tip/syn‐\ntax/c.jsf.in, slightly modified\n\nA  deterministic  state machine that performs lexical analysis of the target language is pro‐\nvided in a syntax file. (This is the \"assembly language\" of syntax highlighting.  A  separate\nprogram  could in principal be used to convert a regular expression NFA syntax into this for‐\nmat).\n\nEach state begins with:\n\n\n\n:<name> <color-name> <context>\n\n\n\nname\\ is the state´s name.\n\ncolor-name\\ is the color used for characters eaten by the state (really a symbol for  a  user\ndefinable color).\n\ncontext\\ tells JOE if the current character is part of a comment or a string. This allows JOE\nto skip over comments and strings when matching characters such as parentheses. To  use  this\nfeature,  the highlightercontext option must be applied to the files highlighted by the cor‐\nresponding syntax. To apply the option, add it to ftyperc for those file entries.\n\nThe valid contexts are:\n\n•   comment This character is part of a comment. Example: /* comment */\n\n•   string This character is part of a string. Examples: \"string\" ´c´ ´string´\n\n\n\nThe comment and string delimiters themselves should be marked with the  appropriate  context.\nThe  context is considered to be part of the color, so the recolor=-N and recolormark options\napply the context to previous characters.\n\nThe first state defined is the initial state.\n\nWithin a state, define transitions (jumps) to other states. Each jump has the form:\n\n\n\n<character-list> <target-state-name> [<option>s]\n\n\n\nThere are three ways to specify character-list\\s, either * for any  character  not  otherwise\nspecified,  %  or & to match the character in the delimiter match buffer (% matches the saved\ncharacter exactly, while & matches the opposite character, for example ( will match ) when  &\nis  used) or a literal list of characters within quotes (ranges and escape sequences allowed:\nsee Escape Sequences). When the next character matches any in the list, a jump  to  the  tar‐\nget-state  is  taken and the character is eaten (we advance to the next character of the file\nto be colored).\n\nThe * transition should be the first transition specified in the state.\n\nThere are several options:\n\n•   noeat - Do not eat the character, instead feed it to the next state (this tends  to  make\nthe  states  smaller,  but be careful: you can make infinite loops). ´noeat´ implies ´re‐\ncolor=-1´.\n\n•   recolor=-N - Recolor the past N characters with the color of the target-state. For  exam‐\nple  once /* is recognized as the start of C comment, you want to color the /* with the C\ncomment color with recolor=-2.\n\n•   mark - Mark beginning of a region with current position.\n\n•   markend - Mark end of region.\n\n•   recolormark - Recolor all of the characters in the marked region with the  color  of  the\ntarget-state.  If  markend is not given, all of the characters up to the current position\nare recolored. Note that the marked region can not cross line boundaries and must  be  on\nthe same line as recolormark.\n\n•   buffer - Start copying characters to a string buffer, beginning with this one (it´s OK to\nnot terminate buffering with a matching ´strings´, ´istrings´ or ´hold´ option- the  buf‐\nfer is limited to leading 23 characters).\n\n•   savec - Save character in delimiter match buffer.\n\n•   saves - Copy string buffer to delimiter match buffer.\n\n•   strings  -  A  list of strings follows. If the buffer matches any of the given strings, a\njump to the target-state in the string list is taken instead of the normal jump.\n\n•   istrings - Same as strings, but case is ignored. Note: strings and istrings should be the\nlast option on the line. They cause any options which follow them to be ignored.\n\n•   hold  -  Stop buffering string- a future ´strings´ or ´istrings´ will look at contents of\nbuffer at this point. Useful for distinguishing commands and function calls in some  lan‐\nguages  ´write  7´  is  a  command ´write (´ is a function call- hold lets us stop at the\nspace and delay the string lookup until the ( or 7.\n\n\n\nThe format of the string list is:\n\n\n\n\"string\"   <target-state> [<options>s]\n\"string\"   <target-state> [<options>s]\n\"&\"        <target-state> [<options>s]   # matches contents of delimiter match buffer\ndone\n\n\n\n(all of the options above are allowed except \"strings\", \"istrings\" and \"noeat\". noeat is  al‐\nways implied after a matched string).\n\nWeirdness:  only  states  have colors, not transitions. This means that you sometimes have to\nmake dummy states with\n\n\n\n*    <next-state>    noeat\n\n\n\njust to get a color specification.\n\nDelimiter match buffer is for perl and shell: a regex in perl can be s<..>(...) and in  shell\nyou  can  say:  <<EOS  ....... EOS. The idea is that you capture the first delimiter into the\nmatch buffer (the < or first \"EOS\") and then match it to the second one with \"&\" in a  string\nor character list.\n"
                },
                {
                    "name": "Subroutines",
                    "content": "Highlighter  state  machines can now make subroutine calls. This works by template instantia‐\ntion: the called state machine is included in your current state machine, but is modified  so\nthat  the return address points to the called. There is still no run-time stack (the state is\nrepresented as a single integer plus the saved delimiter string).\n\nRecursion is allowed, but is self limited to 5 levels.\n\nNote: this recursion limit is obsolete. Subroutines now do use a stack so the  call-depth  is\nlimitless.\n\nTo call a subroutine, use the ´call´ option:\n\n\n\n\"\\\"\"    fred    call=string(dquote)\n\n\n\nThe  subroutine called ´string´ is called and the jump to ´fred´ is ignored. The ´dquote´ op‐\ntion is passed to the subroutine.\n\nIf you use recolor along with call, the color used is that of the first state of the  subrou‐\ntine.\n\nThe subroutine itself returns to the caller like this:\n\n\n\n\"\\\"\"    whatever    return\n\n\n\nIf we´re in a subroutine, it returns to the target state of the call (\"fred\" in the above ex‐\nample). If we´re not in a subroutine, it jumps to \"whatever\".\n\nIf you use recolor along with return, the color used is from the returned  state  (\"fred\"  in\nthe example above).\n\nThere  are several ways of delimiting subroutines which show up in how it is called. Here are\nthe options:\n\n•   call=string() - A file called string.jsf is the subroutine. The entire file is  the  sub‐\nroutine. The starting point is the first state in the file.\n\n•   call=library.string()  -  A  file  called  library.jsf has the subroutine. The subroutine\nwithin the file is called string.\n\n•   call=.string() - There is a subroutine called string in the current file.\n\n\n\nWhen a subroutine is within a file, but is not the whole file, it is delimited as follows:\n\n\n\n.subr string\n\n\n\n\n\nOption flags can be passed to subroutines which control preprocessor-like directives. For ex‐\nample:\n\n\n\n.ifdef dquote\n\"\\\"\"    idle    return\n\"´\"     idle    return\n\n\n\n.else is also available. .ifdefs can be nested.\n"
                },
                {
                    "name": "The joerc file",
                    "content": "^T  options, the help screens and the key-sequence to editor command bindings are all defined\nin JOE´s initialization file. If you make a copy of this  file  (which  normally  resides  in\n/etc/joe/joerc)  to  $HOME/.joerc, you can customize these setting to your liking. The syntax\nof the initialization file should be fairly obvious and there are further instructions in it.\n\nThe joerc file has a directive to include another file (:include). This facility is  used  to\ninclude  a  file  called  ftyperc (usually located in /etc/joe/ftyperc). ftyperc has the file\ntype table which determines which local options (including syntax for  the  highlighter)  are\napplied to each file type.\n"
                },
                {
                    "name": "Initialization file loading sequence",
                    "content": "If the path for an initialization file begins with ´/´ (you can specify this with the include\ndirective), JOE only tries to load it from the absolute path. Otherwise, JOE  tries  to  load\ninitialization  files  (the  joerc file and any files included in it, typically ftyperc) from\nthree places:\n\n•   \"$HOME/.joerc\" - The user´s personalized joerc file.\n\n•   \"/etc/joe/joerc\" - The system´s joerc file. The exact path is fixed during the build, and\nis determined by the --sysconfdir configure script option.\n\n•   \"*joerc\"  - Built-in file This means JOE searches for the file in a table of files linked\nin with the JOE binary (they are in the builtins.c file). A built-in joerc file  is  pro‐\nvided so that the editor will run in cases where system´s joerc is inaccessible.\n\n\n\nIf  the  system´s joerc file is newer than the user´s joerc file, JOE will print a warning in\nthe startup log. Previous versions of JOE would prompt the user for this case- the  idea  was\nthat JOE may be unusable with an out of date initialization file.\n"
                },
                {
                    "name": "joerc file sections",
                    "content": "The joerc file is broken up into a number of sections:\n\n•   Global options Options which are not file specific, like noxon.\n\n•   File  name  and  content dependent options Options which depend on the file type, such as\nautoindent. The ftyperc file is included in this section.\n\n•   ^T menu system definition Use :defmenu to define a named menu of macros. The menu command\nbrings  up  a  specific  named  menu.  ^T  is  a  macro  which  brings  up the root menu:\nmenu,\"root\",rtn.\n\n•   Help screen contents Each help screen is named. The name is used to implement context de‐\npendent help.\n\n•   Key  bindings Key binding tables are defined. You can define as many as you like (you can\nswitch to a specific one with the keymap command), but the following must be provided:\n\n•   main Editing windows\n\n•   prompt Prompt windows\n\n•   query Single-character query prompts\n\n•   querya Single-character query for quote\n\n•   querysr Single-character query for search and replace\n\n•   shell Shell windows\n\n•   vtshell Terminal emulator shell windows\n\n\n\n\n\n\nKey binding tables can inherit bindings from already defined tables. This allows you to group\ncommon key bindings into a single table which is inherited by the others.\n"
                },
                {
                    "name": "Mode command",
                    "content": "Many options can be controlled with the ^T menu. This menu is defined in the joerc file. Each\noption in the ^T menu just executes a macro. Usually the macro is the mode command.  You  can\nexecute the mode command directly with:\n\n\n\nEsc X mode <enter>\n\n\n\nHit Tab Tab for a completion list of all options.\n"
                },
                {
                    "name": "Menu command",
                    "content": "This command calls up a named menu of macros which was defined in the joerc file.\n\n\n\nEsc X menu <enter>\n\n\n\nAs usual, hit Tab Tab at the prompt for a completion list of the menus which exist.\n\n^T  is  bound  to the simple macro menu,\"root\",rtn- it brings up the root of the options menu\nsystem.\n"
                },
                {
                    "name": "Xterm Mouse support",
                    "content": "There are two levels of mouse support. The -mouse option enables the first level, which  will\nwork  with any stock Xterm. If -joexterm is also set, mouse support is enhanced, but you need\na recent version of XTerm, and it needs to be ./configured with the --enable-paste64 option.\n\nWhen -mouse is set, you can:\n\n•   Left-click in a text window to set the cursor position. Left-click in a different  window\nto move the cursor to a different window.\n\n•   Select text with the mouse. Left-click and drag to select some text- it will be as if you\nhad used ^K B and ^K K to mark it. Left-click (but don´t drag)  to  position  the  cursor\nsomewhere  else.  Middle  click to copy the selected text to the cursor- it will be as if\nyou had hit ^K C. If you drag  past  the  edge  of  the  text  window,  the  window  will\nauto-scroll  to  select  more text. Unfortunately, Xterm does not send any codes when the\ncursor is outside of the Xterm frame itself, so this only works if  the  mouse  is  still\ncontained  within  the  Xterm frame. I´ve sent a patch to the Xterm maintainer to improve\nthis, but he has not taken it yet.\n\n•   Resize windows with the mouse: click and hold on a status line dividing  two  windows  to\nmove it.\n\n•   Select  menu  entries  (such as any completion menu or the ^T options menu): click on the\nmenu item to position the cursor on it. Double-click on a menu item to select it (same as\nhitting return with cursor on it).\n\n•   If your mouse has a wheel, turning the wheel will scroll the window with the cursor.\n\n\n\nUnfortunately,  when  -mouse is selected, cut and paste between X windows does not work as it\nnormally does in a shell window (left-click and drag to select, middle click to  paste).  In‐\nstead,  you  have to hold the shift key down to do this: shift-left-click and drag to select,\nand shift-middle click to paste. Note that pasting text into JOE this way has problems: any `\ncharacters  will get messed up because ` means quote the following control character. Also if\nauto-indent is enabled, pasted text will not be indented properly.\n\nNote: these problems with pasting have been resolved in recent versions of JOE.\n\n•   JOE enables \"bracketed paste\" mode in Xterm so that pasted text is bracketed with an  es‐\ncape  sequence.  This  sequence causes JOE to disable the autoindent, wordwrap and spaces\nmodes for the paste, and restores them when the paste is complete.\n\n•   Even if the terminal emulator does not have this bracketed paste mode, JOE detects pasted\ntext by timing: If text arrives all at once (all in the same buffer), the text is assumed\nto be pasted text and autoindent and wordwrap are temporarily disabled.\n\n\n\nWhen -joexterm is set (and you have ./configured Xterm with --enable-paste64):\n\n•   Cut & paste are properly integrated with X. Text selected with left-click-drag is  avail‐\nable  for pasting into other X windows (even if the selected text is larger than the text\nwindow). Text selected in other X windows can be pasted into JOE with middle-click. There\nare no problems pasting text containing ` or with auto-indent.\n\n\n\n--enable-paste64  allows an application program to communicate Base-64 encoded selection data\nto and from the Xterm. The program has full control over what is in the  selection  data  and\nwhen it is received or sent.\n"
                },
                {
                    "name": "Color Xterm support",
                    "content": "JOE  can  make  use  of  monochrome  Xterm, 8-color Xterm, 16-color Xterm, 88-color Xterm and\n256-color Xterm. The number of colors which Xterm supports is determined by which \"configure\"\nscript  options are set before the Xterm source code is compiled. The termcap or terminfo en‐\ntry must support how your Xterm is configured. On my Slackware Linux distribution,  you  have\nto set the TERM environment variable to one of these:\n\n•   xterm\n\n•   xterm-color\n\n•   xterm-16color\n\n•   xterm-88color\n\n•   xterm-256color\n\n\n\nIf  the  termcap/terminfo  entry is missing, you can add the \"-assume256color\" option to the\njoerc file. Note that this was broken for terminfo in versions of JOE below 3.4.\n\nWhen it is working, the command: \"joe -assume256color -textcolor bg222\" should have a gray\nbackground.\n"
                },
                {
                    "name": "Hex edit mode",
                    "content": "When  this mode is selected (either put -hex on the command line, or look for \"Hex edit mode\"\nafter hitting ^T), the buffer is displayed as a hex dump, but all of the editing commands op‐\nerate  the  same  way. It is most useful to select overtype mode in conjunction with hex dump\n(hit ^T T). Then typing will not insert.\n\n•   To enter the hex byte 0xF8 type ^Q x F 8\n\n•   You can use ^K C to copy a block as usual. If overtype mode is selected, the  block  will\noverwrite  the  destination  data without changing the size of the file. Otherwise it in‐\nserts.\n\n•   Hit Esc X byte <Enter>, to jump to a particular byte offset. Hex values  can  be  entered\ninto this prompt like this: 0x2000.\n\n•   Search, incremental search, and search & replace all operate as usual.\n\n\n"
                },
                {
                    "name": "Environment variables",
                    "content": "For  JOE  to  operate  correctly, a number of other environment settings must be correct. The\nthroughput (baud rate) of the connection between the computer and your terminal must  be  set\ncorrectly  for  JOE to update the screen smoothly and allow typeahead to defer the screen up‐\ndate. Use the stty nnn command to set this. You want to set it as close as possible to actual\nthroughput  of  the  connection. For example, if you are connected via a 1200 baud modem, you\nwant to use this value for stty. If you are connected  via  14.4k  modem,  but  the  terminal\nserver  you are connected to connects to the computer a 9600 baud, you want to set your speed\nas 9600 baud. The special baud rate of 38400 or extb is used to  indicate  that  you  have  a\nvery-high speed connection, such as a memory mapped console or an X-window terminal emulator.\nIf you can´t use stty to set the actual throughput (perhaps because of a modem  communicating\nwith  the  computer at a different rate than it´s communicating over the phone line), you can\nput a numeric value in the BAUD environment variable instead (use setenv BAUD 9600 for csh or\nBAUD=9600; export BAUD for sh).\n\nThe  TERM  environment variable must be set to the type of terminal you´re using. If the size\n(number of lines/columns) of your terminal is different from what is reported in the  TERMCAP\nor  TERMINFO entry, you can set this with the stty rows nn cols nn command, or by setting the\nLINES and COLUMNS environment variables. The terminal size is variable on modern systems  and\nis determined by an ioctl, so these parameters often have no effect.\n\nJOE  normally  expects  that flow control between the computer and your terminal to use ^S/^Q\nhandshaking (i.e., if the computer is sending characters too fast  for  your  terminal,  your\nterminal  sends  ^S  to  stop  the  output  and  ^Q  to restart it). If the flow control uses\nout-of-band or hardware handshaking or if your terminal is fast enough to always keep up with\nthe  computer  output and you wish to map ^S/^Q to edit commands, you can set the environment\nvariable NOXON to have JOE attempt to turn off ^S/^Q handshaking. If the  connection  between\nthe  computer  and  your terminal uses no handshaking and your terminal is not fast enough to\nkeep up with the output of the computer, you can set the environment  variable  DOPADDING  to\nhave JOE slow down the output by interspersing PAD characters between the terminal screen up‐\ndate sequences.\n\nHere is a complete list of the environment variables:\n\n•   BAUD\nTell JOE the baud rate of the terminal (overrides value reported by stty).\n\n\n•   COLUMNS\nSet number of columns in terminal emulator (in case termcap entry is wrong). This is only\nuseful on old system which don´t have the \"get window size\" ioctl.\n\n\n•   DOPADDING\nEnable JOE to send padding NULs to the terminal when set (for very old terminals).\n\n\n•   HOME\nUsed  to get path to home directory for ~ expansion and also to find ~/.joerc file ~/.joe\ndirectory.\n\n\n•   HOSTNAME\nUsed to get hostname to put in EMACS compatible locks.\n\n\n•   JOETERM\nGives terminal type: JOE will use this instead of TERM if it´s set.\n\n\n•   LANG\nSets locale (like enUS.utf-8). JOE uses  the  first  of  these  which  is  set:  LCALL,\nLCCTYPE, LANG.\n\n\n•   LCALL\nSets  locale  (like  enUS.utf-8).  JOE  uses  the  first  of these which is set: LCALL,\nLCCTYPE, LANG.\n\n\n•   LCCTYPE\nSets locale (like enUS.utf-8). JOE uses  the  first  of  these  which  is  set:  LCALL,\nLCCTYPE, LANG.\n\n\n•   LINES\nSet  number  of lines in terminal emulator (in case termcap entry is wrong). This is only\nuseful on old system which don´t have the \"get window size\" ioctl.\n\n\n•   NOXON\nDisable ^S and ^Q flow control, possibly allowing ^S and ^Q to be used as editor keys.\n\n\n•   SHELL\nPath to shell (like /bin/sh). This is used in several places: If you are on a system with\nno  job control, this shell is invoked when you hit ^K Z. Also this is the shell which is\nrun in shell windows. If SHELL is not set (Cygwin) or if it´s set to /bin/sh, JOE invokes\nthe first of these which exists: /bin/bash, /usr/bin/bash, /bin/sh.\n\n\n•   SIMPLEBACKUPSUFFIX\nIf  this  is  set, it is appended to the file name instead of ~ to create the backup file\nname.\n\n\n•   TAGS\nIf set to a path to a file, JOE tries to use this as the  \"tags\"  file  if  there  is  no\n\"tags\" file in the current directory.\n\n\n•   TEMP\nIf set, gives path to directory to open swapfile instead of /tmp\n\n\n•   TERMCAP\nUsed  by  JOE´s built-in termcap file parser (not used for terminfo). A termcap entry can\nbe placed directly in this variable (which will be used if it matches TERM), or if it be‐\ngins with /, it gives a list of paths to termcap files to search.\n\n\n•   TERMPATH\nGives  list  of paths to termcap files to search when TERMCAP has a termcap entry (other‐\nwise it´s ignored). The default list of paths to termcap files (when TERMCAP and TERMPATH\ndo not have it) is: \"~/.termcap /etc/joe/termcap /etc/termcap\"\n\n\n•   TERM\nGives terminal type, like \"vt100\" or \"xterm\".\n\n\n•   USER\nUsed to get user name for EMACS compatible file locks.\n\n\n\n"
                },
                {
                    "name": "JOE commands grouped by function",
                    "content": "These commands can be entered at the Esc X prompt.\n"
                },
                {
                    "name": "Background programs",
                    "content": "•   bknd\nRun a shell in a window\n\n\n•   vtbknd\nRun a shell in a terminal emulator window\n\n\n•   killproc\nKill program in current window\n\n\n•   run\nRun a UNIX command in a window\n\n\n•   sys\nRun a UNIX command and return to editor when done (I/O does not go through editor, but we\nget the command´s return status).\n\n\n"
                },
                {
                    "name": "Blocks",
                    "content": "•   blkcpy\nCopy marked block to cursor\n\n\n•   blkdel\nDelete marked block\n\n\n•   blkmove\nMove marked block to cursor\n\n\n•   blksave\nSave marked block into a file\n\n\n•   copy\nCopy block to kill-ring\n\n\n•   drop\nSet markb. If it was already set, eliminate Ait.\n\n\n•   dropon\nSet markb. If it was already set, eliminate it. Turn on marking mode.\n\n\n•   togglemarking\nIf we´re in a block: clear markb and markk. If marking is off:  set  markb  and  turn  on\nmarking. If marking is on: set markk (swap if necessary with markb) and turn marking off.\n\n\n•   beginmarking\nIf  we´re on an edge of a block: set markb to other edge and turn on marking mode. Other‐\nwise set markb to cursor and turn on marking mode.\n\n\n•   select\nSet markb. If it was already set, do nothing.\n\n\n•   filt\nFilter block or file through a UNIX command\n\n\n•   markb\nSet beginning of block mark\n\n\n•   markk\nSet end of block mark\n\n\n•   markl\nMark current line\n\n\n•   nmark\nEliminate markb and markk\n\n\n•   picokill\nDelete line or block\n\n\n•   pop\nRestore markb and markk values from stack\n\n\n•   psh\nPush markb and markk values onto a stack\n\n\n•   swap\nSwitch cursor with markb\n\n\n•   tomarkb\nMove cursor to markb\n\n\n•   tomarkbk\nMove cursor to markb or markk\n\n\n•   tomarkk\nMove cursor to markk\n\n\n•   yank\nInsert top of kill ring\n\n\n•   yankpop\nScroll through kill ring\n\n\n•   yapp\nAppend next kill to top of kill ring\n\n\n•   upper\nConvert everything in block to uppercase\n\n\n•   lower\nConvert everything in block to lowercase\n\n\n"
                },
                {
                    "name": "Buffers",
                    "content": "•   bufed\nBuffer menu\n\n\n•   edit\nLoad file into window: asks to reload if buffer exists\n\n\n•   switch\nLoad file into window: always uses buffer if it exists\n\n\n•   scratch\nPush a scratch buffer into current window\n\n\n•   popabort\nAbort and pop window from stack (do nothing if stack empty)\n\n\n•   nbuf\nLoad next buffer into current window\n\n\n•   pbuf\nLoad previous buffer into current window\n\n\n•   reload\nRe-read file into buffer (revert)\n\n\n•   reloadall\nRe-read all unmodified buffers\n\n\n"
                },
                {
                    "name": "Cursor Motion",
                    "content": "•   bof\nMove cursor to beginning of file\n\n\n•   bol\nMove cursor to beginning of line (always)\n\n\n•   bop\nMove to beginning of a paragraph\n\n\n•   bos\nMove to beginning of screen\n\n\n•   bkwdc\nSearch backwards for a character\n\n\n•   byte\nMove cursor to specific byte offset into the file.\n\n\n•   col\nMove cursor to specific column number.\n\n\n•   dnarw\nMove cursor down one line\n\n\n•   eof\nMove cursor to end of file\n\n\n•   eol\nMove cursor to end of line\n\n\n•   eop\nMove cursor to end of paragraph\n\n\n•   fwrdc\nSearch forward for matching character\n\n\n•   gomark\nMove cursor to a bookmark\n\n\n•   home\nMove cursor to beginning of line\n\n\n•   line\nMove cursor to specified line\n\n\n•   ltarw\nMove cursor left\n\n\n•   nedge\nMove cursor to next edge\n\n\n•   nextpos\nMove cursor to next position in cursor position history\n\n\n•   nextword\nMove cursor to end of next word\n\n\n•   pedge\nMove cursor to previous edge\n\n\n•   prevpos\nMove cursor to previous position in cursor position history\n\n\n•   prevword\nMove cursor to beginning of previous word\n\n\n•   rtarw\nMove cursor right\n\n\n•   setmark\nSet a bookmark\n\n\n•   tomatch\nMove cursor to matching delimiter\n\n\n•   tos\nMove cursor to top of screen\n\n\n•   uparw\nMove cursor up\n\n\n"
                },
                {
                    "name": "Deletion",
                    "content": "•   backs\nBackspace\n\n\n•   backw\nBackspace a word\n\n\n•   delbol\nDelete to beginning of line\n\n\n•   delch\nDelete character under cursor\n\n\n•   deleol\nDelete to end of line\n\n\n•   dellin\nDelete entire line\n\n\n•   delw\nDelete word to right\n\n\n"
                },
                {
                    "name": "Error parsing",
                    "content": "•   nxterr\nGoto next parsed error\n\n\n•   parserr\nParse errors in current file\n\n\n•   gparse\nParse grep list in current file\n\n\n•   jump\nParse current line and jump to it\n\n\n•   prverr\nGo to previous parsed error\n\n\n•   showerr\nShow current message\n\n\n•   grep\nExecute grep command, parse when done\n\n\n•   build\nExecute build command, parse when done\n\n\n•   release\nRelease error/grep records\n\n\n"
                },
                {
                    "name": "Exit",
                    "content": "•   cancel\nLike abort, but doesn´t return failure: useful in macros to escape out of a prompt.\n\n\n•   abort\nAbort current buffer/window. Prompt if it is changed.\n\n\n•   abortbuf\nLike above, but just fail if it would have to prompt because it´s the last  window  on  a\nmodified buffer.\n\n\n•   ask\nPrompt  to  save  current file: user says yes return, user says no: run ´abort´. Use in a\nmacro: \"ask,query,exsave\"\n\n\n•   exsave\nSave file and exit\n\n\n•   lose\nEMACS kill buffer. The buffer is deleted- any windows with it get a  replacement  scratch\nbuffer.\n\n\n•   querysave\nPrompt to save each modified buffer. Use in a macro: \"querysave,query,killjoe\"\n\n\n•   killjoe\nExit JOE immediately without checking for modified buffers\n\n\n"
                },
                {
                    "name": "Files",
                    "content": "•   cd\nSet directory prefix\n\n\n•   save\nSave file\n\n\n•   savenow\nSave immediately, unless file name is not known\n\n\n•   insf\nInsert a file\n\n\n"
                },
                {
                    "name": "Formatting",
                    "content": "•   center\nCenter line\n\n\n•   fmtblk\nFormat all paragraphs in a block\n\n\n•   format\nFormat current paragraph\n\n\n•   lindent\nIndent to the left\n\n\n•   rindent\nIndent to the right\n\n\n"
                },
                {
                    "name": "Help",
                    "content": "•   help\nTurn help on or off\n\n\n•   hnext\nSwitch to next help screen\n\n\n•   hprev\nSwitch to previous help screen\n\n\n"
                },
                {
                    "name": "Inserting",
                    "content": "•   ctrl\nType next key\n\n\n•   finish\nComplete word in text window\n\n\n•   insc\nInsert a space\n\n\n•   open\nInsert newline\n\n\n•   quote\nInsert a control character\n\n\n•   quote8\nInsert a meta character\n\n\n•   rtn\nReturn / Enter key\n\n\n•   type\nInsert typed character\n\n\n•   securetype\nInsert typed character, but only allowed in prompt windows (not allowed in shell windows)\n\n\n"
                },
                {
                    "name": "Macros",
                    "content": "•   macros\nInsert keyboard macros into current file\n\n\n•   play\nExecute a macro\n\n\n•   query\nSuspend macro recording for user query\n\n\n•   record\nRecord a macro\n\n\n•   stop\nStop recording macro\n\n\n"
                },
                {
                    "name": "Menu",
                    "content": "•   backsmenu\nUndo in file completion menu\n\n\n•   bofmenu\nMove to beginning of menu\n\n\n•   bolmenu\nMove to beginning of line in a menu\n\n\n•   dnarwmenu\nMove down one line in a menu\n\n\n•   eolmenu\nMove cursor to end of line in a menu\n\n\n•   eofmenu\nMove cursor to end of menu\n\n\n•   ltarwmenu\nMove cursor left in a menu\n\n\n•   rtarwmenu\nMove cursor right in menu\n\n\n•   uparwmenu\nMove cursor up in menu\n\n\n•   dnslidemenu\nScroll menu down one line\n\n\n•   upslidemenu\nScroll menu up one line\n\n\n•   pgupmenu\nScroll menu up\n\n\n•   pgdnmenu\nScroll menu down\n\n\n•   tabmenu\nTab through menu\n\n\n"
                },
                {
                    "name": "Misc",
                    "content": "•   beep\nBeep\n\n\n•   execmd\nExecute a JOE command\n\n\n•   debugjoe\nInsert debug information into buffer\n\n\n•   math\nCalculator\n\n\n•   maths\nSecure Calculator (no way to run joe() macros)\n\n\n•   mode\nMode prompt\n\n\n•   menu\nMenu prompt\n\n\n•   msg\nDisplay a message\n\n\n•   notmod\nClear the modified flag\n\n\n•   retype\nRefresh screen\n\n\n•   shell\nSuspend process or execute a sub-shell\n\n\n•   stat\nDisplay cursor position\n\n\n•   tag\nTags file search\n\n\n•   tagjump\nJump to next tags file search match (only if notagsmenu is set)\n\n\n•   timer\nExecute a macro periodically\n\n\n•   txt\nInsert  text.  If  first character is `, then text is assumed to be a format string (that\nis, the string used to define the status line for the rmsg and lmsg options) and is  for‐\nmatted before the insertion.\n\n\n•   name\nInsert current file name\n\n\n•   language\nInsert current language\n\n\n•   charset\nInsert current character set\n\n\n•   keymap\nSwitch to another keymap\n\n\n"
                },
                {
                    "name": "Prompts",
                    "content": "•   complete\nComplete a file-name in a prompt\n\n\n•   if\nOnly run following cmds if expr is true (non-zero)\n\n\n•   then\nSame as rtn but only works in prompt windows\n\n\n•   elsif\nTry a new condition\n\n\n•   else\nToggle truth flag\n\n\n•   endif\nStart running cmds again\n\n\n\n\nHere is an example ´if´ macro:\n\nif,\"char==65\",then,\"it´s an A\",else,\"it´s not an A\",endif ^[ q\n\nWhen  you  hit  ^[ q, if the character under the cursor is an ´A´: \"it´s a A\" is inserted\ninto the buffer, otherwise \"it´s not an A\" is inserted.\n\n\"if\" creates a math prompt (like Esc M). \"then\" is like \"rtn\"- it hits the return key for\nthis prompt.\n\nWithin the math prompt, the following variables are available:\n\n•   char\nASCII value of character under cursor\n\n\n•   width\nWidth of screen\n\n\n•   height\nHeight of screen\n\n\n•   byte\nbyte number\n\n\n•   col\ncolumn number\n\n\n•   line\nline number\n\n\n•   lines\nno. lines in file\n\n\n•   top\nline number of top line of window\n\n\n"
                },
                {
                    "name": "Repeat",
                    "content": "•   arg\nPrompt for repeat argument\n\n\n•   uarg\nUniversal argument\n\n\n"
                },
                {
                    "name": "Scrolling",
                    "content": "•   crawll\nPan screen left\n\n\n•   crawlr\nPan screen right\n\n\n•   dnslide\nScroll screen down 1 line\n\n\n•   pgdn\nScroll screen down\n\n\n•   pgup\nScroll screen up\n\n\n•   upslide\nScroll up one line\n\n\n"
                },
                {
                    "name": "Search and replace",
                    "content": "•   ffirst\nFind text\n\n\n•   fnext\nRepeat previous search\n\n\n•   isrch\nIncremental search forward\n\n\n•   qrepl\nSearch and replace\n\n\n•   rfirst\nSearch backwards for text\n\n\n•   rsrch\nReverse incremental search\n\n\n"
                },
                {
                    "name": "Windows",
                    "content": "•   explode\nDisplay one window or display all windows\n\n\n•   dupw\nDuplicate current window\n\n\n•   groww\nIncrease size of window\n\n\n•   nextw\nMove cursor to next window\n\n\n•   prevw\nGo to previous window\n\n\n•   shrinkw\nShrink window\n\n\n•   splitw\nSplit window into two\n\n\n•   tw0\nEliminate this window\n\n\n•   tw1\nShow only one window\n\n\n•   mwind\nGet error messages window on the screen and put cursor in it.\n\n\n•   showlog\nGet startup log scratch buffer into window.\n\n\n•   mfit\nFit  two  windows  on  the screen: make current window 6 lines, and give rest of space to\nwindow above. The window above is either the existing previous window,  a  newly  created\none if there wasn´t one.\n\n\n"
                },
                {
                    "name": "Undo",
                    "content": "•   redo\nRe-execute the latest undone change\n\n\n•   undo\nUndo last change\n\n\n"
                },
                {
                    "name": "Mouse",
                    "content": "•   tomouse\nMove the cursor to where the mouse was clicked/dragged\n\n\n•   defmdown\nDefault  single-click handler, usually bound to MDOWN.  Positions cursor to mouse and be‐\ngins a region.\n\n\n•   defmup\nDefault single-click release handler, usually bound to MUP.  Completes selection of a re‐\ngion.\n\n\n•   defmdrag\nDefault  single-click  drag  handler, usually bound to MDRAG.  Selects a region of text a\ncharacter at a time.\n\n\n•   defm2down\nDefault double-click handler, usually bound to M2DOWN.\n\n\n•   defm2up\nDefault double-click release handler, usually bound to M2UP.\n\n\n•   defm2drag\nDefault double-click drag handler, usually bound to M2DRAG.  Selects a region of  text  a\nword at a time.\n\n\n•   defm3down\nDefault triple-click handler, usually bound to M3DOWN.\n\n\n•   defm3up\nDefault triple-click release handler, usually bound to M3UP.\n\n\n•   defm3drag\nDefault  triple-click  drag handler, usually bound to M3DRAG.  Selects a region of text a\nline at a time.\n\n\n•   defmiddledown\nDefault middle click handler, usually bound to MIDDLEDOWN.  This inserts text.\n\n\n•   defmiddleup\nDefault middle click release handler, usually bound to MIDDLEUP.\n\n\n•   xtmouse\nHandle xterm mouse events, usually bound to Esc [ M.  It parses the rest of the  sequence\nand generates fake \"keys\" that can be bound to macros in the joerc file.  It uses a timer\nto detect double-click and triple-click.  The keys are: MUP, MDOWN, MDRAG, M2UP,  M2DOWN,\nM2DRAG, M3UP, M3DOWN, M3DRAG, MWUP and MWDOWN.\n\n\n•   extmouse\nHandle extended xterm mouse events, usually bound to Esc [ <.\n\n\n•   paste\nInsert base64 encoded text (for XTerm --enable-base64 option).\n\n\n•   brpaste\nDisable  autoindent,  wordwrap  and  spaces. The idea is to bind this to Esc [ 2 0 0 ~ so\nthat when the terminal emulator sends a mouse paste, the text is inserted as-is.\n\n\n•   brpastedone\nRestore autoindent, wordwrap and spaces modes to their original  values  before  brpaste.\nThe  idea is to bind this to Esc [ 2 0 1 ~ so that these modes are restored after a mouse\npaste.\n\n\n\n\n\n\n\nMarch 2016                                        JOE()\nMC(1)                                  GNU Midnight Commander                                  MC(1)\n\n\n"
                }
            ]
        },
        "SYNOPSIS": {
            "content": "mc [-abcCdfhPstuUVx] [-l log] [dir1 [dir2]] [-e [file] ...] [-v file]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "GNU Midnight Commander is a directory browser/file manager for Unix-like operating systems.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "-a, --stickchars\nDisable usage of graphic characters for line drawing.\n\n-b, --nocolor\nForce black and white display.\n\n-c, --color\nForce color mode, please check the section Colors for more information.\n\n-C arg, --colors=arg\nSpecify a different color set in the command line.  The format of arg is documented in\nthe Colors section.\n\n--configure-options\nDisplay configure options.\n\n-d, --nomouse\nDisable mouse support.\n\n-D N, --debuglevel=N\nSave the debug level for SMB VFS. N is in 0-10 range.\n\n-e [file], --edit[=file]\nStart the internal editor.  If the file is specified, open it on  startup.   See  also\nmcedit (1).\n\n-f, --datadir\nDisplay the compiled-in search paths for Midnight Commander files.\n\n-F, --datadir-info\nDisplay extended info about compiled-in paths for Midnight Commander.\n\n-g, --oldmouse\nForce  a  \"normal  tracking\"  mouse mode. Used when running on xterm-capable terminals\n(tmux/screen).\n\n-k, --resetsoft\nReset softkeys to their default from the termcap/terminfo database. Only useful on  HP\nterminals when the function keys don't work.\n\n-K file, --keymap=file\nSpecify a name of keymap file in the command line.\n\n-l file, --ftplog=file\nSave the ftpfs dialog with the server in file.\n\n--nokeymap\nDon't load key bindings from any file, use default hardcoded keys.\n\n-P file, --printwd=file\nPrint  the  last working directory to the specified file.  This option is not meant to\nbe used directly.  Instead, it's used from a special shell script  that  automatically\nchanges  the  current  directory of the shell to the last directory Midnight Commander\nwas in. Source the file /usr/lib/mc/mc.sh (bash  and  zsh  users)  or  /usr/lib/mc.csh\n(tcsh users) respectively to define mc as an alias to the appropriate shell script.\n\n-s, --slow\nTurn  on the slow terminal mode, in this mode the program will not draw expensive line\ndrawing characters and will toggle verbose mode off.\n\n-S arg, --skin=arg\nSpecify a name of skin in the command line. Technology of skins is documented  in  the\nSkins section.\n\n-t, --termcap\nUsed only if the code was compiled with S-Lang and terminfo: it makes Midnight Comman‐\nder use the value of the TERMCAP variable for the terminal information instead of  the\ninformation on the system wide terminal database\n\n-u, --nosubshell\nDisable  use  of the concurrent shell (only makes sense if Midnight Commander has been\nbuilt with concurrent shell support).\n\n-U, --subshell\nEnable use of the concurrent shell support (only makes sense if the Midnight Commander\nwas built with the subshell support set as an optional feature).\n\n-v file, --view=file\nStart the internal viewer to view the specified file.  See also mcview (1).\n\n-V, --version\nDisplay the version of the program.\n\n-x, --xterm\nForce xterm mode.  Used when running on xterm-capable terminals (two screen modes, and\nable to send mouse escape sequences).\n\n-X, --no-x11\nDo not use X11 to get the state of modifiers Alt, Ctrl, Shift\n\nIf both paths are specified, the first path name is the  directory  to  show  in  the  active\npanel; the second path name is the directory to be shown in the other panel.\n\nIf  one  path is specified, the path name is the directory to show in the active panel; value\nof \"otherdir\" from panels.ini is the directory to be shown in the passive panel.\n\nIf no paths are specified,  current  directory  is  shown  in  the  active  panel;  value  of\n\"otherdir\" from panels.ini is the directory to be shown in the passive panel.\n",
            "subsections": []
        },
        "Overview": {
            "content": "The  screen of Midnight Commander is divided into four parts.  Almost all of the screen space\nis taken up by two directory panels.  By default, the second line  from  the  bottom  of  the\nscreen  is  the  shell  command line, and the bottom line shows the function key labels.  The\ntopmost line is the menu bar line.  The menu bar line may not be visible, but appears if  you\nclick the topmost line with the mouse or press the F9 key.\n\nMidnight  Commander provides a view of two directories at the same time. One of the panels is\nthe current panel (a selection bar is in the current panel). Almost all operations take place\non  the current panel. Some file operations like Rename and Copy by default use the directory\nof the unselected panel as a destination (don't worry, they always ask you  for  confirmation\nfirst).  For  more  information, see the sections on the Directory Panels, the Left and Right\nMenus and the File Menu.\n\nYou can execute system commands from Midnight Commander by simply typing them. Everything you\ntype will appear on the shell command line, and when you press Enter, Midnight Commander will\nexecute the command line you typed; read the Shell Command Line and Input Line Keys  sections\nto learn more about the command line.\n",
            "subsections": [
                {
                    "name": "Mouse Support",
                    "content": "Midnight  Commander  comes with mouse support. It is activated whenever you are running on an\nxterm(1) terminal (it even works if you take a telnet, ssh or rlogin  connection  to  another\nmachine  from  the  xterm)  or  if  you are running on a Linux console and have the gpm mouse\nserver running.\n\nWhen you left click on a file in the directory panels, that file is selected;  if  you  click\nwith the right button, the file is marked (or unmarked, depending on the previous state).\n\nDouble-clicking on a file will try to execute the command if it is an executable program; and\nif the extension file has a program specified for the file's extension, the specified program\nis executed.\n\nAlso,  it is possible to execute the commands assigned to the function key labels by clicking\non them.\n\nThe default auto repeat rate for the mouse buttons is 400 milliseconds. This may  be  changed\nto  other  values by editing the ~/.config/mc/ini file and changing the mouserepeatrate pa‐\nrameter.\n\nIf you are running Midnight Commander with the mouse support, you can get the  default  mouse\nbehavior (cutting and pasting text) by holding down the Shift key.\n\n"
                }
            ]
        },
        "Keys": {
            "content": "Some commands in Midnight Commander involve the use of the Control (sometimes labeled CTRL or\nCTL) and the Meta (sometimes labeled ALT or even Compose) keys. In this manual  we  will  use\nthe following abbreviations:\n",
            "subsections": [
                {
                    "name": "C-<chr>",
                    "content": "means  hold the Control key while typing the character <chr>.  Thus C-f would be: hold\nthe Control key and type f.\n"
                },
                {
                    "name": "Alt-<chr>",
                    "content": "means hold the Meta or Alt key down while typing <chr>.  If there is no  Meta  or  Alt\nkey, type Esc, release it, then type the character <chr>.\n"
                },
                {
                    "name": "S-<chr>",
                    "content": "means hold the Shift key down while typing <chr>.\n\nAll  input  lines  in  Midnight  Commander use an approximation to the GNU Emacs editor's key\nbindings (default).\n\nYou may redefine key bindings. See redefine hotkey bindings\n\nfor more info. All other key bindings (described in this manual) are relative to default  be‐\nhavior.\n\n\nThere are many sections which tell about the keys. The following are the most important.\n\nThe File Menu section documents the keyboard shortcuts for the commands appearing in the File\nmenu. This section includes the function keys. Most of these commands  perform  some  action,\nusually on the selected file or the tagged files.\n\nThe  Directory Panels section documents the keys which select a file or tag files as a target\nfor a later action (the action is usually one from the file menu).\n\nThe Shell Command Line section list the keys which are used for entering and editing  command\nlines.  Most  of these copy file names and such from the directory panels to the command line\n(to avoid excessive typing) or access the command line history.\n\nInput Line Keys are used for editing input lines. This means both the command  line  and  the\ninput lines in the query dialogs.\n\n"
                },
                {
                    "name": "Redefine hotkey bindings",
                    "content": "Hotkey  bindings may be read from external file (keymap-file).  Initially, Midnight Commander\ncreates  key  bindings  using  keymap  defined  in  the  source   code.   Then,   two   files\n/usr/share/mc/mc.keymap  and /etc/mc/mc.keymap are loaded always, sequentially reassigned key\nbindings defined earlier.  User-defined keymap-file is searched on  the  following  algorithm\n(to the first one found):\n\n1) command line option -K <keymap> or --keymap=<keymap>\n2) Environment variable MCKEYMAP\n3) Parameter keymap in section [Midnight-Commander] of config file.\n4) File ~/.config/mc/mc.keymap\n\nCommand  line option, environment variable and parameter in config file may contain the abso‐\nlute path to  the  keymap-file  (with  the  extension  .keymap  or  without  it).  Search  of\nkeymap-file will occur in (to the first one found):\n\n1) ~/.config/mc\n2) /etc/mc/\n3) /usr/share/mc/\n\n"
                },
                {
                    "name": "Miscellaneous Keys",
                    "content": "Here are some keys which don't fall into any of the other categories:\n\nEnter  if  there is some text in the command line (the one at the bottom of the panels), then\nthat command is executed. If there is no text in the command line then if  the  selec‐\ntion  bar  is  over a directory the Midnight Commander does a chdir(2) to the selected\ndirectory and reloads the information on the panel; if the selection is an  executable\nfile  then it is executed. Finally, if the extension of the selected file name matches\none of the extensions in the extensions file then the corresponding  command  is  exe‐\ncuted.\n\nC-l    repaint all the information in Midnight Commander.\n\nC-x c  run the Chmod command on a file or on the tagged files.\n\nC-x o  run the Chown command on the current file or on the tagged files.\n\nC-x l  run the hard link command.\n\nC-x s  run the absolute symbolic link command.\n\nC-x v  run the relative symbolic link command. See the File Menu section for more information\nabout symbolic links.\n\nC-x i  set the other panel display mode to information.\n\nC-x q  set the other panel display mode to quick view.\n\nC-x !  execute the External panelize command.\n\nC-x h  run the add directory to hotlist command.\n\nAlt-!  executes the Filtered view command, described in the view command.\n\nAlt-?  executes the Find file command.\n\nAlt-c  pops up the quick cd dialog.\n\nC-o    when the program is being run in the Linux or FreeBSD console or under  an  xterm,  it\nwill show you the output of the previous command.  When ran on the Linux console, Mid‐\nnight Commander uses an external program (cons.saver) to handle saving  and  restoring\nof information on the screen.\n\nWhen  the subshell support is compiled in, you can type C-o at any time and you will be taken\nback to Midnight Commander's main screen, to return to your application just  type  C-o.   If\nyou  have  an  application  suspended by using this trick, you won't be able to execute other\nprograms from Midnight Commander until you terminate the suspended application.\n"
                },
                {
                    "name": "Directory Panels",
                    "content": "This section lists the keys which operate on the directory panels. If you want to know how to\nchange the appearance of the panels take a look at the section on Left and Right Menus.\n"
                },
                {
                    "name": "Tab, C-i",
                    "content": "change  the  current  panel. The old other panel becomes the new current panel and the\nold current panel becomes the new other panel. The selection bar moves  from  the  old\ncurrent panel to the new current panel.\n"
                },
                {
                    "name": "Insert, C-t",
                    "content": "to  tag  files  you  may  use  the Insert key (the kich1 terminfo sequence).  To untag\nfiles, just retag a tagged file.\n\nAlt-e  to change charset of panel you may use Alt-e (M-e).  Recoding is  made  from  selected\ncodepage  into system codepage. To cancel the recoding, select \"No translation\" in the\ndialog of encodings.\n"
                },
                {
                    "name": "Alt-g, Alt-r, Alt-j",
                    "content": "used to select the top file in a panel, the middle file and the  bottom  one,  respec‐\ntively.\n\nAlt-t  toggle the current display listing to show the next display listing format.  With this\nit is possible to quickly switch to brief listing, long listing, user defined  listing\nformat, and back to the default.\n"
                },
                {
                    "name": "C-\\ (control-backslash)",
                    "content": "show the directory hotlist and change to the selected directory.\n"
                },
                {
                    "name": "+  (plus)",
                    "content": "this  is  used  to select (tag) a group of files. Midnight Commander will prompt for a\nselection options. When Files only checkbox is on, only files will  be  selected.   If\nFiles  only  is  off,  as  files as directories will be selected.  When Shell Patterns\ncheckbox is on, the regular expression is much like the filename globbing in the shell\n(*  standing  for  zero or more characters and ? standing for one character). If Shell\nPatterns is off, then the tagging of files is done  with  normal  regular  expressions\n(see ed (1)). When Case sensitive checkbox is on, the selection will be case sensitive\ncharacters.  If Case sensitive is off, the case will be ignored.\n"
                },
                {
                    "name": "\\ (backslash)",
                    "content": "use the \"\\\" key to unselect a group of files. This is the opposite of the Plus key.\n"
                },
                {
                    "name": "up-key, C-p",
                    "content": "move the selection bar to the previous entry in the panel.\n"
                },
                {
                    "name": "down-key, C-n",
                    "content": "move the selection bar to the next entry in the panel.\n"
                },
                {
                    "name": "home, a1, Alt-<",
                    "content": "move the selection bar to the first entry in the panel.\n"
                },
                {
                    "name": "end, c1, Alt->",
                    "content": "move the selection bar to the last entry in the panel.\n"
                },
                {
                    "name": "next-page, C-v",
                    "content": "move the selection bar one page down.\n"
                },
                {
                    "name": "prev-page, Alt-v",
                    "content": "move the selection bar one page up.\n\nAlt-o  If the currently selected file is a directory, load that directory on the other  panel\nand  moves the selection to the next file. If the currently selected file is not a di‐\nrectory, load the parent directory on the other panel and moves the selection  to  the\nnext file.\n\nAlt-i  make  the  current  directory  of  the current panel also the current directory of the\nother panel.  Put the other panel to the listing mode if needed.  If the current panel\nis panelized, the other panel doesn't become panelized.\n"
                },
                {
                    "name": "C-PageUp, C-PageDown",
                    "content": "only  when supported by the terminal: change to \"..\" and to the currently selected di‐\nrectory respectively.\n\nAlt-y  moves to the previous directory in the history, equivalent to clicking the < with  the\nmouse.\n\nAlt-u  moves  to  the  next  directory  in the history, equivalent to clicking the > with the\nmouse.\n"
                },
                {
                    "name": "Alt-S-h, Alt-H",
                    "content": "displays the directory history, equivalent to depressing the 'v' with the mouse.\n"
                },
                {
                    "name": "Quick search",
                    "content": "The Quick search mode allows you to perform fast file search in file  panel.   Press  C-s  or\nAlt-s to start a filename search in the directory listing.\n\nWhen  the  search is active, the user input will be added to the search string instead of the\ncommand line. If the Show mini-status option is enabled the search string  is  shown  on  the\nmini-status line. When typing, the selection bar will move to the next file starting with the\ntyped letters. The Backspace or DEL keys can be used to correct typing mistakes.  If  C-s  is\npressed again, the next match is searched for.\n\nIf  quick  search  is  started with double pressing of C-s, the previous quick search pattern\nwill be used for current search.\n\nBesides the filename characters, you can also use wildcard characters '*' and '?'.\n"
                },
                {
                    "name": "Shell Command Line",
                    "content": "This section lists keys which are useful to avoid excessive typing when entering  shell  com‐\nmands.\n"
                },
                {
                    "name": "Alt-Enter",
                    "content": "copy the currently selected file name to the command line.\n"
                },
                {
                    "name": "C-Enter",
                    "content": "same a Alt-Enter.  May not work on remote systems and some terminals.\n"
                },
                {
                    "name": "C-S-Enter",
                    "content": "copy  the  full path name of the currently selected file to the command line.  May not\nwork on remote systems and some terminals.\n"
                },
                {
                    "name": "Alt-Tab",
                    "content": "does the filename, command, variable, username and hostname completion for you.\n"
                },
                {
                    "name": "C-x t, C-x C-t",
                    "content": "copy the tagged files (or if there are no tagged files, the selected file) of the cur‐\nrent panel (C-x t) or of the other panel (C-x C-t) to the command line.\n"
                },
                {
                    "name": "C-x p, C-x C-p",
                    "content": "the  first key sequence copies the current path name to the command line, and the sec‐\nond one copies the unselected panel's path name to the command line.\n\nC-q    the quote command can be used to insert characters that are otherwise  interpreted  by\nMidnight Commander (like the '+' symbol)\n"
                },
                {
                    "name": "Alt-p, Alt-n",
                    "content": "use  these keys to browse through the command history. Alt-p takes you to the last en‐\ntry, Alt-n takes you to the next one.\n\nAlt-h  displays the history for the current input line.\n"
                },
                {
                    "name": "General Movement Keys",
                    "content": "The help viewer, the file viewer and the directory tree use common  code  to  handle  moving.\nTherefore they accept exactly the same keys. Each of them also accepts some keys of its own.\n\nOther  parts of Midnight Commander use some of the same movement keys, so this section may be\nof use for those parts too.\n"
                },
                {
                    "name": "Up, C-p",
                    "content": "moves one line backward.\n"
                },
                {
                    "name": "Down, C-n",
                    "content": "moves one line forward.\n"
                },
                {
                    "name": "Prev Page, Page Up, Alt-v",
                    "content": "moves one page up.\n"
                },
                {
                    "name": "Next Page, Page Down, C-v",
                    "content": "moves one page down.\n"
                },
                {
                    "name": "Home, A1",
                    "content": "moves to the beginning.\n"
                },
                {
                    "name": "End, C1",
                    "content": "move to the end.\n\nThe help viewer and the file viewer accept the following keys in addition the  to  ones  men‐\ntioned above:\n"
                },
                {
                    "name": "b, C-b, C-h, Backspace, Delete",
                    "content": "moves one page up.\n"
                },
                {
                    "name": "Space bar",
                    "content": "moves one page down.\n\nu, d   moves one half of a page up or down.\n\ng, G   moves to the beginning or to the end.\n"
                },
                {
                    "name": "Input Line Keys",
                    "content": "The input lines (they are used for the command line and for the query dialogs in the program)\naccept these keys:\n\nC-a    puts the cursor at the beginning of line.\n\nC-e    puts the cursor at the end of the line.\n"
                },
                {
                    "name": "C-b, move-left",
                    "content": "move the cursor one position left.\n"
                },
                {
                    "name": "C-f, move-right",
                    "content": "move the cursor one position right.\n\nAlt-f  moves one word forward.\n\nAlt-b  moves one word backward.\n"
                },
                {
                    "name": "C-h, Backspace",
                    "content": "delete the previous character.\n"
                },
                {
                    "name": "C-d, Delete",
                    "content": "delete the character in the point (over the cursor).\n\nC-@    sets the mark for cutting.\n\nC-w    copies the text between the cursor and the mark to a kill buffer and removes the  text\nfrom the input line.\n\nAlt-w  copies the text between the cursor and the mark to a kill buffer.\n\nC-y    yanks back the contents of the kill buffer.\n\nC-k    kills the text from the cursor to the end of the line.\n"
                },
                {
                    "name": "Alt-p, Alt-n",
                    "content": "Use  these keys to browse through the command history. Alt-p takes you to the last en‐\ntry, Alt-n takes you to the next one.\n"
                },
                {
                    "name": "Alt-C-h, Alt-Backspace",
                    "content": "delete one word backward.\n"
                },
                {
                    "name": "Alt-Tab",
                    "content": "does the filename, command, variable, username and hostname completion for you.\n\n"
                },
                {
                    "name": "Menu Bar",
                    "content": "The menu bar pops up when you press F9 or click the mouse on the top row of the  screen.  The\nmenu bar has five menus: \"Left\", \"File\", \"Command\", \"Options\" and \"Right\".\n\nThe  Left  and Right Menus allow you to modify the appearance of the left and right directory\npanels.\n\nThe File Menu lists the actions you can perform on the currently selected file or the  tagged\nfiles.\n\nThe  Command  Menu  lists the actions which are more general and bear no relation to the cur‐\nrently selected file or the tagged files.\n\nThe Options Menu lists the actions which allow you to customize Midnight Commander.\n"
                },
                {
                    "name": "Left and Right (Above and Below) Menus",
                    "content": "The outlook of the directory panels can be changed from the Left and Right  menus  (they  are\nnamed  Above and Below when the horizontal panel split is chosen from the Layout options dia‐\nlog).\n"
                },
                {
                    "name": "Listing Format...",
                    "content": "The listing mode view is used to display a listing of files, there are four different listing\nformats  available: Full, Brief, Long and User.  The full directory view shows the file name,\nthe size of the file and the modification time.\n\nThe brief view shows only the file name and it has from 1 up to 9 columns (therefore  showing\nmore  files unlike other views). The long view is similar to the output of ls -l command. The\nlong view takes the whole screen width.\n\nIf you choose the \"User\" display format, then you have to specify the display format.\n\nThe user display format must start with a panel  size  specifier.   This  may  be  \"half\"  or\n\"full\", and they specify a half screen panel and a full screen panel respectively.\n\nAfter the panel size, you may specify how many listings to fit in the panel, side-by-side (in\nother words: how many times to repeat the fields horizontally). This defaults to 1.  You  may\nchange this by adding a number from 1 to 9 to the format string.\n\nAfter  this  you  add  the  name of the fields with an optional size specifier.  This are the\navailable fields you may display:\n\nname   displays the file name.\n\nsize   displays the file size.\n\nbsize  is an alternative form of the size format. It displays the size of the files  and  for\ndirectories it just shows SUB-DIR or UP--DIR.\n\ntype   displays  a  one character wide type field.  This character is similar to what is dis‐\nplayed by ls with the -F flag - * for executable  files,  /  for  directories,  @  for\nlinks, = for sockets, - for character devices, + for block devices, | for pipes, ~ for\nsymbolic links to directories and !  for stale symlinks (links that point nowhere).\n\nmark   an asterisk if the file is tagged, a space if it's not.\n\nmtime  file's last modification time.\n\natime  file's last access time.\n\nctime  file's status change time.\n\nperm   a string representing the current permission bits of the file.\n\nmode   an octal value with the current permission bits of the file.\n\nnlink  the number of links to the file.\n\nngid   the GID (numeric).\n\nnuid   the UID (numeric).\n\nowner  the owner of the file.\n\ngroup  the group of the file.\n\ninode  the inode of the file.\n\nAlso you can use following keywords to define the panel layout:\n\nspace  a space in the display format.\n\n|      add a vertical line to the display format.\n\nTo force one field to a fixed size (a size specifier), you just add : followed by the  number\nof  characters  you  want the field to have.  If the number is followed by the symbol +, then\nthe size specifies the minimal field size - if the program finds out that there is more space\non the screen, it will then expand that field.\n\nFor example, the Full display corresponds to this format:\n\nhalf type name | size | mtime\n\nAnd the Long display corresponds to this format:\n\nfull perm space nlink space owner space group space size space mtime space name\n\nThis is a nice user display format:\n\nhalf name | size:7 | type mode:3\n\nPanels may also be set to the following modes:\n\nInfo   The info view display information related to the currently selected file and if possi‐\nble information about the current file system.\n\nTree   The tree view is quite similar to the directory tree feature. See the section about it\nfor more information.\n"
                },
                {
                    "name": "Quick View",
                    "content": "In  this mode, the panel will switch to a reduced viewer that displays the contents of\nthe currently selected file, if you select the panel (with the tab key or the  mouse),\nyou will have access to the usual viewer commands.\n"
                },
                {
                    "name": "Sort Order...",
                    "content": "The eight sort orders are by name, by extension, by modification time, by access time, and by\ninode information modification time, by size, by inode and unsorted.  In the Sort order  dia‐\nlog box you can choose the sort order and you may also specify if you want to sort in reverse\norder by checking the reverse box.\n\nBy default directories are sorted before files but this can be changed from the Panel options\nmenu (option Mix all files).\n"
                },
                {
                    "name": "Filter...",
                    "content": "The  filter  command  allows  you to specify a shell pattern (for example *.tar.gz) which the\nfiles must match to be shown. Regardless of the filter pattern, the directories and the links\nto directories are always shown in the directory panel.\n"
                },
                {
                    "name": "Reread",
                    "content": "The reread command reload the list of files in the directory. It is useful if other processes\nhave created or removed files.\n"
                },
                {
                    "name": "File Menu",
                    "content": "Midnight Commander uses the F1 - F10 keys as keyboard shortcuts for commands appearing in the\nfile  menu.   The escape sequences for the function keys are terminfo capabilities kf1 trough\nkf10.  On terminals without function key support, you can achieve the same  functionality  by\npressing the Esc key and then a number in the range 1 through 9 and 0 (corresponding to F1 to\nF9 and F10 respectively).\n\nThe File menu has the following commands (keyboard shortcuts in parentheses):\n"
                },
                {
                    "name": "Help (F1)",
                    "content": "Invokes the built-in hypertext help viewer. Inside the help viewer, you can use the  Tab  key\nto  select  the next link and the Enter key to follow that link. The keys Space and Backspace\nare used to move forward and backward in a help page. Press F1 again to get the full list  of\naccepted keys.\n"
                },
                {
                    "name": "Menu (F2)",
                    "content": "Invoke  the  user  menu.  The user menu provides an easy way to provide users with a menu and\nadd extra features to Midnight Commander.\n"
                },
                {
                    "name": "View (F3, F13)",
                    "content": "View the currently selected file. By default this invokes the Internal File Viewer but if the\noption \"Use internal view\" is off, it invokes an external file viewer specified by the VIEWER\nenvironment variable.  If VIEWER is undefined, the PAGER environment variable is  tried.   If\nPAGER  is  also undefined, the \"view\" command is invoked.  If you use F13 instead, the viewer\nwill be invoked without doing any formatting or preprocessing to the file.\n\nSee parameters for external viewer for explain how you may specify an extended  command  line\noptions for external viewers.\n"
                },
                {
                    "name": "Filtered View (Alt-!)",
                    "content": "This  command prompts for a command and its arguments (the argument defaults to the currently\nselected file name), the output from such command is shown in the internal file viewer.\n"
                },
                {
                    "name": "Edit (F4, F14)",
                    "content": "Press F4 to edit the highlighted file.  Press F14 (usually F14) to start the  editor  with  a\nnew,  empty file.  Currently they invoke the vi editor, or the editor specified in the EDITOR\nenvironment variable, or the Internal File Editor if the useinternaledit option is on.\n\nSee parameters for external editor for explain how you may specify an extended  command  line\noptions for external editors.\n"
                },
                {
                    "name": "Copy (F5, F15)",
                    "content": "Press  F5 to pop up an input dialog to copy the currently selected file (or the tagged files,\nif there is at least one file tagged) to the directory/filename you specify in the input dia‐\nlog.  The destination defaults to the directory in the non-selected panel. Space for destina‐\ntion file may be preallocated relative to preallocatespace configure  option.   During  this\nprocess,  you  can  press  C-c  or Esc to abort the operation.  For details about source mask\n(which will be usually either * or ^\\(.*\\)$ depending on setting of Use shell  patterns)  and\npossible wildcards in the destination see Mask copy/rename.\n\nF15  (usually F15) is similar, but defaults to the directory in the selected panel. It always\noperates on the selected file, regardless of any tagged files.\n\nOn some systems, it is possible to do the copy in the background by  clicking  on  the  back‐\nground  button (or pressing Alt-b in the dialog box).  The Background Jobs is used to control\nthe background process.\n"
                },
                {
                    "name": "Link (C-x l)",
                    "content": "Create a hard link to the current file.\n"
                },
                {
                    "name": "Absolute symlink (C-x s)",
                    "content": "Create a absolute symbolic link to the current file.\n"
                },
                {
                    "name": "Relative symLink (C-x v)",
                    "content": "Create a relative symbolic link to the current file.\n\nTo those of you who don't know what links are: creating a link to a file is a bit like  copy‐\ning  the  file,  but both the source filename and the destination filename represent the same\nfile image. For example, if you edit one of these files, all changes you make will appear  in\nboth files. Some people call links aliases or shortcuts.\n\nA  hard link appears as a real file. After making it, there is no way of telling which one is\nthe original and which is the link. If you delete either one of them the other one  is  still\nintact.  It  is  very  difficult  to notice that the files represent the same image. Use hard\nlinks when you don't even want to know.\n\nA symbolic link is a reference to the name of the original file.  If  the  original  file  is\ndeleted the symbolic link is useless. It is quite easy to notice that the files represent the\nsame image. Midnight Commander shows an \"@\"-sign in front of the file name if it  is  a  sym‐\nbolic link to somewhere (except to directory, where it shows a tilde (~)).  The original file\nwhich the link points to is shown on mini-status line if the Show mini-status option  is  en‐\nabled.  Use  symbolic  links  when you want to avoid the confusion that can be caused by hard\nlinks.\n\nWhen you press \"C-x s\" Midnight Commander will automatically fill in the complete  path+file‐\nname of the original file and suggest a name for the link.  You can change either one.\n\nSometimes  you  may want to change the absolute path of the original into a relative path. An\nabsolute path starts from the root directory:\n\n/home/frodo/mc/mc -> /home/frodo/new/mc\n\nA relative link describes the original file's location starting from the location of the link\nitself:\n\n/home/frodo/mc/mc -> ../new/mc\n\nYou  can  force  Midnight Commander to suggest a relative path by pressing \"C-x v\" instead of\n\"C-x s\".\n"
                },
                {
                    "name": "Rename/Move (F6, F16)",
                    "content": "Press F6 to pop up an input dialog to copy the currently selected file (or the tagged  files,\nif there is at least one file tagged) to the directory/filename you specify in the input dia‐\nlog.  The destination defaults to the directory in the non-selected panel. For  more  details\nlook at Copy (F5) operation above, most of the things are quite similar.\n\nF16  (usually F16) is similar, but defaults to the directory in the selected panel. It always\noperates on the selected file, regardless of any tagged files.\n\nOn some systems, it is possible to do the copy in the background by  clicking  on  the  back‐\nground  button (or pressing Alt-b in the dialog box).  The Background Jobs is used to control\nthe background process.\n"
                },
                {
                    "name": "Mkdir (F7)",
                    "content": "Pop up an input dialog and creates the directory specified.\n"
                },
                {
                    "name": "Delete (F8)",
                    "content": "Delete the currently selected file or the tagged files in the currently selected panel.  Dur‐\ning the process, you can press C-c or Esc to abort the operation.\n\nQuick  cd (Alt-c) Use the quick cd command if you have full command line and want to cd some‐\nwhere.\n"
                },
                {
                    "name": "Select group (+)",
                    "content": "This is used to select (tag) a group of files. Midnight Commander will prompt for a selection\noptions.  When Files only checkbox is on, only files will be selected.  If Files only is off,\nas files as directories will be selected.  When Shell Patterns checkbox is  on,  the  regular\nexpression is much like the filename globbing in the shell (* standing for zero or more char‐\nacters and ?  standing for one character). If Shell Patterns is  off,  then  the  tagging  of\nfiles  is  done with normal regular expressions (see ed (1)). When Case sensitive checkbox is\non, the selection will be case sensitive characters.  If Case sensitive is off, the case will\nbe ignored.\n"
                },
                {
                    "name": "Unselect group (\\)",
                    "content": "Used to unselect a group of files. This is the opposite of the Select group command.\n"
                },
                {
                    "name": "Quit (F10, S-F10)",
                    "content": "Terminate Midnight Commander. S-F10 is used when you want to quit and you are using the shell\nwrapper.  S-F10 will not take you to the last directory you visited with Midnight  Commander,\ninstead it will stay at the directory where you started Midnight Commander.\n"
                },
                {
                    "name": "Quick cd",
                    "content": "This  command is useful if you have a full command line and want to cd somewhere without hav‐\ning to yank and paste the command line. This command pops up a small dialog, where you  enter\neverything  you  would enter after cd on the command line and then you press enter. This fea‐\ntures all the things that are already in the internal cd command.\n"
                },
                {
                    "name": "Command Menu",
                    "content": "The Directory tree command shows a tree figure of the directories.\n\nThe \"Find file\" command allows you to search for a specific file.\n\nThe \"Swap panels\" command swaps the contents of the two directory panels.\n\nThe \"Switch panels on/off\" command shows the output of the last shell  command.   This  works\nonly on xterm and on Linux and FreeBSD console.\n\nThe \"Compare directories\" command compares the directory panels with each other. You can then\nuse the Copy (F5) command to make the panels identical. There are three compare methods.  The\nquick  method  compares  only  file  size  and  file  date.  The thorough method makes a full\nbyte-by-byte compare. The thorough method is not available if the machine  does  not  support\nthe  mmap(2) system call.  The size-only compare method just compares the file sizes and does\nnot check the contents or the date times, it just checks the file size.\n\nThe \"External panelize\" allows you to execute an external program, and  make  the  output  of\nthat program the contents of the current panel.\n\nThe  \"Command history\" command shows a list of typed commands. The selected command is copied\nto the command line. The command history can also be accessed by typing Alt-p or Alt-n.\n\nThe \"Directory hotlist\" command makes changing of the current directory to often used  direc‐\ntories faster.\n\nThe  \"Screen  list\" command shows a dialog window with the list of currently running internal\neditors, viewers and other MC modules that support this mode.\n\nThe \"Edit extension file\" command allows you to specify programs to executed when you try  to\nexecute,  view, edit and do a bunch of other thing on files with certain extensions (filename\nendings).\n\nThe \"Edit Menu File\" command may be used for editing the user menu (which appears by pressing\nF2).\n"
                },
                {
                    "name": "Directory Tree",
                    "content": "The Directory Tree command shows a tree figure of the directories. You can select a directory\nfrom the figure and Midnight Commander will change to that directory.\n\nThere are two ways to invoke the tree. The real directory tree command is available from Com‐\nmands menu. The other way is to select tree view from the Left or Right menu.\n\nTo  get  rid  of  long  delays, Midnight Commander creates the tree figure by scanning only a\nsmall subset of all the directories. If the directory which you want to see is missing,  move\nto its parent directory and press C-r (or F2).\n\nYou can use the following keys:\n\nGeneral movement keys\nare accepted.\n\nEnter. In  the  directory tree, exits the directory tree and changes to this directory in the\ncurrent panel. In the tree view, changes to this directory  in  the  other  panel  and\nstays in tree view mode in the current panel.\n"
                },
                {
                    "name": "C-r, F2 (Rescan).",
                    "content": "Rescan  this  directory.  Use  this when the tree figure is out of date: it is missing\nsubdirectories or shows some subdirectories which don't exist any more.\n"
                },
                {
                    "name": "F3 (Forget).",
                    "content": "Delete this directory from the tree figure. Use this to remove clutter from  the  fig‐\nure.  If  you want the directory back to the tree figure press F2 in its parent direc‐\ntory.\n"
                },
                {
                    "name": "F4 (Static/Dynamic).",
                    "content": "Toggle between the dynamic navigation mode (default) and the static navigation mode.\n\nIn the static navigation mode you can use the Up and Down keys to  select  a  directory.  All\nknown directories are shown.\n\nIn  the  dynamic  navigation mode you can use the Up and Down keys to select a sibling direc‐\ntory, the Left key to move to the parent directory, and the Right key to move to a child  di‐\nrectory.  Only  the  parent, sibling and children directories are shown, others are left out.\nThe tree figure changes dynamically as you traverse.\n"
                },
                {
                    "name": "F5 (Copy).",
                    "content": "Copy the directory.\n"
                },
                {
                    "name": "F6 (RenMov).",
                    "content": "Move the directory.\n"
                },
                {
                    "name": "F7 (Mkdir).",
                    "content": "Make a new directory below this directory.\n"
                },
                {
                    "name": "F8 (Delete).",
                    "content": "Delete this directory from the file system.\n"
                },
                {
                    "name": "C-s, Alt-s.",
                    "content": "Search the next directory matching the search string. If there is  no  such  directory\nthese keys will move one line down.\n"
                },
                {
                    "name": "C-h, Backspace.",
                    "content": "Delete the last character of the search string.\n"
                },
                {
                    "name": "Any other character.",
                    "content": "Add  the  character  to  the search string and move to the next directory which starts\nwith these characters. In the tree view you must first activate  the  search  mode  by\npressing C-s. The search string is shown in the mini status line.\n\nThe  following actions are available only in the directory tree. They aren't supported in the\ntree view.\n"
                },
                {
                    "name": "F1 (Help).",
                    "content": "Invoke the help viewer and show this section.\n"
                },
                {
                    "name": "Esc, F10.",
                    "content": "Exit the directory tree. Do not change the directory.\n\nThe mouse is supported. A double-click behaves like Enter. See also the section on mouse sup‐\nport.\n"
                },
                {
                    "name": "Find File",
                    "content": "The  Find  File feature first asks for the start directory for the search and the filename to\nbe searched for. By pressing the Tree button you can select the start directory from the  di‐\nrectory tree figure.\n\nThe \"File name\" input field contains a filename pattern to be searched for. It is interpreted\nas a shell pattern or as a regular expression depending on the state of the \"Using shell pat‐\nterns\" checkbox. An empty value is valid and matches any file name.\n\nThe  \"Content\" input field contains a string to search for within the files. Leave this field\nempty to disable searching file contents.\n\nOption \"Whole words\" allows select only those files containing matches that form whole words.\nLike grep -w.\n\nYou  can start the search by pressing the OK button.  During the search you can stop from the\nStop button and continue from the Start button.\n\nYou can browse the filelist with the up and down arrow keys. The Chdir button will change  to\nthe  directory  of  the currently selected file. The Again button will ask for the parameters\nfor a new search. The Quit button quits the search operation. The Panelize button will  place\nthe  found  files  to the current directory panel so that you can do additional operations on\nthem (view, copy, move, delete and so on). To return to the normal file listing,  change  di‐\nrectory to \"..\".\n\nThe  'Enable  ignore  directories'  checkbox and input field below it allow one to set up the\nlist of directories that should be skip during the search files (for example, you may want to\navoid  searches  on  a CD-ROM or on a NFS directory that is mounted across a slow link). List\ncomponents must be separated with a colon, here is an example:\n\n/cdrom:/nfs/wuarchive:/afs\n\nRelative paths are supported also. The following example shows how to skip  special  directo‐\nries of version control systems:\n/cdrom:/nfs/wuarchive:/afs:.svn:.git:CVS\n\nAttention: input field can contain a dot (.), this means the current absolute path.\n\nYou  may  consider using the External panelize command for some operations. Find file command\nis for simple queries only, while using External panelize you can do as  mysterious  searches\nas you would like.\n"
                },
                {
                    "name": "External panelize",
                    "content": "The  External panelize allows you to execute an external program, and make the output of that\nprogram the contents of the current panel.\n\nFor example, if you want to manipulate in one of the panels all the  symbolic  links  in  the\ncurrent directory, you can use external panelization to run the following command:\n\nfind . -type l -print\n\nUpon  command completion, the directory contents of the panel will no longer be the directory\nlisting of the current directory, but all the files that are symbolic links.\n\nIf you want to panelize all of the files that have been downloaded from your FTP server,  you\ncan use this awk command to extract the file name from the transfer log files:\n\nawk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog\n\nYou  may  want to save often used panelize commands under a descriptive name, so that you can\nrecall them quickly. You do this by typing the command on the input line and pressing Add new\nbutton.  Then  you  enter a name under which you want the command to be saved. Next time, you\njust choose that command from the list and do not have to type it again.\n"
                },
                {
                    "name": "Hotlist",
                    "content": "The Directory hotlist command shows the labels of the directories in the  directory  hotlist.\nMidnight  Commander  will  change to the directory corresponding to the selected label.  From\nthe hotlist dialog, you can remove already created label/directory pairs and  add  new  ones.\nTo  add  new  directories quickly, you can use the Add to hotlist command (C-x h), which adds\nthe current directory into the directory hotlist, asking just for the label  for  the  direc‐\ntory.\n\nThis makes cd to often used directories faster. You may consider using the CDPATH variable as\ndescribed in internal cd command description.\n"
                },
                {
                    "name": "Edit Extension File",
                    "content": "This will invoke your editor on the file ~/.config/mc/mc.ext.  The format of this  file  fol‐\nlowing:\n\nAll lines starting with # or empty lines are thrown away.\n\nLines starting in the first column should have following format:\n\nkeyword/expr, i.e. everything after the slash until new line is expr.\n\nkeyword can be:\n\nshell  -  expr is an extension (no wildcards).  File matches it its name ends with expr.  Ex‐\nample: shell/.tar matches *.tar.\n\nregex  - expr is a regular expression.  File matches if its name matches the regular  expres‐\nsion.\n\ndirectory\n-  expr  is  a  regular  expression.   File  matches if it is a directory and its name\nmatches the regular expression.\n\ntype   - expr is a regular expression.  File matches if the output of  file  %f  without  the\ninitial \"filename:\" part matches regular expression expr.\n\ndefault\n- matches any file.  expr is ignored.\n\ninclude\n- denotes a common section.  expr is the name of the section.\n\nOther  lines  should  start  with a space or tab and should be of the format: keyword=command\n(with no spaces around =), where keyword should be: Open (invoked on Enter or double  click),\nView  (F3),  Edit  (F4)  or  Include  (to add rules from the common section).  command is any\none-line shell command, with the simple macro substitution.\n\nRules are matched from top to bottom, thus the order is important.  If the appropriate action\nis  missing,  search continues as if this rule didn't match (i.e. if a file matches the first\nand second entry and View action is missing in the first one, then on pressing  F3  the  View\naction from the second entry will be used).  default should match all the actions.\n"
                },
                {
                    "name": "Background Jobs",
                    "content": "This  lets  you control the state of any background Midnight Commander process (only copy and\nmove files operations can be done in the background).  You can stop, restart and kill a back‐\nground job from here.\n"
                },
                {
                    "name": "Edit Menu File",
                    "content": "The user menu is a menu of useful actions that can be customized by the user. When you access\nthe user menu, the file .mc.menu from the current directory is used if it exists, but only if\nit  is  owned  by  user  or  root  and is not world-writable.  If no such file found, ~/.con‐\nfig/mc/menu is tried in the same way, and otherwise mc  uses  the  default  system-wide  menu\n/usr/share/mc/mc.menu.\n\nThe  format  of the menu file is very simple. Lines that start with anything but space or tab\nare considered entries for the menu (in order to be able to use it like a hot key, the  first\ncharacter  should  be  a letter). All the lines that start with a space or a tab are the com‐\nmands that will be executed when the entry is selected.\n\nWhen an option is selected all the command lines of the option are copied to a temporary file\nin the temporary directory (usually /usr/tmp) and then that file is executed. This allows the\nuser to put normal shell constructs in the menus. Also simple macro substitution takes  place\nbefore executing the menu code. For more information, see macro substitution.\n\nHere is a sample mc.menu file:\n\nA    Dump the currently selected file\nod -c %f\n\nB    Edit a bug report and send it to root\nI=`mktemp ${MCTMPDIR:-/tmp}/mail.XXXXXX` || exit 1\nvi $I\nmail -s \"Midnight Commander bug\" root < $I\nrm -f $I\n\nM    Read mail\nemacs -f rmail\n\nN    Read Usenet news\nemacs -f gnus\n\nH    Call the info hypertext browser\ninfo\n\nJ    Copy current directory to other panel recursively\ntar cf - . | (cd %D && tar xvpf -)\n\nK    Make a release of the current subdirectory\necho -n \"Name of distribution file: \"\nread tar\nln -s %d `dirname %d`/$tar\ncd ..\ntar cvhf ${tar}.tar $tar\n\n= f *.tar.gz | f *.tgz & t n\nX       Extract the contents of a compressed tar file\ntar xzvf %f\n"
                },
                {
                    "name": "Default Conditions",
                    "content": "Each  menu entry may be preceded by a condition. The condition must start from the first col‐\numn with a '=' character. If the condition is true, the menu entry will be the default entry.\n\nCondition syntax:   = <sub-cond>\nor:               = <sub-cond> | <sub-cond> ...\nor:               = <sub-cond> & <sub-cond> ...\n\nSub-condition is one of following:\n\ny <pattern>       syntax of current file matching pattern?\n(for edit menu only)\nf <pattern>       current file matching pattern?\nF <pattern>       other file matching pattern?\nd <pattern>       current directory matching pattern?\nD <pattern>       other directory matching pattern?\nt <type>          current file of type?\nT <type>          other file of type?\nx <filename>      is it executable filename?\n! <sub-cond>      negate the result of sub-condition\n\nPattern is a normal shell pattern or a regular expression, according to  the  shell  patterns\noption. You can override the global value of the shell patterns option by writing \"shellpat‐\nterns=x\" on the first line of the menu file (where \"x\" is either 0 or 1).\n\nType is one or more of the following characters:\n\nn  not a directory\nr  regular file\nd  directory\nl  link\nc  character device\nb  block device\nf  FIFO (pipe)\ns  socket\nx  executable file\nt  tagged\n\nFor example 'rlf' means either regular file, link or fifo. The 't' type is a  little  special\nbecause  it  acts on the panel instead of the file. The condition '=t t' is true if there are\ntagged files in the current panel and false if not.\n\nIf the condition starts with '=?' instead of '=' a debug trace will  be  shown  whenever  the\nvalue of the condition is calculated.\n\nThe conditions are calculated from left to right. This means\n= f *.tar.gz | f *.tgz & t n\nis calculated as\n( (f *.tar.gz) | (f *.tgz) ) & (t n)\n\nHere is a sample of the use of conditions:\n\n= f *.tar.gz | f *.tgz & t n\nL    List the contents of a compressed tar-archive\ngzip -cd %f | tar xvf -\n"
                },
                {
                    "name": "Addition Conditions",
                    "content": "If  the condition begins with '+' (or '+?') instead of '=' (or '=?') it is an addition condi‐\ntion. If the condition is true the menu entry will be included in the menu. If the  condition\nis false the menu entry will not be included in the menu.\n\nYou  can  combine default and addition conditions by starting condition with '+=' or '=+' (or\n'+=?' or '=+?' if you want debug trace). If you want to use two different conditions, one for\nadding and another for defaulting, you can precede a menu entry with two condition lines, one\nstarting with '+' and another starting with '='.\n\nComments are started with '#'. The additional comment lines must start  with  '#',  space  or\ntab.\n"
                },
                {
                    "name": "Options Menu",
                    "content": "Midnight  Commander  has some options that may be toggled on and off in several dialogs which\nare accessible from this menu. Options are enabled if they have an asterisk or \"x\"  in  front\nof them.\n\nThe Configuration command pops up a dialog from which you can change most of settings of Mid‐\nnight Commander.\n\nThe Layout command pops up a dialog from which you specify a bunch of options  how  mc  looks\nlike on the screen.\n\nThe  Panel  options  command  pops up a dialog from which you specify options of file manager\npanels.\n\nThe Confirmation command pops up a dialog from which you specify which actions  you  want  to\nconfirm.\n\nThe Appearance command pops up a dialog from which you specify the skin.\n\nThe  Display bits command pops up a dialog from which you may select which characters is your\nterminal able to display.\n\nThe Learn keys command pops up a dialog from which you test some keys which are  not  working\non some terminals and you may fix them.\n\nThe Virtual FS command pops up a dialog from which you specify some VFS related options.\n\nThe  Save  setup  command  saves the current settings of the Left, Right and Options menus. A\nsmall number of other settings is saved, too.\n"
                },
                {
                    "name": "Configuration",
                    "content": "The options in this dialog are divided into several groups: \"File  operation  options\",  \"Esc\nkey mode\", \"Pause after run\" and \"Other options\".\n"
                },
                {
                    "name": "File operation options",
                    "content": "Verbose operation.  This toggles whether the file Copy, Rename and Delete operations are ver‐\nbose (i.e., display a dialog box for each operation). If you have a slow  terminal,  you  may\nwish  to  disable  the verbose operation. It is automatically turned off if the speed of your\nterminal is less than 9600 bps.\n\nCompute totals.  If this option is enabled, Midnight Commander computes total byte sizes  and\ntotal  number of files prior to any Copy, Rename and Delete operations. This will provide you\nwith a more accurate progress bar at the expense of some speed. This option has no effect, if\nVerbose operation is disabled.\n\nClassic  progressbar.   If this option is enabled, the progressbar of Copy/Move/Delete opera‐\ntions is always grown form left to right. If disabled, the growing direction  of  progressbar\nfollows  to  direction  of  Copy/Move/Delete operation: from left panel to right one and vice\nversa. Enabled by default.\n\nMkdir autoname.  When you press F7 to create a new directory, the input line in popup  dialog\nwill be filled by name of current file or directory in active panel.  Disabled by default.\n\nPreallocate  space.  Preallocate space for whole target file, if possible, before copy opera‐\ntion.  Disabled by default.\n"
                },
                {
                    "name": "Esc key mode.",
                    "content": "By default, Midnight Commander treats the Esc key as a key  prefix.   Therefore,  you  should\npress  Esc  code  twice to exit a dialog. But there is a possibility to use a single press of\nEsc key for that action.\n\nSingle press.  By default this option is disabled. If you'll enable it, the Esc key will  act\nas  a  prefix  key  for set up time interval (see Timeout option below), and if no extra keys\nhave arrived, then the Esc key is interpreted as a cancel key (Esc Esc).\n\nTimeout.  This options is used to setup the time interval (in microseconds) for single  press\nof  Esc key. By default, this interval is one second (1000000 microseconds). Also the timeout\ncan be set via KEYBOARDKEYTIMEOUTUS environment variable (also in microseconds), which has\nhigher priority than Timeout option value.\n"
                },
                {
                    "name": "Pause after run",
                    "content": "After executing your commands, Midnight Commander can pause, so that you can examine the out‐\nput of the command.  There are three possible settings for this variable:\n\nNever.  Means that you do not want to see the output of your command.  If you are  using  the\nLinux  or  FreeBSD  console or an xterm, you will be able to see the output of the command by\ntyping C-o.\n\nOn dumb terminals.  You will get the pause message on terminals that are not capable of show‐\ning  the  output of the last command executed (any terminal that is not an xterm or the Linux\nconsole).\n\nAlways.  The program will pause after executing all of your commands.\n"
                },
                {
                    "name": "Other options",
                    "content": "Use internal editor.  If this option is enabled, the built-in file editor  is  used  to  edit\nfiles.  If the option is disabled, the editor specified in the EDITOR environment variable is\nused.  If no editor is specified, vi is used.  See the section on the internal file editor.\n\nUse internal viewer.  If this option is enabled, the built-in file viewer  is  used  to  view\nfiles.  If  the  option is disabled, the pager specified in the PAGER environment variable is\nused.  If no pager is specified, the view command is used.  See the section on  the  internal\nfile viewer.\n\nAsk new file name.  If this option is enabled, file name is asked before open new file in ed‐\nitor.\n\nAuto menus.  If this option is enabled, the user menu will be invoked at startup.  Useful for\nbuilding menus for non-unixers.\n\nDrop  down menus.  When this option is enabled, the pull down menus will be activated as soon\nas you press the F9 key. Otherwise, you will only get the menu title, and you  will  have  to\nactivate  the  menu  either with the arrow keys or with the hotkeys. It is recommended if you\nare using hotkeys.\n\nShell Patterns.  By default the Select, Unselect and Filter commands will use shell-like reg‐\nular  expressions.  The  following  conversions are performed to achieve this: the '*' is re‐\nplaced by '.*' (zero or more characters); the '?'  is replaced by '.' (exactly one character)\nand  '.'  by the literal dot. If the option is disabled, then the regular expressions are the\nones described in ed(1).\n\nComplete: show all.  By default, Midnight Commander pops up all possible completions  if  the\ncompletion is ambiguous only when you press Alt-Tab for the second time.  For the first time,\nit just completes as much as possible and beeps in the case of ambiguity.  Enable this option\nif you want to see all possible completions even after pressing Alt-Tab the first time.\n\nRotating  dash.   If  this option is enabled, the Midnight Commander shows a rotating dash in\nthe upper right corner as a work in progress indicator.\n\nCd follows links.  This option, if set, causes Midnight Commander to follow the logical chain\nof directories when changing current directory either in the panels, or using the cd command.\nThis is the default behavior of bash. When unset, Midnight Commander follows the real  direc‐\ntory structure, so cd .. if you've entered that directory through a link will move you to the\ncurrent directory's real parent and not to the directory where the link was present.\n\nSafe delete.  If this option is enabled, deleting files and directory hotlist  entries  unin‐\ntentionally  becomes  more  difficult.  The default selection in the confirmation dialogs for\ndeletion changes from Yes to No.  This option is disabled by default.\n\nSafe overwrite.  If this option is enabled, overwriting files  unintentionally  becomes  more\ndifficult.   The  default  selection in the overwrite confirmation dialog changes from Yes to\nNo.  This option is disabled by default.\n\nAuto save setup.  If this option is enabled, when you exit Midnight  Commander,  the  config‐\nurable options of Midnight Commander are saved in the ~/.config/mc/ini file.\n"
                },
                {
                    "name": "Layout",
                    "content": "The layout dialog gives you a possibility to change the general layout of screen. The options\nin this dialog are divided into several groups: \"Panel split\", \"Console  output\"  and  \"Other\noptions\".\n"
                },
                {
                    "name": "Panel split",
                    "content": "The rest of the screen area is used for the two directory panels. You can specify whether the\narea is split to the panels in Vertical or Horizontal direction. Panel layout can be  changed\nusing Alt-, (Alt-comma) shortcut.\n\nEqual  split.   By default, panels have equal sizes. Using this option you can specify an un‐\nequal split.\n"
                },
                {
                    "name": "Console output",
                    "content": "On the Linux or FreeBSD console you can specify how many lines are shown in the  output  win‐\ndow. This option is available if Midnight Commander runs on native console only.\n"
                },
                {
                    "name": "Other options",
                    "content": "Menu  bar  visible.  If enabled, main menu of Midnight Commander is always visible on the top\nrow of screen above panels. Enabled by default.\n\nCommand prompt.  If enabled, command line is available. Enabled by default.\n\nKeybar visible.  If enabled, 10 labels associated with F1-F10 keys are located at the  bottom\nrow of screen. Enabled by default.\n\nHintbar  visible.   If  enabled,  the one-line hints are visible below panels. Enabled by de‐\nfault.\n\nXTerm window title.  When run in a terminal emulator for X11,  Midnight  Commander  sets  the\nterminal  window  title  to  the current working directory and updates it when necessary.  If\nyour terminal emulator is broken and you see some incorrect output on startup  and  directory\nchange, turn off this option.  Enabled by default.\n\nShow  free  space.  If enabled, free space and total space of current file system is shown at\nthe bottom frame of panel. Enabled by default.\n"
                },
                {
                    "name": "Panel options",
                    "content": ""
                },
                {
                    "name": "Main panel options",
                    "content": "Show mini-status.  If enabled, one line of status information about  the  currently  selected\nitem is shown at the bottom of the panels. Enabled by default.\n\nUse  SI size units.  If this option is enabled, Midnight Commander will use SI prefixes (base\n10) when displaying any byte sizes. If disabled (default), Midnight Commander  will  use  IEC\nprefixes (base 2).\n\nMix  all  files.   If  this  option is enabled, all files and directories are shown mixed to‐\ngether.  If the option is disabled (default), directories  (and  links  to  directories)  are\nshown at the beginning of the listing, and other files below.\n\nShow backup files.  If enabled, Midnight Commander will show files ending with a tilde.  Oth‐\nerwise, they won't be shown (like GNU's ls option -B). Enabled by default.\n\nShow hidden files.  If enabled, Midnight Commander will show all files that start with a  dot\n(like ls -a). Disabled by default.\n\nFast directory reload.  If this option is enabled, Midnight Commander will use a trick to de‐\ntermine if the directory contents have changed.  The trick is to reload the directory only if\nthe  i-node  of the directory has changed; this means that reloads only happen when files are\ncreated or deleted.  If what changes is the i-node for a file in  the  directory  (file  size\nchanges, mode or owner changes, etc) the display is not updated.  In these cases, if you have\nthe option on, you have to rescan the directory manually (with C-r). Disabled by default.\n\nMark moves down.  If enabled, the selection bar will move down when you mark a file (with In‐\nsert key). Enabled by default.\n\nReverse  files  only.  Allow revert selection of files only. Enabled by default.  If enabled,\nthe reverse selection is applied to files only, not to directories.  The selection of  direc‐\ntories  is  untouched.  If off, the reverse selection is applied to files as well to directo‐\nries: all unselected items become selected, and vice versa.\n\nSimple swap.  If both panels contain file listing, simple swap means that panels exchange its\nscreen  positions:  left panel become right one, and vice versa. If this option is unchecked,\nfile listing panels exchange its content keeping listing format and sort  options.  Unchecked\nby default.\n\nAuto  save  panels  setup.   If this option is enabled, when you exit Midnight Commander, the\ncurrent settings of panels are saved in the ~/.config/mc/panels.ini file.   Disabled  by  de‐\nfault.\n"
                },
                {
                    "name": "Navigation",
                    "content": "Lynx-like  motion.   If  this option is enabled, you may use the arrows keys to automatically\nchdir if the current selection is a subdirectory and the shell command line is empty. By  de‐\nfault, this setting is off.\n\nPage  scrolling.  If set (the default), panel will scroll by half the display when the cursor\nreaches the end or the beginning of the panel, otherwise it will just  scroll  a  file  at  a\ntime.\n\nCenter  scrolling.  If set, panel will scroll when the cursor reaches the middle of the panel\ncolumn, only hitting the top or bottom of the panel when actually on the first or last  file.\nThis  behavior  applies  when  scrolling  one  file at a time, and does not apply to the page\nup/down keys.\n\nMouse page scrolling.  Controls whenever scrolling with the mouse wheel is done by  pages  or\nline by line on the panels.\n"
                },
                {
                    "name": "File highlight",
                    "content": "You  can  specify  whether  permissions and file types should be highlighted with distinctive\nColors.  If the permission highlighting is enabled, the parts of the perm  and  mode  display\nfields  which apply to the user running Midnight Commander are highlighted with the color de‐\nfined by the selected keyword.  If the file type highlighting is enabled, file names are col‐\nored  according to rules described in /etc/mc/filehighlight.ini file. See Filenames Highlight\nfor more info.\n"
                },
                {
                    "name": "Quick search",
                    "content": "You can specify how the Quick search mode should work: case insensitively,  case  sensitively\nor be matched to the panel sort order: case sensitive or not.\n"
                },
                {
                    "name": "Confirmation",
                    "content": "In  this  dialog you configure the confirmation options for file deletion, overwriting files,\nexecution by pressing enter, quitting the program, directory  hotlist  entries  deletion  and\nhistory cleanup.\n"
                },
                {
                    "name": "Appearance",
                    "content": "In this dialog you can select the skin to be used and enable shadow for dialogs and drop down\nmenus.\n\nSee the Skins section for technical details about the skin definition files.\n\nShadows.  If this option is enabled, all dialogs and drop down menus will have a shadow.\n"
                },
                {
                    "name": "Display bits",
                    "content": "This is used to configure the range of visible characters on the screen.  This setting may be\n7-bits  if  your terminal/curses supports only seven output bits, ISO-8859-1 displays all the\ncharacters in the ISO-8859-1 map and full 8 bits is for those terminals that can display full\n8 bit characters.\n"
                },
                {
                    "name": "Learn keys",
                    "content": "This  dialog  allows  you  to test and redefine functional keys, cursor arrows and some other\nkeys to make them work properly on your terminal.  They  often  don't,  since  many  terminal\ndatabases are incomplete or broken.\n\nYou  can move around with the Tab key and with the vi moving keys ('h' left, 'j' down, 'k' up\nand 'l' right).  Once you press any cursor movement key and it is  recognized,  you  can  use\nthat key as well.\n\nYou  can  test keys just by pressing each of them.  When you press a key and it is recognized\nproperly, OK should appear next to the name of that key.  Once a key is marked OK  it  starts\nworking as usually, e.g. F1 pressed the first time will just check that the F1 key works, but\nafter that it will show help.  The same applies to the arrow keys.  The  Tab  key  should  be\nworking always.\n\nIf  some  keys do not work properly then you won't see OK appear after pressing one of these.\nThen you may want to redefine it.  Do it by pressing the button with the  name  of  that  key\n(either  by  the  mouse  or by Enter or Space after selecting the button with Tab or arrows).\nThen a message box will appear asking you to press that key.  Do it and wait until  the  mes‐\nsage box disappears.  If you want to abort, just press Escape once and wait.\n\nWhen  you finish with all the keys, you can Save them.  The definitions for the keys you have\nredefined will be written into the [terminal:TERM]  section  of  your  ~/.config/mc/ini  file\n(where TERM is the name of your current terminal).  The definitions of the keys that were al‐\nready working properly are not saved.\n"
                },
                {
                    "name": "Virtual FS",
                    "content": "This option gives you control over the settings of the Virtual File System.\n\nMidnight Commander keeps in memory the information related to some of the virtual  file  sys‐\ntems  to speed up the access to the files in the file system (for example, directory listings\nfetched from FTP servers).\n\nAlso, in order to access the contents  of  compressed  files  (for  example,  compressed  tar\nfiles), Midnight Commander needs to create temporary uncompressed files on your disk.\n\nSince  both  the information in memory and the temporary files on disk take up resources, you\nmay want to tune the parameters of the cached information to decrease your resource usage  or\nto maximize the speed of access to frequently used file systems.\n\nBecause  of  the  format of the tar archives, the Tar filesystem needs to read the whole file\njust to load the file entries.  Since most tar files are usually kept compressed  (plain  tar\nfiles  are species in extinction), the tar file system has to uncompress the file on the disk\nin a temporary location and then access the uncompressed file as a regular tar file.\n\nNow, since we all love to browse files and tar files all over the disk, it's common that  you\nwill leave a tar file and then re-enter it later.  Since decompression is slow, Midnight Com‐\nmander will cache the information in memory for a limited time.  When  the  timeout  expires,\nall  the  resources associated with the file system are released.  The default timeout is set\nto one minute.\n\nThe FTP File System (ftpfs) allows you to browse directories on remote FTP servers.   It  has\nseveral options.\n\nftp  anonymous  password  is the password used when you login as \"anonymous\".  Some sites re‐\nquire a valid e-mail address.  On the other hand, you probably don't want to give  your  real\ne-mail address to untrusted sites, especially if you are not using spam filtering.\n\nftpfs  keeps the directory listing it fetches from a FTP server in a cache.  The cache expire\ntime is configurable with the ftpfs directory cache timeout option.  A low value for this op‐\ntion may slow down every operation on the ftpfs because every operation would require sending\na request to the FTP server.\n\nYou can define an FTP proxy host for doing FTP.  Note that most modern  firewalls  are  fully\ntransparent at least for passive FTP (see below), so FTP proxies are considered obsolete.\n\nIf Always use ftp proxy is not set, you can use the exclamation sign to enable proxy for cer‐\ntain hosts.  See FTP File System for examples.\n\nIf this option is set, the program will do two things:  consult  the  /usr/lib/mc/mc.noproxy\nfile  for  lines containing host names that are local (if the host name starts with a dot, it\nis assumed to be a domain) and to assume that any hostnames without dots in their  names  are\ndirectly accessible.  All other hosts will be accessed through the specified FTP proxy.\n\nYou  can  enable  using ~/.netrc file, which keeps login names and passwords for ftp servers.\nSee netrc (5) for the description of the .netrc format.\n\nUse passive mode enables using FTP passive mode, when the connection  for  data  transfer  is\ninitiated  by  the  client, not by the server.  This option is recommended and enabled by de‐\nfault.  If this option is turned off, the data connection is initiated by the  server.   This\nmay not work with some firewalls.\n"
                },
                {
                    "name": "Save Setup",
                    "content": "At  startup,  Midnight  Commander  tries  to load initialization information from the ~/.con‐\nfig/mc/ini file.  If this file doesn't exist, the system-wide file /etc/mc/mc.ini is used. If\nthis  file  doesn't  exist,  the  system-wide file /usr/share/mc/mc.ini is used. If this file\ndoesn't exist, MC uses the default settings.\n\nThe Save Setup command creates the ~/.config/mc/ini file by saving the  current  settings  of\nthe Left, Right and Options menus.\n\nIf you activate the auto save setup option, MC will always save the current settings when ex‐\niting.\n\nThere also exist settings which can't be changed from the menus. To change these settings you\nhave  to  edit  the setup file with your favorite editor. See the section on Special Settings\nfor more information.\n\n"
                },
                {
                    "name": "Executing operating system commands",
                    "content": "You may execute commands by typing them directly in Midnight Commander's input  line,  or  by\nselecting  the  program  you  want to execute with the selection bar in one of the panels and\nhitting Enter.\n\nIf you press Enter over a file that is not executable, Midnight Commander checks  the  exten‐\nsion of the selected file against the extensions in the Extensions File.  If a match is found\nthen the code associated with that extension is executed. A very simple macro expansion takes\nplace before executing the command.\n"
                },
                {
                    "name": "The cd internal command",
                    "content": "The  cd  command  is interpreted by Midnight Commander, it is not passed to the command shell\nfor execution.  Thus it may not handle all of the nice macro expansion and substitution  that\nyour shell does, although it does some of them:\n\nTilde  substitution.   The  (~) will be substituted with your home directory, if you append a\nusername after the tilde, then it will be substituted with the login directory of the  speci‐\nfied user.\n\nFor  example, ~guest is the home directory for the user guest, while ~/guest is the directory\nguest in your home directory.\n\nPrevious directory.  You can jump to the directory you were previously by using  the  special\ndirectory name '-' like this: cd -\n\nCDPATH  directories.   If the directory specified to the cd command is not in the current di‐\nrectory, then Midnight Commander uses the value in the environment variable CDPATH to  search\nfor the directory in any of the named directories.\n\nFor example you could set your CDPATH variable to ~/src:/usr/src, allowing you to change your\ndirectory to any of the directories inside the ~/src and /usr/src directories, from any place\nin  the  file  system  by  using  its  relative  name (for example cd linux could take you to\n/usr/src/linux).\n"
                },
                {
                    "name": "Macro Substitution",
                    "content": "When accessing a user menu, or executing an extension dependent command, or running a command\nfrom the command line input, a simple macro substitution takes place.\n\nThe macros are:\n\n%i     The indent of blank space, equal the cursor column position.  For edit menu only.\n\n%y     The syntax type of current file. For edit menu only.\n\n%k     The block file name.\n\n%e     The error file name.\n\n%m     The current menu name.\n\n%f and %p\nIn  file  manager  user menu: the current file name in selected panel.  In mcedit user\nmenu: the name of opened file.\n\n%x     The extension of current file name.\n\n%b     The current file name without extension.\n\n%d     The current directory name.\n\n%F     The current file in the unselected panel.\n\n%D     The directory name of the unselected panel.\n\n%t     The currently tagged files.\n\n%T     The tagged files in the unselected panel.\n\n%u and %U\nSimilar to the %t and %T macros, but in addition the files are untagged.  You can  use\nthis  macro  only  once per menu file entry or extension file entry, because next time\nthere will be no tagged files.\n\n%s and %S\nThe selected files: The tagged files if there are any. Otherwise the current file.\n\n%cd    This is a special macro that is used to change the current directory to the  directory\nspecified  in front of it.  This is used primarily as an interface to the Virtual File\nSystem.\n\n%view  This macro is used to invoke the internal viewer.  This macro can be  used  alone,  or\nwith  arguments.   If you pass any arguments to this macro, they should be enclosed in\nbrackets.\n\nThe arguments are: ascii to force the viewer into ascii mode; hex to force the  viewer\ninto  hex  mode; nroff to tell the viewer that it should interpret the bold and under‐\nline sequences of nroff; unformatted to tell the viewer to not  interpret  nroff  com‐\nmands for making the text bold or underlined.\n\n%%     The % character\n\n%{some text}\nPrompt  for  the substitution. An input box is shown and the text inside the braces is\nused as a prompt. The macro is substituted by the text typed by the user. The user can\npress Esc or F10 to cancel. This macro doesn't work on the command line yet.\n\n%var{ENV:default}\nIf  environment  variable  ENV  is  unset, the default is substituted.  Otherwise, the\nvalue of ENV is substituted.\n"
                },
                {
                    "name": "The subshell support",
                    "content": "The subshell support is a compile time option, that works with the shells: bash, ash (BusyBox\nand Debian), tcsh, zsh and fish.\n\nWhen  the subshell support is active, Midnight Commander will spawn a concurrent copy of your\nshell (the one defined in the SHELL variable and if it is not defined, then the  one  in  the\n/etc/passwd  file) and run it in a pseudo terminal, instead of invoking a new shell each time\nyou execute a command, the command will be passed to the subshell as if  you  had  typed  it.\nThis  also  allows  you  to  change the environment variables, use shell functions and define\naliases that are valid until you quit Midnight Commander.\n\nbash users may specify startup commands in ~/.local/share/mc/bashrc (fallback ~/.bashrc)  and\nspecial keyboard maps in ~/.local/share/mc/inputrc (fallback ~/.inputrc).\n\nash/dash  users  (BusyBox  or Debian) may specify startup commands in ~/.local/share/mc/ashrc\n(fallback ~/.profile).\n\nzsh users may specify startup commands in ~/.local/share/mc/.zshrc (fallback ~/.zshrc).\n\ntcsh, fish users cannot specify mc-specific startup commands at present. They have to rely on\nshell-specific startup files.\n\nThe following paragraphs are relevant only when the subshell support is active:\n\nYou can suspend applications at any time with the sequence C-o and jump back to Midnight Com‐\nmander, if you interrupt an application, you will not be able to run other external  commands\nuntil you quit the application you interrupted.\n\nThe  basic  prompt displayed by Midnight Commander is of the form \"user@host:currentpath$ \".\nWhen using a capable shell, like Bash, the prompt displayed by Midnight Commander will be the\nsame prompt that you are currently using in your shell.\n\n(There's  a  known  problem when using fish: the prompt is displayed only in full screen mode\n(Ctrl-o), not when the panels are visible.)\n\nThe OPTIONS section has more information on how you can control subshell usage (-U/-u).  Fur‐\nthermore,  to  set  a  specific  subshell different from your current SHELL variable or login\nshell defined in /etc/passwd, you may call MC like this: SHELL=/bin/myshell mc\n"
                }
            ]
        },
        "Chmod": {
            "content": "The Chmod window is used to change the attribute bits in a group of  files  and  directories.\nIt can be invoked with the C-x c key combination.\n\nThe Chmod window has two parts - Permissions and File.\n\nIn  the  File  section are displayed the name of the file or directory and its permissions in\noctal form, as well as its owner and group.\n\nIn the Permissions section there is a set of check buttons which correspond to the  file  at‐\ntribute  bits.   As  you change the attribute bits, you can see the octal value change in the\nFile section.\n\nTo move between the widgets (buttons and check buttons) use the arrow keys or  the  Tab  key.\nTo  change  the state of the check buttons or to select a button use Space.  You can also use\nthe hotkeys on the buttons to quickly activate them.  Hotkeys are shown as  highlighted  let‐\nters on the buttons.\n\nTo set the attribute bits, use the Enter key.\n\nWhen working with a group of files or directories, you just click on the bits you want to set\nor clear.  Once you have selected the bits you want to change, you select one of  the  action\nbuttons (Set marked or Clear marked).\n\nFinally,  to set the attributes exactly to those specified, you can use the [Set all] button,\nwhich will act on all the tagged files.\n\n[Marked all] set only marked attributes to all selected files\n\n[Set marked] set marked bits in attributes of all selected files\n\n[Clean marked] clear marked bits in attributes of all selected files\n\n[Set] set the attributes of one file\n\n[Cancel] cancel the Chmod command\n",
            "subsections": []
        },
        "Chown": {
            "content": "The Chown command is used to change the owner/group of a file. The hot key for  this  command\nis C-x o.\n",
            "subsections": [
                {
                    "name": "Advanced Chown",
                    "content": "The  Advanced  Chown command is the Chmod and Chown command combined into one window. You can\nchange the permissions and owner/group of files at once.\n"
                }
            ]
        },
        "Chattr": {
            "content": "The Chattr window is used to change the attributes of a group of files and directories  on  a\nLinux file system. It can be invoked with the C-x e key combination.\n\nNot all attributes are supported or utilized by all filesystems.  List of available attribute\nflags is represented as a set of check buttons which correspond to the attribute  flags  (see\nchattr(1)  for  details).  As  you change the attribute flags, you can see the symbolic value\nchange below file name.\n\nTo move between the widgets (buttons and check buttons) use the arrow keys or the Tab key. To\nchange the state of the check buttons or to select a button use Space.\n\nTo set the attributes, use the Enter key.\n\nWhen  working  with  a group of files or directories, you just click on the flags you want to\nset or clear. Once you have selected the flags you want to change, you select one of the  ac‐\ntion buttons (Set marked or Clear marked).\n\nFinally,  to set the attributes exactly to those specified, you can use the [Set all] button,\nwhich will act on all the tagged files.\n\n[Marked all] set only marked attributes to all selected files.\n\n[Set marked] set marked flags in attributes of all selected files.\n\n[Clean marked] clear marked flags in attributes of all selected files.\n\n[Set] set the attributes of one file.\n\n[Cancel] cancel the Chattr command.\n",
            "subsections": [
                {
                    "name": "File Operations",
                    "content": "When you copy, move or delete files, Midnight Commander shows the file operations dialog.  It\nshows  the  files currently being processed and uses up to three progress bars.  The file bar\nindicates the percentage of the current file that has been processed so far.  The  count  bar\nshows how many of the tagged files have been handled.  The bytes bar indicates the percentage\nof the total size of the tagged files that has been handled.  If the verbose option  is  off,\nthe file and bytes bars are not shown.\n\nThere  are  two  buttons  at the bottom of the dialog. Pressing the Skip button will skip the\nrest of the current file. Pressing the Abort button will abort the whole operation, the  rest\nof the files are skipped.\n\nThere are three other dialogs which you can run into during the file operations.\n\nThe  error  dialog informs about error conditions and has three choices.  Normally you select\neither the Skip button to skip the file or the Abort button  to  abort  the  operation  alto‐\ngether.  You can also select the Retry button if you fixed the problem from another terminal.\n\nThe replace dialog is shown when you attempt to copy or move a file on the top of an existing\nfile.  The dialog shows the dates and sizes of the both files.  Press the Yes button to over‐\nwrite  the  file,  the No button to skip the file, the All button to overwrite all the files,\nthe None button to never overwrite and the Update button to overwrite if the source  file  is\nnewer than the target file.  You can abort the whole operation by pressing the Abort button.\n\nThe  recursive  delete dialog is shown when you try to delete a directory which is not empty.\nPress the Yes button to delete the directory recursively, the No button to  skip  the  direc‐\ntory,  the  All  button  to  delete  all  the directories and the None button to skip all the\nnon-empty directories.  You can abort the whole operation by pressing the Abort  button.   If\nyou  selected the Yes or All button you will be asked for a confirmation.  Type \"yes\" only if\nyou are really sure you want to do the recursive delete.\n\nIf you have tagged files and perform an operation on them only the files on which the  opera‐\ntion succeeded are untagged. Failed and skipped files are left tagged.\n"
                },
                {
                    "name": "Mask Copy/Rename",
                    "content": "The  copy/move operations let you translate the names of files in an easy way.  To do it, you\nhave to specify the correct source mask and usually in the trailing part of  the  destination\nspecify  some wildcards.  All the files matching the source mask are copied/renamed according\nto the target mask.  If there are tagged files, only the tagged  files  matching  the  source\nmask are renamed.\n\nThere are other options which you can set:\n"
                },
                {
                    "name": "Follow links",
                    "content": "determines  whether  make  the symlinks and hardlinks in the source directory (recursively in\nsubdirectories) new links in the target directory or whether would you  like  to  copy  their\ncontent.\n"
                },
                {
                    "name": "Dive into subdirs",
                    "content": "determines  the  behavior when the source directory is about to be copied, but the target di‐\nrectory already exists.  The default action is to copy the contents of the  source  directory\ninto  the  target directory.  Enabling this option causes copying the source directory itself\ninto the target directory.\n\nFor example, you want to copy directory /foo containing file bar to /bla/foo, which is an al‐\nready  existing  directory.  Normally (when Dive into subdirs is not set), mc would copy file\n/foo/bar into the file /bla/foo/bar.  By enabling this option the /bla/foo/foo directory will\nbe created, and /foo/bar will be copied into /bla/foo/foo/bar.\n"
                },
                {
                    "name": "Preserve attributes",
                    "content": "determines  whether  to preserve the permissions, timestamps and (if you are root) the owner‐\nship of the original files.  If this option is not set, the current value of the  umask  will\nbe respected.\n"
                },
                {
                    "name": "Use shell patterns",
                    "content": "When  this  option  is on you can use the '*' and '?' wildcards in the source mask. They work\nlike they do in the shell. In the target mask only the '*' and '\\<digit>' wildcards  are  al‐\nlowed.  The  first '*' wildcard in the target mask corresponds to the first wildcard group in\nthe source mask, the second '*' corresponds to the second group and so on.  The '\\1' wildcard\ncorresponds  to the first wildcard group in the source mask, the '\\2' wildcard corresponds to\nthe second group and so on all the way up to '\\9'.  The '\\0' wildcard is the  whole  filename\nof the source file.\n\nTwo examples:\n\nIf  the  source mask is \"*.tar.gz\", the destination is \"/bla/*.tgz\" and the file to be copied\nis \"foo.tar.gz\", the copy will be \"foo.tgz\" in \"/bla\".\n\nSuppose you want to swap basename and extension so that \"file.c\" would become \"c.file\" and so\non.  The source mask for this is \"*.*\" and the destination is \"\\2.\\1\".\n"
                },
                {
                    "name": "Use shell patterns off",
                    "content": "When  the shell patterns option is off the MC doesn't do automatic grouping anymore. You must\nuse '\\(...\\)' expressions in the source mask to specify meaning for the wildcards in the tar‐\nget  mask.  This  is  more flexible but also requires more typing. Otherwise target masks are\nsimilar to the situation when the shell patterns option is on.\n\nTwo examples:\n\nIf the source mask is \"^\\(.*\\)\\.tar\\.gz$\", the destination is \"/bla/*.tgz\" and the file to be\ncopied is \"foo.tar.gz\", the copy will be \"/bla/foo.tgz\".\n\nLet's  suppose  you want to swap basename and extension so that \"file.c\" will become \"c.file\"\nand so on. The source mask for this is \"^\\(.*\\)\\.\\(.*\\)$\" and the destination is \"\\2.\\1\".\n"
                },
                {
                    "name": "Case Conversions",
                    "content": "You can also change the case of the filenames.  If you use '\\u' or '\\l' in the  target  mask,\nthe next character will be converted to uppercase or lowercase correspondingly.\n\nIf  you  use '\\U' or '\\L' in the target mask, the next characters will be converted to upper‐\ncase or lowercase correspondingly up to the next '\\E' or next '\\U', '\\L' or the  end  of  the\nfile name.\n\nThe '\\u' and '\\l' are stronger than '\\U' and '\\L'.\n\nFor  example,  if  the  source mask is '*' ( Use shell patterns on) or '^\\(.*\\)$' ( Use shell\npatterns off) and the target mask is '\\L\\u*' the file names will be converted to have initial\nupper case and otherwise lower case.\n\nYou  can  also  use '\\' as a quote character. For example, '\\\\' is a backslash and '\\*' is an\nasterisk.\n"
                },
                {
                    "name": "Stable symlinks",
                    "content": "commands Midnight Commander, that it should change symlinks in the target,  so  that  they'll\npoint  to the same location as it did before. With absolute symbolic links this does nothing,\nbut if you have a relative one, it will recompute its value, adding necessary ../  and  other\ndirectory parts and making the value as short as possible (most modern filesystems keep short\nsymlinks inside inodes and thus don't waste much disk space).\n\n"
                },
                {
                    "name": "Select/Unselect Files",
                    "content": "The dialog of group of files and directories selection or uselection.  The input  line  allow\nenter the regular expression of filenames that will be selected/unselected.\n\nWhen  Files only checkbox is on, only files will be selected.  If Files only is off, as files\nas directories will be selected.  When Shell Patterns checkbox is on, the regular  expression\nis much like the filename globbing in the shell (* standing for zero or more characters and ?\nstanding for one character). If Shell Patterns is off, then the tagging of files is done with\nnormal  regular  expressions  (see ed (1)). When Case sensitive checkbox is on, the selection\nwill be case sensitive characters.  If Case sensitive is off, the case will be ignored.\n"
                },
                {
                    "name": "Internal Diff Viewer",
                    "content": "The mcdiff is a visual diff tool. You can compare two files and edit them in-place (diffs are\nupdated  dynamically).  You  can  browse and view a working copy from popular version control\nsystems (GIT, Subversion, etc).\n\nFollowing shortcuts are available in internal diff viewer of Midnight Commander.\n\nF1     Invoke the built-in hypertext help viewer.\n\nF2     Save modified files.\n\nF4     Edit file of the left panel in the internal editor.\n\nF14    Edit file of the right panel in the internal editor.\n\nF5     Merge the current hunk. Only the current hunk will be merged.\n\nF7     Start search.\n\nF17    Continue search.\n"
                },
                {
                    "name": "F10, Esc, q",
                    "content": "Exit from diff viewer.\n"
                },
                {
                    "name": "Alt-s, s",
                    "content": "Toggle show of hunk status.\n"
                },
                {
                    "name": "Alt-n, l",
                    "content": "Toggle show of line numbers.\n\nf      Maximize left panel.\n\n=      Make panels equal in width.\n\n>      Reduce the size of the right panel.\n\n<      Reduce the size of the left panel.\n\nc      Toggle show of trailing carriage return (CR) symbol as ^M.\n"
                },
                {
                    "name": "2, 3, 4, 8",
                    "content": "Set tabulation size\n\nC-u    Swap contents of diff panels.\n\nC-r    Refresh the screen.\n\nC-o    Switch to the subshell and show the command screen.\n"
                },
                {
                    "name": "Enter, Space, n",
                    "content": "Find next diff hunk.\n"
                },
                {
                    "name": "Backspace, p",
                    "content": "Find previous diff hunk.\n\ng      Go to line.\n\nDown   Scroll one line forward.\n\nUp     Scroll one line backward.\n\nPageUp Move one page up.\n"
                },
                {
                    "name": "PageDown",
                    "content": "Mves one page down.\n"
                },
                {
                    "name": "Home, A1",
                    "content": "Moves to the line beginning.\n\nEnd    Moves to the line end.\n\nC-Home Move to the file beginning.\n"
                },
                {
                    "name": "C-End, C1",
                    "content": "Move to the file end.\n"
                },
                {
                    "name": "Internal File Viewer",
                    "content": "The internal file viewer provides two display modes: ASCII and hex.  To toggle between modes,\nuse the F4 key.\n\nThe  viewer  will try to use the best method provided by your system or the file type to dis‐\nplay the information.  Some character sequences, which appear most often in preformatted man‐\nual pages, are displayed bold and underlined, thus making a pretty display of your files.\n\nWhen  in  hex mode, the search function accepts text in quotes and constant numbers.  Text in\nquotes is matched exactly after removing the quotes.  Each number matches one byte.  You  can\nmix quoted text with constants like this:\n\n\"String\" 34 0xBB 012 \"more text\"\n\nNumbers are always interpreted in hex. In the example above, \"34\" is interpreted as 0x34. The\nprefix \"0x\" isn't really needed: we could type \"BB\" instead of \"0xBB\". And  \"012\"  is  inter‐\npreted as 0x12, not as an octal number.\n\nHere is a listing of the actions associated with each key that the Midnight Commander handles\nin the internal file viewer.\n\nF1     Invoke the built-in hypertext help viewer.\n\nF2     Toggle the wrap mode.\n\nF4     Toggle the hex mode.\n\nF5     Goto. You can specify a line number, offset or percentage of  file  size  of  position\nthat you want to view.\n"
                },
                {
                    "name": "F7, /, ?",
                    "content": "Start  search.  These keys call the dialog window that allows you to set up the search\noptions. If key is ? the \"Backwards\" option is on.\n\nC-s    Continue forward search.\n\nC-r    Continue reverse search.\n\nF17, n Continue search in the chosen direction.\n\nN      Temporary change the search direction: backwards if forward search is chosen, and vice\nversa.\n\nF8     Toggle  Raw/Parsed  mode:  This will show the file as found on disk or if a processing\nfilter has been specified in the mc.ext file, then the output from the filter. Current\nmode  is always the other than written on the button label, since on the button is the\nmode which you enter by that key.\n\nF9     Toggle the format/unformat mode: when format mode is on the viewer will interpret some\nstring sequences to show bold and underline with different colors. Also, on button la‐\nbel is the other mode than current.\n"
                },
                {
                    "name": "F10, Esc.",
                    "content": "Exit the internal file viewer.\n"
                },
                {
                    "name": "PageDown, space, C-v.",
                    "content": "Scroll one page forward.\n"
                },
                {
                    "name": "PageUp, Alt-v, C-b, Backspace.",
                    "content": "Scroll one page backward.\n\nDown   Scroll one line forward.\n\nUp     Scroll one line backward.\n\nC-l    Refresh the screen.\n\nC-o    Switch to the subshell and show the command screen.\n\n[n] m  Set the mark n.\n\n[n] r  Jump to the mark n.\n\nC-f    Jump to the next file.\n\nC-b    Jump to the previous file.\n\nAlt-r  Toggle the ruler.\n\nAlt-e  to change charset of displayed text may use Alt-e (M-e).  Recoding is  made  from  se‐\nlected  codepage  into  system  codepage.  To  cancel the recoding you may select \"<No\ntranslation>\" in charset selection dialog.\n\nIt's possible to instruct the file viewer how to display a file, look at the  Edit  Extension\nFile section\n\n"
                },
                {
                    "name": "Internal File Editor",
                    "content": "The  internal  file editor is a full-featured full screen editor.  It can edit files up to 64\nmegabytes.  It is possible to edit binary files.  The internal file editor is  invoked  using\nF4 if the useinternaledit option is set in the initialization file.\n\nThe  features  it  presently  supports are: block copy, move, delete, cut, paste; key for key\nundo; pull-down menus; file insertion; macro commands; regular expression search and replace;\nS-arrow text highlighting (if supported by the terminal); insert-overwrite toggle; word wrap;\nautoindent; tunable tab size; syntax highlighting for various file types; and  an  option  to\npipe text blocks through shell commands like indent and ispell.\n\nSections:\n\nOptions of editor in ini-file\n\nThe  editor is very easy to use and requires no tutoring. To see what keys do what, just con‐\nsult the appropriate pull-down menu. Other keys are: Shift movement keys do  text  highlight‐\ning.   C-Ins copies to the file mcedit.clip and S-Ins pastes from mcedit.clip.  S-Del cuts to\nmcedit.clip, and C-Del deletes highlighted text. Mouse highlighting also works, and  you  can\noverride  the  mouse  as  usual by holding down the shift key while dragging the mouse to let\nnormal terminal mouse highlighting work.\n\nTo define a macro, press C-R and then type out the key strokes you want to be executed. Press\nC-R  again  when finished. You can then assign the macro to any key you like by pressing that\nkey. The macro is executed when you press C-A and then the assigned key. The  macro  is  also\nexecuted  if  you press Meta, Ctrl, or Esc and the assigned key, provided that the key is not\nused for any other function. Once defined,  the  macro  commands  go  into  the  file  ~/.lo‐‐\ncal/share/mc/mcedit/mcedit.macros  You can delete a macro by deleting the appropriate line in\nthis file.\n\nTo change charset of displayed text may use Alt-e (M-e).   Recoding  is  made  from  selected\ncodepage  into  system  codepage. To cancel the recoding you may select \"<No translation>\" in\ncharset selection dialog.\n\nF19 will format the currently highlighted block (plain text or C or  C++  code  or  another).\nThis  is  controlled  by  the  file  /usr/share/mc/edit.indent.rc  which  is copied to ~/.lo‐‐\ncal/share/mc/mcedit/edit.indent.rc in your home directory the first time you use it.\n\nThe editor also displays non-us characters (160+). When editing binary files, you should  set\ndisplay bits to 7 bits in the options menu to keep the spacing clean.\n\n"
                },
                {
                    "name": "Options of editor in ini-file",
                    "content": "Some  editor  options of ini-file are described in this section.  Options are placed in [Mid‐\nnight-Commander] section\n\neditorwordcompletioncollectentirefile\nSearch autocomplete candidates in entire of file or just from begin of file to  cursor\nposition (0)\n\n"
                },
                {
                    "name": "Screen selector",
                    "content": "Midnight  Commander  supports  running many internal modules (such as editor, viewer and diff\nviewer) simultaneously and switching between them without closing open files.  Using  several\nfile managers at a time, however, is not currently supported.\n\nLet's  call  each  of these modules a screen. There are three ways to switch between screens,\nusing one of these global shortcuts:\n\nAlt-}  switch to the next screen;\n\nAlt-{  switch to the previous screen;\n\nAlt-`  open a dialog window with the list of currently open screens (or use the \"Screen list\"\nmenu item).\n"
                }
            ]
        },
        "Completion": {
            "content": "Let Midnight Commander type for you.\n\nAttempt  to  perform  completion on the text before current position.  MC attempts completion\ntreating the text as variable (if the text begins with $), username (if the text begins  with\n~),  hostname  (if  the text begins with @) or command (if you are on the command line in the\nposition where you might type a command, possible completions  then  include  shell  reserved\nwords  and shell built-in commands as well) in turn.  If none of these matches, filename com‐\npletion is attempted.\n\nFilename, username, variable and hostname completion works on all input lines,  command  com‐\npletion  is  command line specific.  If the completion is ambiguous (there are more different\npossibilities), MC beeps and the following action depends on the  setting  of  the  Complete:\nshow  all  option in the Configuration dialog.  If it is enabled, a list of all possibilities\npops up next to the current position and you can select with the arrow  keys  and  Enter  the\ncorrect entry.  You can also type the first letters in which the possibilities differ to move\nto a subset of all possibilities and complete as much as  possible.   If  you  press  Alt-Tab\nagain,  only  the subset will be shown in the listbox, otherwise the first item which matches\nall the previous characters will be highlighted.  As soon as there is  no  ambiguity,  dialog\ndisappears,  but you can hide it by canceling keys Esc, F10 and left and right arrow keys. If\nComplete: show all is disabled, the dialog pops up only if you press Alt-Tab for  the  second\ntime, for the first time MC just beeps.\n\nApply  escaping  of ?, *, and & symbols (as \\?, \\*, and \\&) in filenames to disallow use them\nas metasymbols in regular expressions when substitution is performed in the input line.\n\n",
            "subsections": [
                {
                    "name": "Virtual File System",
                    "content": "Midnight Commander is provided with a code layer to access the file system; this  code  layer\nis  known  as the virtual file system switch.  The virtual file system switch allows Midnight\nCommander to manipulate files not located on the Unix file system.\n\nCurrently, Midnight Commander is packaged with some Virtual File  Systems  (VFS):  the  local\nfile  system,  used for accessing the regular Unix file system; the ftpfs, used to manipulate\nfiles on remote systems with the FTP protocol; the tarfs, used to  manipulate  tar  and  com‐\npressed  tar  files; the undelfs, used to recover deleted files on ext2 file systems (the de‐\nfault file system for Linux systems), fish (for manipulating  files  over  shell  connections\nsuch as rsh and ssh).  If the code was compiled with sftpfs (for manipulating files over SFTP\nconnections).  If the code was compiled with smbfs support, you can manipulate files  on  re‐\nmote systems with the SMB (CIFS) protocol.\n\nA  generic extfs (EXTernal virtual File System) is provided in order to easily expand VFS ca‐\npabilities using scripts and external software.\n\nThe VFS switch code will interpret all of the path names used and will forward  them  to  the\ncorrect  file system, the formats used for each one of the file systems is described later in\ntheir own section.\n"
                },
                {
                    "name": "FTP File System",
                    "content": "The FTP File System (ftpfs) allows you to manipulate files on remote machines.   To  actually\nuse  it,  you can use the FTP link item in the menu or directly change your current directory\nusing the cd command to a path name that looks like this:\n\nftp://[!][user[:pass]@]machine[:port][remote-dir]\n\nThe user, port and remote-dir elements are optional.  If you specify the user  element,  Mid‐\nnight  Commander  will login to the remote machine as that user, otherwise it will use anony‐\nmous login or the login name from the ~/.netrc file.  The optional pass element is the  pass‐\nword  used  for  the  connection.  Using the password in the VFS directory name is not recom‐\nmended, because it can appear on the screen in clear text and can be saved to  the  directory\nhistory.\n\nTo enable using FTP proxy, prepend !  (an exclamation sign) to the hostname.\n\nExamples:\n\nftp://ftp.nuclecu.unam.mx/linux/local\nftp://tsx-11.mit.edu/pub/linux/packages\nftp://!behind.firewall.edu/pub\nftp://guest@remote-host.com:40/pub\nftp://miguel:xxx@server/pub\n\nPlease check the Virtual File System dialog box for ftpfs options.\n"
                },
                {
                    "name": "Tar File System",
                    "content": "The  tar  file system provides you with read-only access to your tar files and compressed tar\nfiles by using the chdir command.  To change your directory to a tar file,  you  change  your\ncurrent directory to the tar file by using the following syntax:\n\n/filename.tar/utar://[dir-inside-tar]\n\nThe  mc.ext  file already provides a shortcut for tar files, this means that usually you just\npoint to a tar file and press return to enter into the tar file, see the Edit Extension  File\nsection for details on how this is done.\n\nExamples:\n\nmc-3.0.tar.gz/utar://mc-3.0/vfs\n/ftp/GCC/gcc-2.7.0.tar/utar://\n\nThe latter specifies the full path of the tar archive.\n"
                },
                {
                    "name": "FIle transfer over SHell filesystem",
                    "content": "The  fish  file system is a network based file system that allows you to manipulate the files\nin a remote machine as if they were local. To use this, the other side has to either run fish\nserver, or has to have bash-compatible shell.\n\nTo connect to a remote machine, you just need to chdir into a special directory which name is\nin the following format:\n\nsh://[user@]machine[:options]/[remote-dir]\n\nThe user, options and remote-dir elements are optional.  If you  specify  the  user  element,\nMidnight  Commander  will  try to login on the remote machine as that user, otherwise it will\nuse your login name.\n\nThe available options are:\n'C' - use compression;\n'r' - use rsh instead of ssh;\nport - specify the port used by remote server.\nIf the remote-dir element is present, your current directory on the remote  machine  will  be\nset to this one.\n\nExamples:\n\nsh://onlyrsh.mx:r/linux/local\nsh://joe@want.compression.edu:C/private\nsh://joe@noncompressed.ssh.edu/private\nsh://joe@somehost.ssh.edu:2222/private\n"
                },
                {
                    "name": "SFTP (SSH File Transfer Protocol) filesystem",
                    "content": "The  SFTP  file system is a network based file system that allows you to manipulate the files\nin a remote machine as if they were local.\n\nTo connect to a remote machine, you just need to chdir into a special directory which name is\nin the following format:\n\nsftp://[user@]machine:[port]/[remote-dir]\n\nThe  user,  port and remote-dir elements are optional.  If you specify the user element, Mid‐\nnight Commander will try to login on the remote machine as that user, otherwise it  will  use\nyour  login name.  port - specify the port used by remote server (22 by default).  If the re‐\nmote-dir element is present, your current directory on the remote machine will be set to this\none.\n\nExamples:\n\nsftp://onlyrsh.mx/linux/local\nsftp://joe:password@want.compression.edu/private\nsftp://joe@noncompressed.ssh.edu/private\nsftp://joe@somehost.ssh.edu:2222/private\n\nWhen   establishing   the   connection,   server   key  fingerprint  is  verified  using  the\n~/.ssh/knownhosts file. If the host/key pair is not found or the host is found, but the  key\ndoesn't  match, an appropriate message is shown.  There are three buttons in the message dia‐\nlog:\n\n[Yes] add new host/key pair to the ~/.ssh/knownhosts file and continue.\n\n[Ignore] do not add new host/key pair to the ~/.ssh/knownhosts file, but continue  neverthe‐\nless (at you own risk).\n\n[No] abort connection.\n"
                },
                {
                    "name": "Undelete File System",
                    "content": "On Linux systems, if you asked configure to use the ext2fs undelete facilities, you will have\nthe undelete file system available.  Recovery of deleted files is only available on ext2 file\nsystems.  The undelete file system is just an interface to the ext2fs library to retrieve all\nof the deleted files names on an ext2fs and provides and to extract the selected files into a\nregular partition.\n\nTo  use  this  file  system,  you have to chdir into the special file name formed by the \"un‐\ndel://\" prefix and the file name where the actual file system resides.\n\nFor example, to recover deleted files on the second partition  of  the  first  SCSI  disk  on\nLinux, you would use the following path name:\n\nundel://sda2\n\nIt  may take a while for the undelfs to load the required information before you start brows‐\ning files there.\n"
                },
                {
                    "name": "SMB File System",
                    "content": "The smbfs allows you to manipulate files on remote machines  with  SMB  (or  CIFS)  protocol.\nThese  include  Windows for Workgroups, Windows 9x/ME/XP, Windows NT, Windows 2000 and Samba.\nTo actually use it, you may try to use the panel command \"SMB link...\"  (accessible from  the\nmenubar)  or  you  may directly change your current directory to it using the cd command to a\npath name that looks like this:\n\nsmb://[user@]machine[/service][/remote-dir]\n\nThe user, service and remote-dir elements are optional.  The user, domain and password can be\nspecified in an input dialog.\n\nExamples:\n\nsmb://machine/Share\nsmb://othermachine\nsmb://guest@machine/Public/Irlex\n"
                },
                {
                    "name": "EXTernal File System",
                    "content": "extfs allows you to integrate numerous features and file types into GNU Midnight Commander in\nan easy way, by writing scripts.\n\nExtfs filesystems can be divided into two categories:\n\n1. Stand-alone filesystems, which are not associated with any existing file.  They  represent\ncertain  system-wide  data  as  a directory tree.  You can invoke them by typing cd fsname://\nwhere fsname is an extfs short name (see below).  Examples of such filesystems include  audio\n(list audio tracks on the CD) or apt (list of all Debian packages in the system).\n\nFor example, to list CD-Audio tracks on your CD-ROM drive, type\n\ncd audio://\n\n2.  'Archive' filesystems (like rpm, patchfs and more), which represent contents of a file as\na directory tree.  It can consist of 'real' files compressed in an  archive  (urar,  rpm)  or\nvirtual  files, like messages in a mailbox (mailfs) or parts of a patch (patchfs).  To access\nsuch filesystems fsname:// should be appended to the archive name.  Note that the archive it‐\nself can be on another vfs.\n\nFor example, to list contents of a zip archive documents.zip type\n\ncd documents.zip/uzip://\n\nIn  many  aspects, you could treat extfs like any other directory.  For instance, you can add\nit to the hotlist or change to it from directory history.  An important  limitation  is  that\nyou cannot invoke shell commands inside extfs, just like any other non-local VFS.\n\nCommon extfs scripts included with Midnight Commander are:\n\na      access 'A:' DOS/Windows diskette (cd a://).\n\napt    front end to Debian's APT package management system (cd apt://).\n\naudio  audio CD ripping and playing (cd audio:// or cd device/audio://).\n\nbpp    package of Bad Penguin GNU/Linux distribution (cd file.bpp/bpp://).\n\ndeb    package of Debian GNU/Linux distribution (cd file.deb/deb://).\n\ndpkg   Debian GNU/Linux installed packages (cd deb://).\n\nhp48   view and copy files to/from a HP48 calculator (cd hp48://).\n\nlslR   browsing of lslR listings as found on many FTPs (cd filename/lslR://).\n\nmailfs mbox-style mailbox files support (cd mailbox/mailfs://).\n"
                },
                {
                    "name": "patchfs",
                    "content": "extfs to handle unified and context diffs (cd filename/patchfs://).\n\nrpm    RPM package (cd filename/rpm://).\n\nrpms   RPM database management (cd rpms://).\n"
                },
                {
                    "name": "ulha, urar, uzip, uzoo, uar, uha",
                    "content": "archivers (cd archive/xxxx:// where xxxx is one of: ulha, urar, uzip, uzoo, uar, uha).\n\nYou could bind file type/extension to specified extfs as described in the Edit Extension File\nsection.  Here is an example entry for Debian packages:\n\nregex/.deb$\nOpen=%cd %p/deb://\n"
                }
            ]
        },
        "Colors": {
            "content": "Midnight Commander will try to detect if your terminal  supports  color  using  the  terminal\ndatabase  and your terminal name.  Sometimes it gets confused, so you may force color mode or\ndisable color mode using the -c and -b flag respectively.\n\nIf the program is compiled with the S-Lang screen manager instead of ncurses,  it  will  also\ncheck the variable COLORTERM, if it is set, it has the same effect as the -c flag.\n\nYou may specify terminals that always force color mode by adding the colorterminals variable\nto the Colors section of the initialization file.  This will prevent Midnight Commander  from\ntrying to detect if your terminal supports color.  Example:\n\n[Colors]\ncolorterminals=linux,xterm\ncolorterminals=terminal-name1,terminal-name2...\n\nThe  program  can be compiled with both ncurses and S-Lang, ncurses does not provide a way to\nforce color mode: ncurses uses just the information in the terminal database.\n\nMidnight Commander provides a way to change the default colors.   Currently  the  colors  are\nconfigured  using  the  environment variable MCCOLORTABLE or the Colors section in the ini‐\ntialization file.\n\nIn the Colors section, the default color map is loaded from the basecolor variable.  You can\nspecify  an  alternate color map for a terminal by using the terminal name as the key in this\nsection.  Example:\n\n[Colors]\nbasecolor=\nxterm=menu=magenta:marked=,magenta:markselect=,red\n\nThe format for the color definition is:\n\n<keyword>=<fgcolor>,<bgcolor>,<attributes>:<keyword>=...\n\nThe colors are optional, and the keywords are: normal, selected,  disabled,  marked,  markse‐\nlect,  errors, input, inputmark, inputunchanged, commandlinemark, reverse, gauge, header, in‐\nputhistory, commandhistory. Button bar colors are: bbarhotkey, bbarbutton. Status bar  color:\nstatusbar.  Menu  colors  are: menunormal, menusel, menuhot, menuhotsel, menuinactive. Dialog\ncolors are: dnormal, dfocus, dhotnormal, dhotfocus, dtitle. Error dialog colors are:  errdfo‐\ncus,  errdhotnormal, errdhotfocus, errdtitle.  Help colors are: helpnormal, helpitalic, help‐\nbold, helplink, helpslink, helptitle.  Viewer colors are:  viewnormal,  viewbold,  viewunder‐\nline,  viewselected. Editor colors are: editnormal, editbold, editmarked, editwhitespace, ed‐\nitlinestate. Popup menu colors are: pmenunormal, pmenusel, pmenutitle.\n\nheader determines the color of panel header, the line that contains column  titles  and  sort\nmode indicator.\n\ninput determines the color of input lines used in query dialogs.\n\ngauge  determines  the color of the filled part of the progress bar (gauge), which is used to\nshow the user the progress of file operations, such as copying.\n\ndisabled determines the color of the widget that cannot be selected.\n\nThe dialog boxes use the following colors: dnormal is used for the normal text, dfocus is the\ncolor  used for the currently selected component, dhotnormal is the color used to differenti‐\nate the hotkey color in normal components, whereas the dhotfocus color is used for the  high‐\nlighted color in the currently selected component.\n\nMenus use the same scheme but uses the menunormal, menusel, menuhot, menuhotsel and menuinac‐\ntive tags instead.\n\nHelp uses the following colors: helpnormal is used for normal text, helpitalic  is  used  for\ntext which is emphasized in italic in the manual page, helpbold is used for text which is em‐\nphasized in bold in the manual page, helplink is used for not selected hyperlinks  and  help‐\nslink is used for selected hyperlink.\n\nPopup  menu  uses  following colors: pmenunormal is used for non-selected menu items and as a\nmain color of popup menu window, pmenusel is used for selected menu item, pmenutitle is  used\nfor popup menu title.\n\nThe  possible  colors  are:  black,  gray, red, brightred, green, brightgreen, brown, yellow,\nblue, brightblue, magenta, brightmagenta, cyan, brightcyan, lightgray and white. And there is\na special keyword for transparent background. It is 'default'. The 'default' can only be used\nfor background color. Another special keyword \"base\" means mc's main colors.  When 256 colors\nare  available,  they  can be specified either as color16 to color255, or as rgb000 to rgb555\nand gray0 to gray23. Example:\n\n[Colors]\nbasecolor=normal=white,default:marked=magenta,default\n\nAttributes can be any of bold, italic, underline, reverse and blink, appended by a plus  sign\nif  more than one are desired.  The special word \"none\" means no attributes, without attempt‐\ning to fall back to basecolor.  Example:\n\nmenuhotsel=yellow;black;bold+underline\n\n",
            "subsections": []
        },
        "Skins": {
            "content": "You can change the appearance of Midnight Commander.  To do this, you  must  specify  a  file\nthat  contain descriptions of colors and lines to draw boxes. Redefining of the colors is en‐\ntirely compatible with the assignment of colors, as described in Section Colors.\n\nIf your skin contains any true-color definitions, you should define the 'truecolors' key  set\nto  TRUE  value in [skin] section. If true-color is not used but 256-color is, you should de‐\nfine '256colors' instead.\n\nA skin-file is searched on the following algorithm (to the first one found):\n\n1) command line option -S <skin> or --skin=<skin>\n2) Environment variable MCSKIN\n3) Parameter skin in section [Midnight-Commander] in config file.\n4) File /etc/mc/skins/default.ini\n5) File /usr/share/mc/skins/default.ini\n\n\nCommand line option, environment variable and parameter in config file may contain the  abso‐\nlute  path to the skin-file (with the extension .ini or without it). Search of skin-file will\noccur in (to the first one found):\n\n1) ~/.local/share/mc/skins/\n2) /etc/mc/skins/\n3) /usr/share/mc/skins/\n\n\nFor getting extended info, refer to:\n\nDescription of section and parameters\nColor pair definitions\nColor and attribute aliases\nDraw lines\nCompatibility\n\n",
            "subsections": [
                {
                    "name": "Description of section and parameters",
                    "content": "Section [skin] contain metainfo for skin-file. Parameter description contain short text about\nskin.\n\n\nSection [filehighlight] contain descriptions of color pairs for filenames highlighting.  Name\nof parameters must be equal to names of sections into filehighlight.ini file.  See  Filenames\nHighlight for getting more info.\n\n\nSection [core] describes the elements that are used everywhere.\n\ndefault\nDefault color pair. Used in all other sections if they not contain color definitions\n\nselected\ncursor\n\nmarked selected data\n\nmarkselect\ncursor on selected data\n\ngauge  color of the filled part of the progress bar\n\ninput  color of input lines used in query dialogs\n\ninputmark\ncolor of input selected text\n\ninputunchanged\ncolor of input text before first modification or cursor movement\n\ncommandlinemark\ncolor of selected text in command line\n\nreverse\nreverse color\n\nSection  [dialog]  describes the elements that are placed on dialog windows (except error di‐\nalogs).\n\ndefault\nDefault color for this section. Used [core].default if not specified\n\ndfocus Color of active element (in focus)\n\ndhotnormal\nColor of hotkeys\n\ndhotfocus\nColor of hotkeys in focused element\n\n\nSection [error] describes the elements that are placed on error dialog windows\n\ndefault\nDefault color for this section. Used [core].default if not specified\n\nerrdhotnormal\nColor of hotkeys\n\nerrdhotfocus\nColor of hotkeys in focused element\n\n\nSection [menu] describes the elements that are placed in menu. This section describes  system\nmenu (called by F9) and user-defined menus (called by F2 in panels and by F11 in editor).\n\ndefault\nDefault color for this section. Used [core].default if not specified\n\nentry  Color of menu items\n\nmenuhot\nColor of menu hotkeys\n\nmenusel\nColor of active menu item (in focus)\n\nmenuhotsel\nColor of menu hotkeys in focused menu item\n\nmenuinactive\nColor of inactive menu\n\n\nSection [help] describes the elements that are placed on help window.\n\ndefault\nDefault color for this section. Used [core].default if not specified\n\nhelpitalic\nColor pair for element with italic attribute\n\nhelpbold\nColor pair for element with bold attribute\n\nhelplink\nColor of links\n\nhelpslink\nColor of active link (on focus)\n\n\nSection [editor] describes the colors of elements placed in editor.\n\ndefault\nDefault color for this section. Used [core].default if not specified\n\neditbold\nColor pair for element with bold attribute\n\neditmarked\nColor of selected text\n\neditwhitespace\nColor of tabs and trailing spaces highlighting\n\neditlinestate\nColor for line state area\n\n\nSection [viewer] describes the colors of elements placed in viewer.\n\nviewunderline\nColor pair for element with underline attribute\n\n"
                },
                {
                    "name": "Color pair definitions",
                    "content": "Any parameter in skin-file contain definition of color pair.\n\nColor pairs described as two colors and the optional attributes separated by ';'. First field\nsets the foreground color, second field sets background  color,  third  field  sets  the  at‐\ntributes.   Any  of  the fields may be omitted, in this case value will be taken from default\ncolor pair (global color pair or from default color pair of this section).\n\nExample:\n[core]\n# green on black\ndefault=green;black\n# green (default) on blue\nselected=;blue\n# yellow on black (default)\n# underlined yellow on black (default)\nmarked=yellow;;underline\n\n\nPossible colors (names) and attributes are described in Colors.  section.\n\n"
                },
                {
                    "name": "Color and attribute aliases",
                    "content": "This optional section might define aliases for single colors (not color  pairs)  as  well  as\ncombination  of  attributes; in other words, for semicolon-separated fragments of parameters.\nAliases can refer to other aliases as long as they don't form a loop.\n\nExample:\n[aliases]\nmyfavfg=green\nmyfavbg=black\nmyfavattr=bold+italic\n[core]\ndefault=myfavfg;myfavbg;myfavattr\n\n"
                },
                {
                    "name": "Draw lines",
                    "content": "Lines sets in section [Lines] into skin-file. By default single lines are used, but  you  may\nredefine to usage of any utf-8 symbols (like to lines, for example).\n\nWARNING!!!   When you build Midnight Commander with the ncurses screen library usage of draw‐\ning lines is limited!  Possible only drawing a single lines.  For all questions and  comments\nplease contact the developers of ncurses.\n\n\nDescriptions of parameters [Lines]:\n\nlefttop\nleft-top line fragment.\n\nrighttop\nright-top line fragment.\n\ncentertop\ndown branch of horizontal line\n\ncenterbottom\nup branch of horizontal line\n\nleftbottom\nleft-bottom line fragment\n\nrightbottom\nright-bottom line fragment\n\nleftmiddle\nright branch of vertical line\n\nrightmiddle\nleft branch of vertical line\n\ncentermiddle\ncross of lines\n\nhoriz  horizontal line\n\nvert   vertical line\n\nthinhoriz\nthin horizontal line\n\nthinvert\nthin vertical line\n\n\n"
                },
                {
                    "name": "Compatibility",
                    "content": "Appointment  of  color  by skin-files fully compatible with the appointment of the colors de‐\nscribed in Colors.  section.\n\nIn this case, reassignment of colors has priority over the skin file and is complementary.\n\n"
                },
                {
                    "name": "Filenames Highlight",
                    "content": "Section [filehighlight] in current skin-file contains key names as highlight groups and  val‐\nues as color pairs. Color pairs is documented in Skins section.\n\nRules  of  filenames  highlight  are  placed in /usr/share/mc/filehighlight.ini file (~/.con‐\nfig/mc/filehighlight.ini).  Name of section in this file must be equal to parameters names in\n[filehighlight] section (in current skin-file).\n\nKeys in these groups are:\n\ntype   file type. If present, all other options are ignored.\n\nregexp regular expression. If present, 'extensions' option is ignored.\n\nextensions\nlist of extensions of files. Separated by ';' sign.\n\nextensionscase\n(make  sense  only  with 'extensions' parameter) make 'extensions' rule case sensitive\n(true) or not (false).\n\n`type' key may have values:\n- FILE (all files)\n- FILEEXE\n- DIR (all directories)\n- LINKDIR\n- LINK (all links except stale link)\n- HARDLINK\n- SYMLINK\n- STALELINK\n- DEVICE (all device files)\n- DEVICEBLOCK\n- DEVICECHAR\n- SPECIAL (all special files)\n- SPECIALSOCKET\n- SPECIALFIFO\n- SPECIALDOOR\n"
                },
                {
                    "name": "Special Settings",
                    "content": "Most of Midnight Commander settings can be changed from the menus. However, there are a small\nnumber of settings which can only be changed by editing the setup file.\n\nThese variables may be set in your ~/.config/mc/ini file:\n\nclearbeforeexec\nBy  default,  Midnight Commander clears the screen before executing a command.  If you\nwould prefer to see the output of the command at the bottom of the screen,  edit  your\n~/.config/mc/ini file and change the value of the field clearbeforeexec to 0.\n\nconfirmviewdir\nIf  you  press  F3 on a directory, normally MC enters that directory.  If this flag is\nset to 1, then MC will ask for confirmation before changing the directory if you  have\nfiles tagged.\n\nftpfsretryseconds\nThis  value is the number of seconds Midnight Commander will wait before attempting to\nreconnect to an FTP server that has denied the login.  If the value is zero, the login\nwill no be retried.\n\nmaxdirtlimit\nSpecifies  how many screen updates can be skipped at most in the internal file viewer.\nNormally this value is not significant, because the  code  automatically  adjusts  the\nnumber  of  updates to skip according to the rate of incoming keystrokes.  However, on\nvery slow machines or terminals with a fast keyboard auto repeat, a big value can make\nscreen updates too jumpy.\n\nIt  seems  that setting maxdirtlimit to 10 causes the best behavior, and that is the\ndefault value.\n\nmousemovepagesviewer\nControls if scrolling with the mouse is done by pages or line by line on the  internal\nfile viewer.\n\nonlyleadingplusminus\nAllow  special  treatment for '+', '-', '*' in the command line (select, unselect, re‐\nverse selection) only if the command line is empty.  You don't  need  to  quote  those\ncharacters  in the middle of the command line.  On the other hand, you cannot use them\nto change selection when the command line is not empty.\n\nalternateplusminus\nIf true, use '+', '-', '\\' and '*' keys normally. For  select/unselect,  use  'Alt-+',\n'Alt--' and 'Alt-*'.\n\nshowoutputstartsshell\nThis  variable only works if you are not using the subshell support.  When you use the\nC-o keystroke to go back to the user screen, if this one is set, you will get a  fresh\nshell.  Otherwise, pressing any key will bring you back to Midnight Commander.\n\ntimeformatrecent\nChange  the  time format used to display dates less than 6 months from now.  See strf‐\ntime or date man page for the format specification. If this option is absent,  default\ntimeformat is used.\n\ntimeformatold\nChange  the  time  format  used  to display  dates older than 6 months from now or for\ndates in the future.  See strftime or date man page for the format  specification.  If\nthis option is absent, default timeformat is used.\n\ntorbenfjmode\nIf  this  flag  is set, then the home and end keys will work slightly different on the\npanels, instead of moving the selection to the first and last  files  in  the  panels,\nthey will act as follows:\n\nThe  home key will: Go up to the middle line, if below it; else go to the top line un‐\nless it is already on the top line, in this case it will go to the first file  in  the\npanel.\n\nThe end key has a similar behavior: Go down to the middle line, if over it; else go to\nthe bottom line unless you already are at the bottom line, in such case it  will  move\nthe selection to the last file name in the panel.\n\nusefiletoguesstype\nIf  this variable is on (the default) it will spawn the file command to match the file\ntypes listed on the mc.ext file.\n\nxtreemode\nIf this variable is on (default is off) when you browse the  file  system  on  a  Tree\npanel,  it will automatically reload the other panel with the contents of the selected\ndirectory.\n\nfishdirectorytimeout\nThis variable holds the lifetime of a directory cache entry in  seconds.  The  default\nvalue is 900 seconds.\n\nclipboardstore\nThis  variable  contains  path  (with  options) to the external clipboard utility like\n'xclip' to read text into X selection from file.  For example:\n\nclipboardstore=xclip -i\n\nclipboardpaste\nThis variable contains path (with options) to  the  external  clipboard  utility  like\n'xclip' to print the selection to standard out.  For example:\n\nclipboardpaste=xclip -o\n\nautodetectcodeset\nThis  option  allows use the `enca' command to autodetect codeset of text files in in‐\nternal viewer and editor. List of valid values can be obtain by the `enca --list  lan‐\nguages | cut -d : -f1' command. Option must be located in the [Misc] section.\n\nFor example:\n\nautodetectcodeset=russian\n"
                },
                {
                    "name": "Parameters for external editor or viewer",
                    "content": "Midnight  Commander  provides  a way for specify an options for external editors and viewers.\nMidnight Commander tries to search the \"[External editor or viewer  parameters]\"  section  in\nthe  system  initialization file (the mc.lib file located in Midnight Commander's library di‐\nrectory) and then in the ~/.config/mc/ini file. The option name should be equal to  the  name\n(full  pathname)  of  external editor or viewer. The option value can contain following vari‐\nables:\n\n%filename\nThe filename to edit/view.\n\n%lineno\nThe start line in the opening file.\n\nFor example:\n\n[External editor or viewer parameters]\nvi=%filename +%lineno\njoe=%filename +%lineno\nmore=%filename +%lineno\n\nStart line is passed to the external editor/viewer only if it is called from  the  Find  file\nresults window.\n\nIf  external editor/viewer is launched via F4/F3 keys, MC hopes that program (at least \"joe\",\nbut probably others too) has an own feature that by default opens the file where it was  last\nopen. MC doesn't prevent external editor/viewer to save and restore position in opened files.\n"
                },
                {
                    "name": "Terminal databases",
                    "content": "Midnight Commander provides a way to fix your system terminal database without requiring root\nprivileges. Midnight Commander searches in the system initialization file  (the  mc.lib  file\nlocated  in  Midnight Commander's library directory) and in the ~/.config/mc/ini file for the\nsection \"terminal:your-terminal-name\" and then for the section \"terminal:general\", each  line\nof  the  section contains a key symbol that you want to define, followed by an equal sign and\nthe definition for the key.  You can use the special \\e form to represent the escape  charac‐\nter and the ^x to represent the control-x character.\n\nThe possible key symbols are:\n\nf0 to f20     Function keys f0-f20\nbs            backspace\nhome          home key\nend           end key\nup            up arrow key\ndown          down arrow key\nleft          left arrow key\nright         right arrow key\npgdn          page down key\npgup          page up key\ninsert        the insert character\ndelete        the delete character\ncomplete      to do completion\n\nFor  example,  to define the key insert to be the Escape + [ + O + p, you set this in the ini\nfile:\n\ninsert=\\e[Op\n\n\nAlso now you can use extended learn keys.  For example:\n\nctrl-alt-right=\\e[[1;6C\nctrl-alt-left=\\e[[1;6D\n\n\nThis means that ctrl+alt+left sends a \\e[[1;6D escape sequence and therefore Midnight Comman‐\nder interprets \"\\e[[1;6D\" as C-Alt-Left.\n\n\nThe  complete  key  symbol  represents  the  escape  sequences  used to invoke the completion\nprocess, this is invoked with Alt-tab, but you can define other keys to do the same work  (on\nthose keyboard with tons of nice and unused keys everywhere).\n\n"
                }
            ]
        },
        "FILES": {
            "content": "Full  paths  below  may vary between installations.  They are also affected by the MCDATADIR\nenvironment variable. If it's set, its value is used instead of /usr/share/mc  in  the  paths\nbelow.\n\n/usr/share/mc/help/mc.hlp\n\nThe help file for the program.\n\n/usr/share/mc/mc.ext\n\nThe default system-wide extensions file.\n\n~/.config/mc/mc.ext\n\nUser's  own  extension, view configuration and edit configuration file.  They override\nthe contents of the system wide files if present.\n\n/etc/mc/mc.ini\n/usr/share/mc/mc.ini\n\nSystem-wide setup files for Midnight Commander, used only if the user doesn't have his\nown ~/.config/mc/ini file. If /etc/mc/mc.ini exists, /usr/share/mc/mc.ini isn't used.\n\n/usr/share/mc/mc.lib\n\nGlobal  settings  for  Midnight  Commander.  Settings  in  this file affect all users,\nwhether they have ~/.config/mc/ini or not.   Currently,  only  terminal  settings  are\nloaded from mc.lib.\n\n~/.config/mc/ini\n\nUser's  own  setup. If this file is present then the setup is loaded from here instead\nof the system-wide startup file.\n\n/usr/share/mc/hints/mc.hint\n\nThis file contains the hints displayed by the program.\n\n/usr/share/mc/mc.menu\n\nThis file contains the default system-wide applications menu.\n\n~/.config/mc/menu\n\nUser's own application menu. If this file is present it is used instead  of  the  sys‐\ntem-wide applications menu.\n\n~/.cache/mc/Tree\n\nThe directory list for the directory tree and tree view features.\n\n~/.local/share/mc.menu\n\nLocal  user-defined  menu.  If this file is present, it is used instead of the home or\nsystem-wide applications menu.\n\nTo change default root directory of MC, you can use MCPROFILEROOT environment variable. The\nvalue  of  MCPROFILEROOT  must  be an absolute path.  If MCPROFILEROOT is unset or empty,\nHOME variable is used. If HOME is unset or empty, MC directories are get from GLib library.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "This program is distributed under the terms of the GNU General Public License as published by\nthe  Free  Software Foundation. See the built-in help for details on the License and the lack\nof warranty.\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "The latest version of this program can be found at http://ftp.midnight-commander.org/.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1), tcsh(1), zsh(1).\n\nMidnight Commander's page on the World Wide Web:\nhttp://www.midnight-commander.org/\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Authors and contributors are listed in the AUTHORS file in the source distribution.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "See the file TODO in the distribution for information on what remains to be done.\n\nIf you want to report a problem with the program, please create bugreport at  http://www.mid‐\nnight-commander.org/.\n\nProvide  a detailed description of the bug, the version of the program you are running (mc -V\ndisplays this information), the operating system you are running the program on.  If the pro‐\ngram crashes, we would appreciate a stack trace.\n\n\n\nMC Version 4.8.27                            August 2021                                       MC(1)",
            "subsections": []
        }
    },
    "summary": "JOE - Joe´s Own Editor",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "ed",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ed/1/json"
        },
        {
            "name": "gpm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gpm/1/json"
        },
        {
            "name": "terminfo",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/terminfo/1/json"
        },
        {
            "name": "view",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/view/1/json"
        },
        {
            "name": "sh",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/sh/1/json"
        },
        {
            "name": "bash",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/bash/1/json"
        },
        {
            "name": "tcsh",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tcsh/1/json"
        },
        {
            "name": "zsh",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zsh/1/json"
        }
    ]
}