1 $MirOS: contrib/code/jupp/jstarrc.in,v 1.25 2017/01/11 00:41:18 tg Exp $
3 Initialization file for JOE
6 JOE looks for this file in:
8 2 - @jrcbefore@jstarrc@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
25 -marking Text between ^KB and cursor is highlighted (use with -lightoff)
26 -asis Characters 128 - 255 shown as-is
27 -force Force final newline when files are saved
28 -nobackups If you don't want backup files to be created
29 -lightoff Turn off highlighting after block copy or move
30 -exask ^KX always confirms file name
31 -beep Beep on errors and when cursor goes past extremes
32 -nosta Disable top-most status line
33 -keepup %k and %c status line escape sequences updated frequently
34 -pg nnn No. lines to keep for PgUp/PgDn
35 -csmode ^KF after a pervious search does a ^L instead
36 -backpath path Directory to store backup files
37 (do not use quotes, and remove the comment after path)
38 -nonotice Disable copyright notice
39 -noxon Attempt to turn off ^S/^Q processing
40 -orphan Put extra files given on command line in orphaned buffers
42 -dopadding Output pad characters (for when there is no tty handshaking)
43 -lines nnn Set no. screen lines
44 -baud nnn Set baud rate for terminal optimizations
45 -columns nnn Set no. screen columns
46 -help Start with help on
47 -skiptop nnn Don't use top nnn lines of the screen
49 -notite Don't send terminal initialization and termination strings: prevents
50 restoration of screen on exit.
52 -pastetite Enter bracketed paste mode automatically for TERM=xterm-xfree86
54 -usetabs Use tabs to help optimize screen update.
56 -assume_color Assume terminal has ANSI color support even if termcap/terminfo entry
57 says that it doesn't. This only applies if the terminal otherwise
58 looks like an ANSI terminal (support bold and capability starts with
61 -guess_crlf Automatically detect MS-DOS files and set -crlf appropriately
63 -guess_indent Guess indent character (tab or space).
65 -menu_explorer Stay in menu system when a directory is selected (otherwise
66 directory is added to path and menu is closed).
68 -icase Search is case insensitive by default.
72 Status line definition strings. -lmsg defines the left-justified string,
73 and -rmsg defines the right-justified string. The first character of -rmsg
74 is the background fill character. -hmsg (3.1jupp15) defines the help hint
75 (only about a dozen chars) displayed next to the copyright notice in the
76 initial status line. The following escape sequences can be used in these
81 %T O for overtype mode, I for insert mode
82 %W W if wordwrap is enabled
83 %I A if autoindent is enabled
84 %X Rectangle mode indicator
86 %m '(Modified)' if file has been changed
87 %* '*' if file has been changed
88 %R Read-only indicator
91 %o Byte offset into file
92 %O Byte offset into file in hex
93 %a Ascii value of character under cursor
94 %A Ascii value of character under cursor in hex
95 %p Percent of file cursor is at
97 %k Entered prefix keys
98 %S '*SHELL*' if there is a shell running in window
99 %M Macro recording message
102 The formatting escape sequences may also be given:
110 -lmsg \i%k%T%W%I%X %n %m%y%R %M
111 -rmsg %S Row %r Col %c %t Ctrl-J for help
114 SECOND SECTION: File name dependant local option settings:
116 Each line with '*' in the first column indicates the modes which should be
117 files which match the regular expression. If more than one regular
118 expression matches the file name, than the last matching one is chosen.
120 Here is a list of modes which can be set:
122 -utf8 File is UTF-8 coded
124 -syntax name Specify syntax (syntax file called
125 'name.jsf' will be loaded)
127 -highlight Enable highlighting
129 -smarthome Home key first moves cursor to beginning of line,
130 then if hit again, to first non-blank character.
132 -indentfirst Smart home goes to first non-blank character first,
133 instead of going the beginning of line first.
135 -smartbacks Backspace key deletes 'istep' number of
136 'indentc's if cursor is at first non-space
141 -indentc nnn Indentation character (32 for space, 9 for tab)
143 -istep nnn Number of indentation columns
145 -spaces TAB inserts spaces instead of tabs.
147 -purify Fix indentation if necessary for rindent, lindent and backs
148 (for example if indentation uses a mix of tabs and spaces,
149 and indentc is space, indentation will be converted to all
152 -crlf File uses CR-LF at ends of lines
156 -autoindent Auto indent
158 -overwrite Overtype mode
160 -picture Picture mode (right arrow can go past end of lines)
162 -lmargin nnn Left margin
164 -rmargin nnn Right margin
167 -french One space after '.', '?' and '!' for wordwrap
168 and paragraph reformat instead of two. Joe
169 does not change the spacing you give, but
170 sometimes it must put spacing in itself. This
171 selects how much is inserted.
173 -linums Enable line numbers on each line
175 -rdonly File is read-only
177 -keymap name Keymap to use if not 'main'
179 -lmsg Status line definition strings-
180 -rmsg see previous section for more info.
182 -mnew macro Macro to execute when new files are loaded
183 -mold macro Macro to execute when existing files are loaded
184 -msnew macro Macro to execute when new files are saved
185 -msold macro Macro to execute when existing files are saved
187 -square Rectangular block mode
189 Macros for the above options are in the same format as in the key
190 binding section below- but without the key name strings.
192 Default local options
202 #HOOK#1 global/default flags
207 Assume it's a text file and, except in jupp, we want wordwrap on.
210 Filename with '.' is probably not a text file.
213 === Patterns with multiple wildcards
214 Order is latest match wins, so...
256 === C, C++, Objective-C
311 +#!\+\[ ]\+\[a-z/]/\+tcsh\>
315 +#!\+\[ ]\+\[a-z/]/env\+\[ ]\+tcsh\>
346 +Index: \*\n======================================================
351 +Index: \*\ndiff\*\n--- \*\n+++\[ ]
356 +\[=?]\*\n--- \*\n+++\[ ]
361 +diff\*\n--- \*\n+++\[ ]
366 +diff --git\*\nindex\*\n--- \*\n+++\[ ]
374 Not quite eMail but still RFC822
469 +#!\+\[ ]\+\[a-z/]/perl
473 +#!\+\[ ]\+\[a-z/]/env\+\[ ]perl
490 +#!\+\[ ]\+\[a-z/]/python
499 +#!\+\[ ]\+\[a-z/]/env\+\[ ]python
507 === Bourne, Korn, POSIX Shell
516 +#!\+\[ ]\+\[a-z/]/\+\[bd]\+ash\>
520 +#!\+\[ ]\+\[a-z/]/env\+\[ ]\+\[bd]\+ash\>
524 +#!\+\[ ]\+\[a-z/]/\+\[a-z]ksh\+\[0-9._-]\>
528 +#!\+\[ ]\+\[a-z/]/env\+\[ ]\+\[a-z]ksh\+\[0-9._-]\>
568 === Text (except in jupp)
578 #HOOK#2 filename matching
580 THIRD SECTION: Named help screens:
582 Use \i to turn on/off inverse video
583 Use \u to turn on/off underline
584 Use \b to turn on/off bold
585 Use \d to turn on/off dim
586 Use \f to turn on/off flash
589 \i Help Screen \|turn off with ^J more help with ESC . (^[.) \i
590 \i \i\|\uCURSOR\u \|\uGO TO\u \|\uBLOCK\u \|\uDELETE\u \|\uMISC\u \|\uEXIT\u \|\i \i
591 \i \i\|^S left ^D right \|^R prev. screen \|^KB begin \|^G char \|^B reformat \|^KX save \|\i \i
592 \i \i\|^E up ^X down \|^C next screen \|^KK end \|^Y line \|^V overtype \|^KQ abort \|\i \i
593 \i \i\|^A previous word \|^QS beg. of line \|^KV move \|^T >word \|^] refresh \|^KZ shell \|\i \i
594 \i \i\|^F next word \|^QD end of line \|^KC copy \|^QY >line \|^O options \|\uFILE\u \|\i \i
595 \i \i\|\uSEARCH\u \|^QR top of file \|^KW file \|^U undo \|\uSPELL\u \|^KE new \|\i \i
596 \i \i\|^QF find text \|^QC end of file \|^KY delete \|^^ redo \|^QN word \|^KR insert\|\i \i
597 \i \i\|^L find next \|^QI to line No. \|^K/ filter \| \|^QL file \|^KD save \|\i \i
601 \i Help Screen \|turn off with ^J prev. screen ^[, next screen ^[. \i
602 \i \i\|^KO Split the window in half \|^KE Load file into window \|\i \i
603 \i \i\|^KG Make current window bigger \|^KT Make current window smaller \|\i \i
604 \i \i\|^KN Go to the window below \|^KP Go to the window above \|\i \i
605 \i \i\|^KQ Eliminate the current window \|^KI Show all windows / Show one window\|\i \i
609 \i Help Screen \|turn off with ^J prev. screen ^[, next screen ^[. \i
610 \i \i\|\uMACROS\u \|\uMISC\u \|\uSCROLL\u \|\uSHELL\u \|\uGOTO\u \|\uI-SEARCH\u \|\i \i
611 \i \i\|^[( Record \|^Q? status \|^Q. Right \|^K' Window \|^QB to ^KB \|^[R Backwards \|\i \i
612 \i \i\|^[) Stop \|^QQ repeat \|^Q, Left \|^[! Command \|^QK to ^KK \|^[S Forwards \|\i \i
613 \i \i\|^[ 0-9 Play \|^QM Math \| \|\uQUOTE\u \|\uDELETE\u \|\uBOOKMARKS\u \|\i \i
614 \i \i\|^[? Query \|^KA Center line \| \|^P Ctrl- \|^[Y yank \|^K 0-9 Set \|\i \i
615 \i \i\|^[D Dump \|^[H Message \| \|^\\ Meta- \|^[O word< \|^Q 0-9 Goto \|\i \i
619 \i Help Screen \|turn off with ^J prev. screen ^[, next screen ^[. \i
620 \i \i\|\uGOTO\u \|\uINDENT\u \|\uCOMPILING\u \| \|\i \i
621 \i \i\|^Q[ Matching ( [ { \|^K. more \|^[C Compile and parse errors \| \|\i \i
622 \i \i\|^QP Previous place \|^K, less \|^[E Parse errors \| \|\i \i
623 \i \i\|^K= Next place \| \|^[= Goto next error \| \|\i \i
624 \i \i\|^K; Tags file srch \| \|^[- Goto previous error \| \|\i \i
628 \i Help Screen \|turn off with ^J prev. screen ^[, next screen ^[. \i
629 \i \iSpecial search sequences: \|\i \i
630 \i \i \\^ \\$ matches beg./end of line \\? match any single char \|\i \i
631 \i \i \\< \\> matches beg./end of word \\* match 0 or more chars \|\i \i
632 \i \i \\c matches balanced C expression \\\\ matches a \\ \|\i \i
633 \i \i \\[..] matches one of a set \\n matches a newline \|\i \i
634 \i \i \\+ matches 0 or more of the character which follows the \\+ \|\i \i
635 \i \iSpecial replace sequences: \|\i \i
636 \i \i \\& replaced with text which matched search string \|\i \i
637 \i \i \\0 - 9 replaced with text which matched Nth \\*, \\?, \\c, \\+, or \\[..] \|\i \i
638 \i \i \\\\ replaced with \\ \\n replaced with newline \|\i \i
642 \i Help Screen \|turn off with ^J prev. screen ^[, next screen ^[. \i
643 \i \i Hit TAB at file name prompts to generate menu of file names \|\i \i
644 \i \i Or use up/down keys to access history of previously entered names \|\i \i
645 \i \i Special file names: \|\i \i
646 \i \i !command Pipe in/out of a shell command \|\i \i
647 \i \i >>filename Append to a file \|\i \i
648 \i \i - Read/Write to/from standard I/O \|\i \i
649 \i \i filename,START,SIZE Read/Write a part of a file/device \|\i \i
650 \i \i Give START/SIZE in decimal (255), octal (0377) or hex (0xFF) \|\i \i
654 \i Help Screen \|turn off with ^J prev. screen ^[, \i
655 \i \i For bug reports and other information, refer to: \uhttp://mirbsd.de/jupp\u \|\i \i
658 #HOOK#3 additional help screens
661 \i Help Screen turn off with ^J prev. screen ^[, \uCharacter Map\u \i
662 \i \i Dec Hex \u 0123 4567 89AB CDEF 0123 4567 89AB CDEF \u Hex Dec \i \i
664 \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
665 \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
666 \i \i 32 20 | !"# $%&' ()*+ ,-./ ¡¢£ ¤¥¦§ ¨©ª« ¬®¯ | A0 160 \i \i
667 \i \i 48 30 | 0123 4567 89:; <=>? °±²³ ´µ¶· ¸¹º» ¼½¾¿ | B0 176 \i \i
668 \i \i 64 40 | @ABC DEFG HIJK LMNO ÀÁÂÃ ÄÅÆÇ ÈÉÊË ÌÍÎÏ | C0 192 \i \i
669 \i \i 80 50 | PQRS TUVW XYZ[ \\]^_ ÐÑÒÓ ÔÕÖ× ØÙÚÛ ÜÝÞß | D0 208 \i \i
670 \i \i 96 60 | `abc defg hijk lmno àáâã äåæç èéêë ìíîï | E0 224 \i \i
671 \i \i 112 70 | pqrs tuvw xyz{ |}~
\7f ðñòó ôõö÷ øùúû üýþÿ | F0 240 \i \i
676 \i \i \u\bPaste Mode\b\u turn off with \b^D\b or \b^[[201~\b \i \i
679 FOURTH SECTION: Key bindings:
681 Section names you must provide:
683 :main For editing window
684 :prompt For prompt lines
685 :query For single-character query lines
686 :querya Singe-character query for quote
687 :querysr Search & Replace single-character query
689 Other sections may be given as well for organization purposes or for
690 use with the '-keymap' option.
693 :inherit name To copy the named section into the current one
694 :delete key To delete a key sequence from the current section
698 Use ^@ through ^_ and ^? for Ctrl chars
700 Use a TO b to generate a range of characters
702 You can also use termcap string capability names. For example:
720 Simple macros can be made by comma seperating 2 or more command names. For
723 eof,bol ^T Z Goto beginning of last line
725 Also quoted matter is typed in literally:
727 bol,">",dnarw .k1 Quote news article line
729 Macros may cross lines if they end with ,
731 :windows Bindings common to all windows
732 #HOOK#4 common keybindings
779 msg,"Entered bracketed paste mode",rtn ^[ [ 2 0 0 ~
780 helpcard,rtn,keymap,"main",rtn,msg,rtn ^[ [ 2 0 1 ~
781 helpcard,rtn,keymap,"main",rtn ^D
786 msg,"Entered bracketed paste mode",rtn ^[ [ 2 0 0 ~
787 helpcard,rtn,keymap,"cua",rtn,msg,rtn ^[ [ 2 0 1 ~
788 helpcard,rtn,keymap,"cua",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
816 :def ispellfile filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype
817 :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
820 :def aspellfile filt,"SPLTMP=ispell.tmp;cat >$SPLTMP;aspell -x -c $SPLTMP </dev/tty >/dev/tty;cat $SPLTMP;/bin/rm $SPLTMP",rtn,retype
821 :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
831 :def compile querysave,query,scratch,"* Build Log *",rtn,markb,eof," ",markk,blkdel,build
842 home ^[ [ 1 ~ Putty, Linux, Cygwin
843 home ^[ [ H Xterm, Konsole, SCO
844 home ^[ O H gnome-terminal
847 eol ^[ [ 4 ~ Putty, Linux, Cygwin, ssh
848 eol ^[ [ F Xterm, Konsole, SCO
849 eol ^[ O F gnome-terminal
852 rtarw,prevword,markb,nextword,markk ^K T
853 rtarw,prevword,markb,nextword,markk ^K ^T
854 rtarw,prevword,markb,nextword,markk ^K t
877 insf,"!date '+%I:%M %p'",rtn ^[ !
878 insf,"!date '+%b %d, %Y'",rtn ^[ @
880 psh,prevword,nextword,nextword,markk,prevword,markb,setmark,":",
881 prevword,nextword,blkmove,markk,prevword,markb,gomark,":",blkmove,nextword ^[ t
883 psh,drop,fwrdc,query,markk,blkdel ^Q T Cut to char
884 psh,drop,fwrdc,query,markk,blkdel ^Q t Cut to char
885 psh,drop,fwrdc,query,markk,blkdel ^Q ^T Cut to char
888 quote8 ^\ Quote Meta chars
889 quote ^P Quote Ctrl chars
893 bknd ^K ' Shell window
897 blkcpy ^K C Copy marked block
900 blkdel ^K Y Delete marked block
903 blkmove ^K V Move marked block
906 blksave ^K W Save marked block
909 bof ^Q R Goto beginning of file
913 home .kh Goto beginning of line
926 center ^K A Center line
932 delch .kD Delete character
934 deleol ^Q Y Delete to end of line
937 dellin ^Y Delete entire line
938 delw ^T Delete word to right
944 edit ^K E Edit a file
947 eof ^Q C Go to end of file
951 eol .kH Go to end of line
963 execmd ^[ x Prompt for command to execute
964 execmd ^[ X Prompt for command to execute
965 execmd ^[ ^X Prompt for command to execute
966 exsave ^K X Save and exit
969 ffirst ^Q F Find first
972 qrepl ^Q A Search & replace
975 filt ^K / Filter block
977 format ^B Format paragraph
982 groww ^K G Grow window
986 insf ^K R Insert a file
989 macros ^[ d Dump macros
991 mode,"T" ^V Insert/Overtype
993 lindent ^K , Indent to left
994 line ^Q I Goto line no.
1001 markb ^K B Set beginning of marked block
1004 markk ^K K Set end of marked block
1011 nextpos ^K = Goto next position in position history
1012 nextword ^F Goto next word
1019 prevword ^A Previous word
1020 redo ^^ Redo changes
1021 rindent ^K . Indent to right
1033 shrinkw ^K T Shrink window
1036 splitw ^K O Split window
1039 stat ^Q ? Show status
1041 tomarkb ^Q B Go to beginning of marked block
1044 tomarkk ^Q K Go to end of marked block
1047 rvmatch ^Q [ Goto matching parenthasis
1051 undo ^U Undo changes
1059 :prompt Prompt windows
1064 keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn ^[ P
1065 keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn ^[ p
1066 keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn ^[ [ 2 0 0 ~
1068 :menu Selection menus
1074 bolmenu ^[ [ 1 ~ Putty, Linux, Cygwin
1075 bolmenu ^[ [ H Xterm, Konsole
1076 bolmenu ^[ O H gnome-terminal
1077 bolmenu ^[ [ 7 ~ RxVT
1079 eolmenu ^[ [ 4 ~ Putty, Linux, Cygwin, ssh
1080 eolmenu ^[ [ F Xterm, Konsole
1081 eolmenu ^[ O F gnome-terminal
1082 eolmenu ^[ [ 8 ~ RxVT
1109 pgdnmenu .kN Screen down
1112 pgupmenu .kP Screen up
1131 :query Single-key query window
1134 :querya Single-key query window for quoting
1137 :querysr Search & replace query window
1140 :cua Undo/Cut/Copy/Paste, CUA style
1142 #HOOK#6 extra keybindings in CUA mode
1147 helpcard,"Paste",rtn,keymap,"Pastecua",rtn ^[ P
1148 helpcard,"Paste",rtn,keymap,"Pastecua",rtn ^[ p
1149 helpcard,"Paste",rtn,keymap,"Pastecua",rtn ^[ [ 2 0 0 ~