1 $MirOS: contrib/code/jupp/jpicorc.in,v 1.24 2017/12/06 23:17:33 tg Exp $
3 Initialization file for JOE
6 JOE looks for this file in:
8 2 - @jrcbefore@jpicorc@jrcafter@
10 This file can include other files by placing the following include command
15 FIRST SECTION: Default global options (these options can also be specified
16 on the command line. Also the NOXON, LINES, COLUMNS, DOPADDING and BAUD
17 options can be specified in environment variables):
19 Put each option you want set in the first column:
21 -option Sets the option
22 --option Clears the option
24 -mid Cursor is recentered when scrolling is necessary
26 -marking Text between ^KB and cursor is highlighted (use with -lightoff)
28 -asis Characters 128 - 255 shown as-is
30 -force Force final newline when files are saved
32 -nobackups If you don't want backup files to be created
34 -lightoff Turn off highlighting after block copy or move
36 -exask ^KX always confirms file name
38 -beep Beep on errors and when cursor goes past extremes
40 -nosta Disable top-most status line
42 -keepup %k and %c status line escape sequences updated frequently
44 -pg nnn No. lines to keep for PgUp/PgDn
46 -csmode ^KF after a pervious search does a ^L instead
48 -backpath path Directory to store backup files
49 (do not use quotes, and remove the comment after path)
51 -nonotice Disable copyright notice
53 -noxon Attempt to turn off ^S/^Q processing
55 -orphan Put extra files given on command line in orphaned buffers
58 -dopadding Output pad characters (for when there is no tty handshaking)
60 -lines nnn Set no. screen lines
62 -baud nnn Set baud rate for terminal optimizations
64 -columns nnn Set no. screen columns
66 -help Start with help on
68 -skiptop nnn Don't use top nnn lines of the screen
70 -notite Don't send terminal initialization and termination strings: prevents
71 restoration of screen on exit.
73 -pastetite Enter bracketed paste mode automatically for TERM=xterm-xfree86
75 -usetabs Use tabs to help optimize screen update.
77 -assume_color Assume terminal has ANSI color support even if termcap/terminfo entry
78 says that it doesn't. This only applies if the terminal otherwise
79 looks like an ANSI terminal (support bold and capability starts with
82 -guess_crlf Automatically detect MS-DOS files and set -crlf appropriately
84 -guess_indent Guess indent character (tab or space).
86 -menu_explorer Stay in menu system when a directory is selected (otherwise
87 directory is added to path and menu is closed).
89 -icase Search is case insensitive by default.
93 Status line definition strings. -lmsg defines the left-justified string,
94 and -rmsg defines the right-justified string. The first character of -rmsg
95 is the background fill character. -hmsg (3.1jupp15) defines the help hint
96 (only about a dozen chars) displayed next to the copyright notice in the
97 initial status line. The following escape sequences can be used in these
102 %T O for overtype mode, I for insert mode
103 %W W if wordwrap is enabled
104 %I A if autoindent is enabled
105 %X Rectangle mode indicator
107 %m '(Modified)' if file has been changed
108 %* '*' if file has been changed
109 %R Read-only indicator
112 %o Byte offset into file
113 %O Byte offset into file in hex
114 %a Ascii value of character under cursor
115 %A Ascii value of character under cursor in hex
116 %p Percent of file cursor is at
118 %k Entered prefix keys
119 %S '*SHELL*' if there is a shell running in window
120 %M Macro recording message
123 These formatting escape sequences may also be given:
131 -lmsg \i%k%T%W%I%X %n %m%y%R %M
132 -rmsg %S Row %r Col %c %t Ctrl-G for help
135 SECOND SECTION: File name dependant local option settings:
137 Each line with '*' in the first column indicates the modes which should be
138 set for files which match the regular expression. If more than one regular
139 expression matches the file name, then the last matching one is chosen.
141 Here are the modes which can be set:
143 -utf8 File is UTF-8 coded
145 -syntax name Specify syntax (syntax file called
146 'name.jsf' will be loaded)
148 -highlight Enable highlighting
150 -smarthome Home key first moves cursor to beginning of line,
151 then if hit again, to first non-blank character.
153 -indentfirst Smart home goes to first non-blank character first,
154 instead of going the beginning of line first.
156 -smartbacks Backspace key deletes 'istep' number of
157 'indentc's if cursor is at first non-space
162 -indentc nnn Indentation character (32 for space, 9 for tab)
164 -istep nnn Number of indentation columns
166 -spaces TAB inserts spaces instead of tabs.
168 -purify Fix indentation if necessary for rindent, lindent and backs
169 (for example if indentation uses a mix of tabs and spaces,
170 and indentc is space, indentation will be converted to all
173 -crlf File uses CR-LF at ends of lines
177 -autoindent Auto indent
179 -overwrite Overtype mode
181 -picture Picture mode (right arrow can go past end of lines)
183 -lmargin nnn Left margin
185 -rmargin nnn Right margin
188 -french One space after '.', '?' and '!' for wordwrap
189 and paragraph reformat instead of two. Joe
190 does not change the spacing you give, but
191 sometimes it must put spacing in itself. This
192 selects how much is inserted.
194 -linums Enable line numbers on each line
196 -rdonly File is read-only
198 -keymap name Keymap to use if not 'main'
200 -lmsg Status line definition strings-
201 -rmsg see previous section for more info.
203 -mnew macro Macro to execute when new files are loaded
204 -mold macro Macro to execute when existing files are loaded
205 -msnew macro Macro to execute when new files are saved
206 -msold macro Macro to execute when existing files are saved
208 -square Rectangular block mode
210 Macros for the above options are in the same format as in the key
211 binding section below- but without the key name strings.
213 Default local options
223 #HOOK#1 global/default flags
228 Assume it's a text file and, except in jupp, we want wordwrap on.
231 Filename with '.' is probably not a text file.
234 === Patterns with multiple wildcards
235 Order is latest match wins, so...
277 === C, C++, Objective-C
332 +#!\+\[ ]\+\[a-z/]/\+tcsh\>
336 +#!\+\[ ]\+\[a-z/]/env\+\[ ]\+tcsh\>
367 +Index: \*\n======================================================
372 +Index: \*\ndiff\*\n--- \*\n+++\[ ]
377 +\[=?]\*\n--- \*\n+++\[ ]
382 +diff\*\n--- \*\n+++\[ ]
387 +diff --git\*\nindex\*\n--- \*\n+++\[ ]
395 Not quite eMail but still RFC822
490 +#!\+\[ ]\+\[a-z/]/perl
494 +#!\+\[ ]\+\[a-z/]/env\+\[ ]perl
511 +#!\+\[ ]\+\[a-z/]/python
520 +#!\+\[ ]\+\[a-z/]/env\+\[ ]python
528 === Bourne, Korn, POSIX Shell
537 +#!\+\[ ]\+\[a-z/]/\+\[bd]\+ash\>
541 +#!\+\[ ]\+\[a-z/]/env\+\[ ]\+\[bd]\+ash\>
545 +#!\+\[ ]\+\[a-z/]/\+\[a-z]ksh\+\[0-9._-]\>
549 +#!\+\[ ]\+\[a-z/]/env\+\[ ]\+\[a-z]ksh\+\[0-9._-]\>
589 === Text (except in jupp)
599 #HOOK#2 filename matching
601 THIRD SECTION: Named help screens:
603 Use \i to turn on/off inverse video
604 Use \u to turn on/off underline
605 Use \b to turn on/off bold
606 Use \d to turn on/off dim
607 Use \f to turn on/off flash
610 \|\b^K\b cut line \| \b^W\b find first \|\b^J\b justify \| \b^X\b save or discard, exit \|
611 \|\b^U\b paste \|\bEsc W\b find next \|\b^T\b spell \|\bEsc .\b for more help \|
615 \i Help Screen \|turn off with ^G prev. screen ^[, next screen ^[. \i
616 \i \i\|\uCURSOR\u \|\uGO TO\u \|\uBLOCK\u \|\uDELETE\u \|\uMISC\u \|\uEXIT\u \|\i \i
617 \i \i\|^B left ^F right \|^W^Y top of file \|^^ mark \|^D char \|^J format \|^X save \|\i \i
618 \i \i\|^P up ^N down \|^W^V end of file \|^K cut \|^K line \|^T spell \|^C status\|\i \i
619 \i \i\|^Y prev. screen \|^A beg. of line \|^U paste \|^[K >line \|^[T file \|^[Z shell\|\i \i
620 \i \i\|^V next screen \|^E end of line \|^O save \|^[H word< \|^L refresh \|\uFILE\u \|\i \i
621 \i \i\|^Z prev. word \|^W^T line No. \|^[/ filter \|^[D >word \|^[^[ options \|^O save \|\i \i
622 \i \i\|^SPACE next word \|^W find ^[W next \| \|^[- undo \|^[= redo \|^R insert\|\i \i
626 \i Help Screen \|turn off with ^G prev. screen ^[, next screen ^[. \i
627 \i \i\|\uMACROS\u \|\uWINDOW\u \|\uWINDOW\u \|\uSHELL\u \|\uMISC\u \|\i \i
628 \i \i\|^[( 0-9 Record \|^[O Split \|^[G Grow \|^[! Command \|^[X Execute command \|\i \i
629 \i \i\|^[) Stop \|^[E Edit file \|^[J Shrink \|^[' Window \|^[M Math \|\i \i
630 \i \i\|^[ 0-9 Play \|^[P Goto prev. \|\uQUOTE\u \|\uI-SEARCH\u \|^[C Center line \|\i \i
631 \i \i\|^[? Query \|^[N Goto next \|` Ctrl- \|^[R Backwards \|^[] to matching ( [ {\|\i \i
632 \i \i\|^[\\ Repeat \|^[I Zoom in/out \|^\\ Meta- \|^[S Forwards \|^[< ^[> pan left/rght\|\i \i
636 \i Help Screen \|turn off with ^G prev. screen ^[, next screen ^[. \i
637 \i \iSpecial search sequences: \|\i \i
638 \i \i \\^ \\$ matches beg./end of line \\? match any single char \|\i \i
639 \i \i \\< \\> matches beg./end of word \\* match 0 or more chars \|\i \i
640 \i \i \\c matches balanced C expression \\\\ matches a \\ \|\i \i
641 \i \i \\[..] matches one of a set \\n matches a newline \|\i \i
642 \i \i \\+ matches 0 or more of the character which follows the \\+ \|\i \i
643 \i \iSpecial replace sequences: \|\i \i
644 \i \i \\& replaced with text which matched search string \|\i \i
645 \i \i \\0 - 9 replaced with text which matched Nth \\*, \\?, \\c, \\+, or \\[..] \|\i \i
646 \i \i \\\\ replaced with \\ \\n replaced with newline \|\i \i
650 \i Help Screen \|turn off with ^G prev. screen ^[, next screen ^[. \i
651 \i \i Hit TAB at file name prompts to generate menu of file names \|\i \i
652 \i \i Or use up/down keys to access history of previously entered names \|\i \i
653 \i \i Special file names: \|\i \i
654 \i \i !command Pipe in/out of a shell command \|\i \i
655 \i \i >>filename Append to a file \|\i \i
656 \i \i - Read/Write to/from standard I/O \|\i \i
657 \i \i filename,START,SIZE Read/Write a part of a file/device \|\i \i
658 \i \i Give START/SIZE in decimal (255), octal (0377) or hex (0xFF) \|\i \i
662 \i Help Screen \|turn off with ^G prev. screen ^[, \i
663 \i \i For bug reports and other information, refer to: \uhttp://mirbsd.de/jupp\u \|\i \i
666 #HOOK#3 additional help screens
669 \i Help Screen turn off with ^J prev. screen ^[, \uCharacter Map\u \i
670 \i \i Dec Hex \u 0123 4567 89AB CDEF 0123 4567 89AB CDEF \u Hex Dec \i \i
672 \i \i 0 00 | \u@ABC\u \uDEFG\u \uHIJK\u \uLMNO\u
\80\81\82\83 \84\85\86\87 \88\89\8a\8b \8c\8d\8e\8f | 80 128 \i \i
673 \i \i 16 10 | \uPQRS\u \uTUVW\u \uXYZ[\u \u\\]^_\u
\90\91\92\93 \94\95\96\97 \98\99\9a\9b \9c\9d\9e\9f | 90 144 \i \i
674 \i \i 32 20 | !"# $%&' ()*+ ,-./ ¡¢£ ¤¥¦§ ¨©ª« ¬®¯ | A0 160 \i \i
675 \i \i 48 30 | 0123 4567 89:; <=>? °±²³ ´µ¶· ¸¹º» ¼½¾¿ | B0 176 \i \i
676 \i \i 64 40 | @ABC DEFG HIJK LMNO ÀÁÂÃ ÄÅÆÇ ÈÉÊË ÌÍÎÏ | C0 192 \i \i
677 \i \i 80 50 | PQRS TUVW XYZ[ \\]^_ ÐÑÒÓ ÔÕÖ× ØÙÚÛ ÜÝÞß | D0 208 \i \i
678 \i \i 96 60 | `abc defg hijk lmno àáâã äåæç èéêë ìíîï | E0 224 \i \i
679 \i \i 112 70 | pqrs tuvw xyz{ |}~
\7f ðñòó ôõö÷ øùúû üýþÿ | F0 240 \i \i
684 \i \i \u\bPaste Mode\b\u turn off with \b^D\b or \b^[[201~\b \i \i
687 FOURTH SECTION: Key bindings:
689 Section names you must provide:
691 :main For editing window
692 :prompt For prompt lines
693 :query For single-character query lines
694 :querya Singe-character query for quote
695 :querysr Search & Replace single-character query
697 Other sections may be given as well for organization purposes or for
698 use with the '-keymap' option.
701 :inherit name To copy the named section into the current one
702 :delete key To delete a key sequence from the current section
706 Use ^@ through ^_ and ^? for Ctrl chars
708 Use a TO b to generate a range of characters
710 You can also use termcap string capability names. For example:
728 Simple macros can be made by comma seperating 2 or more command names. For
731 eof,bol ^T Z Goto beginning of last line
733 Also quoted matter is typed in literally:
735 bol,">",dnarw .k1 Quote news article line
737 Macros may cross lines if they end with ,
739 Commands or named macros may be created with :def. For example, you can
744 To define a command foo which will goto the beginning of the last line.
746 :windows Bindings common to all windows
747 #HOOK#4 common keybindings
748 type ^@ TO ÿ Type a character
749 abort ^C Abort window
750 arg ^[ \ Repeat next command
751 explode ^[ I Show all windows or show only one window
756 hnext ^[ . Next help window
757 hprev ^[ , Previous help window
760 math ^[ ^M Calculator
761 nextw ^[ N Goto next window
770 play ^[ 0 TO 9 Execute macro
771 prevw ^[ P Goto previous window
774 query ^[ ? Macro query insert
775 record ^[ ( Record a macro
776 retype ^L Refresh screen
781 stop ^[ ) Stop recording
786 msg,"Entered bracketed paste mode",rtn ^[ [ 2 0 0 ~
787 helpcard,rtn,keymap,"main",rtn,msg,rtn ^[ [ 2 0 1 ~
788 helpcard,rtn,keymap,"main",rtn ^D
793 keymap,"prompt",rtn,msg,rtn,rtn ^M
794 msg,"Entered bracketed paste mode",rtn ^[ [ 2 0 0 ~
795 keymap,"prompt",rtn,msg,rtn ^[ [ 2 0 1 ~
796 keymap,"prompt",rtn ^D
798 :main Text editing window
801 helpcard,"Paste",rtn,keymap,"Paste",rtn ^[ [ 2 0 0 ~
804 #HOOK#5 main keybindings
806 begin_marking,uparw,toggle_marking ^[ [ 1 ; 2 A xterm shift-up mark
807 begin_marking,dnarw,toggle_marking ^[ [ 1 ; 2 B xterm shift-down mark
808 begin_marking,rtarw,toggle_marking ^[ [ 1 ; 2 C xterm shift-right mark
809 begin_marking,ltarw,toggle_marking ^[ [ 1 ; 2 D xterm shift-left mark
810 begin_marking,bol,toggle_marking ^[ [ 1 ; 2 H xterm shift-home
811 begin_marking,eol,toggle_marking ^[ [ 1 ; 2 F xterm shift-end
812 begin_marking,bof,toggle_marking ^[ [ 1 ; 6 H xterm shift-ctrl-home
813 begin_marking,eof,toggle_marking ^[ [ 1 ; 6 F xterm shift-ctrl-end
818 :def ispellfile filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype
819 :def ispellword psh,nextword,markk,prevword,markb,filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;tr -d <ispell.tmp '\\012';/bin/rm ispell.tmp",rtn,retype,nextword
822 :def aspellfile filt,"SPLTMP=ispell.tmp;cat >$SPLTMP;aspell -x -c $SPLTMP </dev/tty >/dev/tty;cat $SPLTMP;/bin/rm $SPLTMP",rtn,retype
823 :def aspellword psh,nextword,markk,prevword,markb,filt,"SPLTMP=ispell.tmp;cat >$SPLTMP;aspell -x -c $SPLTMP </dev/tty >/dev/tty;tr -d <$SPLTMP '\\012';/bin/rm $SPLTMP",rtn,retype,nextword
826 @SPELL@file ^[ T Spell check word
839 home ^[ [ 1 ~ Putty, Linux, Cygwin
840 home ^[ [ H Xterm, Konsole, SCO
841 home ^[ O H gnome-terminal
844 eol ^[ [ 4 ~ Putty, Linux, Cygwin, ssh
845 eol ^[ [ F Xterm, Konsole, SCO
846 eol ^[ O F gnome-terminal
849 ask,query,lose,query,abortbuf ^X Exit after many questions
850 ask,query,exsave ^X Exit
853 backw ^[ H Backspace word
857 bknd ^[ ' Shell window
858 bof ^[ Y Goto beginning of file
861 home .kh Goto beginning of line
865 center ^[ ^C Center line
867 delch .kD Delete character
869 deleol ^[ K Delete to end of line
872 delw ^[ ^D Delete word
878 toggle_marking ^^ Marking
879 edit ^[ E Edit a file
882 eof ^[ V Go to end of file
885 eol .kH Go to end of line
890 execmd ^[ X Prompt for command to execute
891 execmd ^[ ^X Prompt for command to execute
892 execmd ^[ x Prompt for command to execute
893 ffirst,uparw,eol ^W Find first
897 filt ^[ / Filter block though file
898 fmtblk ^J Format paragraphs in block
899 groww ^[ G Grow window
902 insc .kI Insert a space
903 insf ^R Insert a file
904 isrch ^[ S Forward incremental search
905 isrch ^[ ^S Forward incremental search
906 isrch ^[ s Forward incremental search
907 line ^[ L Goto line no.
915 mode ^[ ^[ Options menu
916 nextword ^@ Goto next word
918 prevword ^Z Previous word
919 picokill ^K Pico kill function
920 quote ` Enter Ctrl chars
921 quote8 ^\ Enter Meta chars
922 redo ^[ = Redo changes
923 rsrch ^[ R Backward incremental search
924 rsrch ^[ ^R Backward incremental search
925 rsrch ^[ r Backward incremental search
930 run ^[ ! Run a program in a window
931 stat ^C Cursor position status
934 crawlr ^[ > Pan right
935 shrinkw ^[ J Shrink window
938 splitw ^[ ^O Split window
940 tag ^[ ; Tags file search
941 tomatch ^[ ] To matching delimiter
942 undo ^[ - Undo changes
948 yankpop ^[ U Select yanked text
952 :prompt Prompt windows
962 keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn ^[ P
963 keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn ^[ p
964 keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn ^[ [ 2 0 0 ~
966 :menu Selection menus
973 bolmenu ^[ [ 1 ~ Putty, Linux, Cygwin
974 bolmenu ^[ [ H Xterm, Konsole
975 bolmenu ^[ O H gnome-terminal
976 bolmenu ^[ [ 7 ~ RxVT
978 eolmenu ^[ [ 4 ~ Putty, Linux, Cygwin, ssh
979 eolmenu ^[ [ F Xterm, Konsole
980 eolmenu ^[ O F gnome-terminal
981 eolmenu ^[ [ 8 ~ RxVT
1004 pgdnmenu .kN Screen down
1007 pgupmenu .kP Screen up
1025 :query Single-key query window
1028 :querya Single-key query window for quoting
1031 :querysr Search & replace query window