1 $MirOS: contrib/code/jupp/jpicorc.in,v 1.35 2018/10/20 16:11:52 tg Exp $
2
3                         Initialisation file for JOE
4                                 Super Pico
5
6 This file must be written in the 8-bit encoding, not UTF-8.
7
8 JOE looks for this file in:
9	1 - $HOME/.jpicorc
10	2 - @jrcbefore@jpicorc@jrcafter@
11
12 This file can include other files by placing the following include command
13 in the first column (comment lines start with space or tab):
14
15 :include filename
16
17 FIRST SECTION: Default global options (these options can also be specified
18 on the command line. Also, the NOXON, LINES, COLUMNS, DOPADDING and BAUD
19 options can be specified in environment variables):
20
21 Put each option you want set in the first column:
22
23 -option	Sets the option
24 --option	Clears the option
25
26 -mid		Cursor is recentred when scrolling is necessary
27-marking	Text between ^KB and cursor is highlighted; use with:
28-lightoff	Turn off highlighting after block copy or move
29 -autoswap	Swap markb with markk when necessary
30 -asis		Characters 128 - 255 shown as-is
31 -hex		Hex editing mode
32-nobackups	If you don't want backup files to be created
33 -backpath path
34		Where to store backup files (do not quote, no comment after)
35-force		Force final newline when files are saved
36-exask		^KX always confirms file name
37 -beep		Beep on errors and when cursor goes past extremes
38 -nosta		Disable top-most status line
39 -keepup	%k and %c status line escape sequences updated frequently
40 -pg nnn	No. lines to keep for PgUp/PgDn
41 -csmode	^KF after a pervious search does a ^L instead
42 -nonotice	Disable copyright notice
43 -noxon		Attempt to turn off ^S/^Q processing
44 -orphan	Put extra files given on command line in orphaned buffers
45		instead of in windows
46 -dopadding	Output pad characters (for when there is no tty handshaking)
47 -lines nnn	Set no. screen lines
48 -baud nnn	Set baud rate for terminal optimisations
49 -columns nnn	Set no. screen columns
50-help		Start with help on
51 -skiptop nnn	Don't use top nnn lines of the screen
52
53-notite		Don't send terminal initialisation and termination strings:
54		prevents restoration of screen on exit
55
56-pastetite	Enter bracketed paste mode automatically for TERM=xterm-xfree86
57
58 -usetabs	Use tabs to help optimise screen update
59
60-assume_color	Assume terminal has ANSI colour support even if its termcap
61		or terminfo entry says that it doesn't. This only applies if
62		the terminal otherwise looks like an ANSI terminal (supports
63		bold and capability starts with ESC [).
64
65-guess_crlf	Automatically detect MS-DOS files and set -crlf appropriately
66
67-guess_indent	Guess indent character (tab or space)
68
69-menu_explorer	Stay in menu system when a directory is selected (otherwise
70		directory is added to path and menu is closed)
71
72 -icase		Search is case-insensitive by default
73 -wrap		Search wraps
74
75 Status line definition strings. -lmsg defines the left-justified string,
76 and -rmsg defines the right-justified string. The first character of -rmsg
77 is the background fill character. -hmsg (3.1jupp15) defines the help hint
78 (only about a dozen chars) displayed next to the copyright notice in the
79 initial status line (inverted by default, unless starting with exactly \i).
80 The following escape sequences can be used in these strings:
81
82	%t	12-hour time
83	%u	24-hour time
84	%T	O for overtype mode, I for insert mode
85	%W	W if wordwrap is enabled
86	%I	A if autoindent is enabled
87	%X	rectangle mode indicator
88	%n	file name
89	%m	'(Modified)' if file has been changed
90	%*	'*' if file has been changed
91	%R	read-only indicator
92	%r	row (line) number
93	%c	column number
94	%o	byte offset into file (decimal)
95	%O	byte offset into file in hex
96	%a	ASCII value of character under cursor (decimal)
97	%A	ASCII value of character under cursor in hex
98	%p	percent of file cursor is at
99	%l	number of lines in file
100	%k	entered prefix keys
101	%S	'*SHELL*' if there is a shell running in window
102	%M	macro recording message
103	%y	syntax
104	%x	context (first non-indented line going backwards)
105
106 These formatting escape sequences may also be given:
107
108	\i	Inverse
109	\u	Underline
110	\b	Bold
111	\d	Dim
112	\f	Blink
113
114-lmsg \i%k%T%W%I%X %n %m%y%R %M
115-rmsg  %S Row %r Col %c %t  Ctrl-G for help
116-hmsg \i\f\bHelp: ^G\b\f
117
118 SECOND SECTION: filename-dependent local option settings:
119
120 Each line with '*' in the first column indicates the modes which should be
121 set for files whose name matches the regular expression. If more than one
122 regular expression matches the file name, then the last matching one is
123 chosen.
124
125 A file contents regular expression may also be specified on a separate line
126 with '+regex'. If this regular expresssion is given, then both the file name
127 regex and the file contents regex must match for the options to apply.
128
129 Here is a list of modes which can be set:
130
131 -keymap name		Keymap to use if not 'main'
132 -square		Rectangular block mode
133 -overwrite		Overtype mode
134 -picture		Picture mode (cursor right can go past end of line)
135 -linums		Show line numbers in front of each line
136 -rdonly		File is read-only
137 -crlf			File uses CR-LF at end of lines
138 -encoding utf8		File is UTF-8 encoded
139 -syntax name		Specify syntax (syntax file called
140			'name.jsf' will be loaded)
141 -highlight		Enable syntax highlighting
142
143 -french		One space after '.', '?' and '!' for wordwrap and
144			paragraph reformat instead of two. JOE does not
145			change the spacing you give, but sometimes it must
146			put spacing in itself. This selects how much is
147			inserted in those cases.
148 -purify		Fixup indentation if necessary for rindent, lindent
149			and backs (for example if indentation uses a mix of
150			tabs and spaces, and indentc is space, indentation
151			will be converted to all spaces)
152
153 -lmargin nnn		Left margin
154 -rmargin nnn		Right margin
155 -tab nnn		Tab width
156 -indentc nnn		Indentation character (32 = space, 9 = tab)
157 -istep nnn		Amount of 'indentc's per indentation level
158 -spaces		Tab key inserts spaces instead of tabs
159 -wordwrap		Wordwrap
160 -autoindent		Auto indent
161 -smartbacks		Backspace key deletes 'istep' number of 'indentc's
162			if cursor is at first non-space character
163 -smarthome		Home key first moves cursor to beginning of line,
164			then if hit again, to first non-blank character
165 -indentfirst		Smart home goes to first non-blank character first,
166			instead of to the beginning of the line first
167
168 -lmsg			Status line definition strings;
169 -rmsg			see previous section for more info
170
171 -mnew macro		Macro to execute when new files are loaded
172 -mold macro		Macro to execute when existing files are loaded
173 -msnew macro		Macro to execute when new files are saved
174 -msold macro		Macro to execute when existing files are saved
175
176 Macros for the above options are in the same format as in the key
177 binding section below but without the key name strings.
178
179 Default local options:
180-highlight
181-french
182-indentc 9
183-istep 1
184-purify
185-smartbacks
186-tab 8
187--wordwrap
188
189 #HOOK#1 global/default flags
190
191 === Generic files
192 No '.' in filename?
193*
194 Assume it's a text file and, except in jupp, we want wordwrap on.
195-wordwrap
196
197 Filename with '.' is probably not a text file.
198*.*
199
200 Binary file
201*.bin
202--crlf
203--guess_crlf
204-encoding ascii
205-hex
206
207 === Patterns with multiple wildcards
208 Order is latest match wins, so...
209*/patch-*
210-highlight
211-syntax diff
212
213*
214+Only in[ ]
215-highlight
216-syntax diff
217
218*
219+Nur in[ ]
220-highlight
221-syntax diff
222
223*
224+\[1-9]\+\[0-9]\[cda]
225-highlight
226-syntax diff
227
228*.sh*
229-syntax sh
230
231*.ksh*
232-syntax sh
233
234*.mksh*
235-syntax sh
236
237*.bash*
238-syntax sh
239
240*tmp/mutt-*
241-wordwrap
242-syntax mail
243
244*tmp/pico.*
245-wordwrap
246-syntax mail
247
248*/mail/*
249-syntax mail
250
251*/patches/*
252-highlight
253-syntax diff
254
255 === Assembly
256*.asm
257-syntax asm
258
259*.S
260-syntax asm
261
262*.s
263-syntax asm
264
265 === C, C++, Objective-C
266*.C
267-syntax c
268
269*.c
270-syntax c
271
272*.cc
273-syntax c
274
275*.cpp
276-syntax c
277
278*.cxx
279-syntax c
280
281*.c++
282-syntax c
283
284*.h
285-syntax c
286
287*.hh
288-syntax c
289
290*.hpp
291-syntax c
292
293*.h++
294-syntax c
295
296*.m
297-syntax c
298
299*.nxc
300-syntax c
301
302 === C Shell
303*.csh
304-syntax csh
305
306*.login
307-syntax csh
308
309*.logout
310-syntax csh
311
312*.tcsh
313-syntax csh
314
315*.tcshrc
316-syntax csh
317
318*
319+#!\+\[	 ]\+\[/a-z0-9._-]/\+tcsh\>
320-syntax csh
321
322*
323+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]\+tcsh\>
324-syntax csh
325
326 === Diff
327*.diff
328-highlight
329-syntax diff
330
331*.patch
332-highlight
333-syntax diff
334
335*.rej
336-highlight
337-syntax diff
338
339*.debdiff
340-highlight
341-syntax diff
342
343*
344+---\[ ]
345-highlight
346-syntax diff
347
348*
349+***\[ ]
350-highlight
351-syntax diff
352
353*
354+Index: \*\n======================================================
355-highlight
356-syntax diff
357
358*
359+Index: \*\ndiff\*\n--- \*\n+++\[ ]
360-highlight
361-syntax diff
362
363*
364+\[=?]\*\n--- \*\n+++\[ ]
365-highlight
366-syntax diff
367
368*
369+diff\*\n--- \*\n+++\[ ]
370-highlight
371-syntax diff
372
373*
374+diff --git\*\nindex\*\n--- \*\n+++\[ ]
375-highlight
376-syntax diff
377
378 === eMail
379*.eml
380-syntax mail
381
382 Not quite eMail but still RFC822
383*.mht
384-syntax mail
385
386 === FORTRAN
387*.f
388-syntax fortran
389
390*.for
391-syntax fortran
392
393*.FOR
394-syntax fortran
395
396*.f77
397-syntax fortran
398
399*.F77
400-syntax fortran
401
402*.f90
403-syntax fortran
404
405*.F90
406-syntax fortran
407
408 === GNU autoconf
409*.ac
410-syntax conf
411
412*.am
413-syntax conf
414
415 === HTML
416*.htm
417-encoding utf8
418-syntax html
419
420*.html
421-encoding utf8
422-syntax html
423
424 === Java
425*.java
426-encoding utf8
427-syntax java
428
429 === JOE Syntax File
430*.jsf
431-syntax conf
432
433 === LISP
434*.lisp
435-syntax lisp
436
437*.lsp
438-syntax lisp
439
440*.el
441-syntax lisp
442
443 === Make
444*akefile
445-syntax conf
446
447*AKEFILE
448-syntax conf
449
450 === Mason
451*.mas
452-syntax mason
453
454 === Pascal
455*.p
456-syntax pascal
457
458*.pas
459-syntax pascal
460
461 === Perl
462*.pl
463-syntax perl
464
465*.pm
466-syntax perl
467
468*
469+#!\+\[	 ]\+\[/a-z0-9._-]/perl
470-syntax perl
471
472*
473+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]perl
474-syntax perl
475
476 === PHP
477*.php
478-syntax php
479
480 === Python
481*.py
482-encoding utf8
483-syntax python
484-tab 4
485-indentc 32
486-istep 4
487-spaces
488
489*
490+#!\+\[	 ]\+\[/a-z0-9._-]/python
491-encoding utf8
492-syntax python
493-tab 4
494-indentc 32
495-istep 4
496-spaces
497
498*
499+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]python
500-encoding utf8
501-syntax python
502-tab 4
503-indentc 32
504-istep 4
505-spaces
506
507 === Bourne, Korn, POSIX Shell
508*profile
509-syntax sh
510
511*
512+:\[	 \n]
513-syntax sh
514
515*
516+#!\+\[	 ]\+\[/a-z0-9._-]/\+\[bda]sh\>
517-syntax sh
518
519*
520+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]\+\[bda]sh\>
521-syntax sh
522
523*
524+#!\+\[	 ]\+\[/a-z0-9._-]/\+\[a-z]ksh\+\[0-9._-]\>
525-syntax sh
526
527*
528+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]\+\[a-z]ksh\+\[0-9._-]\>
529-syntax sh
530
531 === TCL
532*.tcl
533-syntax tcl
534
535 === TeX
536*.cls
537-syntax tex
538
539*.def
540-syntax tex
541
542*.dtx
543-syntax tex
544
545*.sty
546-syntax tex
547
548*.tex
549-syntax tex
550
551 === Verilog
552*.v
553-syntax verilog
554-istep 2
555
556*.vh
557-syntax verilog
558-istep 2
559
560 === VHDL
561*.vhd
562-syntax vhdl
563-istep 2
564
565 === XML
566*.xml
567-encoding utf8
568-syntax xml
569
570*.xsl
571-encoding utf8
572-syntax xml
573
574 === Text (except in jupp)
575*.asc
576-wordwrap
577
578*.doc
579-wordwrap
580
581*.txt
582-wordwrap
583
584 #HOOK#2 filename matching
585
586 THIRD SECTION: Named help screens:
587
588 Use \| to insert a spring: all springs in a given line are set to the same
589 width such that the entire line exactly fits in the width of the screen
590 (if it's not an exact multiple so that there are N spaces remaining, the
591 rightmost N springs each get one extra space). Hint: if you want vertical
592 alignment, each line should have the same number of springs.
593
594{Basic
595\|\b^K\b cut line \|   \b^W\b find first \|\b^J\b justify \|   \b^X\b save or discard, exit \|
596\|\b^U\b paste    \|\bEsc W\b find next  \|\b^T\b spell   \|\bEsc .\b for more help         \|
597}
598
599{Basic1
600\i   Help Screen    \|turn off with ^G     prev. screen ^[,    next screen ^[.     \i
601\i \i\|\uCURSOR\u           \|\uGO TO\u            \|\uBLOCK\u      \|\uDELETE\u    \|\uMISC\u         \|\uEXIT\u     \|\i \i
602\i \i\|^B left ^F right \|^W^Y top of file \|^^  mark   \|^D  char  \|^J   format  \|^X save  \|\i \i
603\i \i\|^P up   ^N down  \|^W^V end of file \|^K  cut    \|^K  line  \|^T   spell   \|^C status\|\i \i
604\i \i\|^Y prev. screen  \|^A  beg. of line \|^U  paste  \|^[K >line \|^[T  file    \|^[Z shell\|\i \i
605\i \i\|^V next screen   \|^E  end of line  \|^O  save   \|^[H word< \|^L   refresh \|\uFILE\u     \|\i \i
606\i \i\|^Z prev. word    \|^W^T line No.    \|^[/ filter \|^[D >word \|^[^[ options \|^O save  \|\i \i
607\i \i\|^SPACE next word \|^W find ^[W next \|           \|^[- undo  \|^[=  redo    \|^R insert\|\i \i
608}
609
610{Advanced
611\i   Help Screen    \|turn off with ^G     prev. screen ^[,    next screen ^[.     \i
612\i \i\|\uMACROS\u         \|\uWINDOW\u          \|\uWINDOW\u     \|\uSHELL\u         \|\uMISC\u                 \|\i \i
613\i \i\|^[( 0-9 Record \|^[O Split       \|^[G Grow   \|^[! Command   \|^[X Execute command  \|\i \i
614\i \i\|^[)     Stop   \|^[E Edit file   \|^[J Shrink \|^[' Window    \|^[M Math             \|\i \i
615\i \i\|^[ 0-9  Play   \|^[P Goto prev.  \|\uQUOTE\u      \|\uI-SEARCH\u      \|^[C Center line      \|\i \i
616\i \i\|^[?     Query  \|^[N Goto next   \|`  Ctrl-   \|^[R Backwards \|^[] to matching ( [ {\|\i \i
617\i \i\|^[\\     Repeat \|^[I Zoom in/out \|^\\ Meta-   \|^[S Forwards  \|^[< ^[> pan left/rght\|\i \i
618}
619
620{Search
621\i   Help Screen    \|turn off with ^G     prev. screen ^[,    next screen ^[.     \i
622\i \iSpecial search sequences:                                                    \|\i \i
623\i \i    \\^  \\$  matches beg./end of line      \\?     match any single char       \|\i \i
624\i \i    \\<  \\>  matches beg./end of word      \\*     match 0 or more chars       \|\i \i
625\i \i    \\c      matches balanced C expression \\\\     matches a \\                 \|\i \i
626\i \i    \\[..]   matches one of a set          \\n     matches a newline           \|\i \i
627\i \i    \\+      matches 0 or more of the character which follows the \\+          \|\i \i
628\i \iSpecial replace sequences:                                                   \|\i \i
629\i \i    \\&      replaced with text which matched search string                   \|\i \i
630\i \i    \\0 - 9  replaced with text which matched Nth \\*, \\?, \\c, \\+, or \\[..]    \|\i \i
631\i \i    \\\\      replaced with \\               \\n     replaced with newline       \|\i \i
632}
633
634{Names
635\i   Help Screen    \|turn off with ^G     prev. screen ^[,    next screen ^[.     \i
636\i \i Hit TAB at file name prompts to generate menu of file names                 \|\i \i
637\i \i Or use up/down keys to access history of previously entered names           \|\i \i
638\i \i Special file names:                                                         \|\i \i
639\i \i      !command                 Pipe in/out of a shell command                \|\i \i
640\i \i      >>filename               Append to a file                              \|\i \i
641\i \i      -                        Read/Write to/from standard I/O               \|\i \i
642\i \i      filename,START,SIZE      Read/Write a part of a file/device            \|\i \i
643\i \i          Give START/SIZE in decimal (255), octal (0377) or hex (0xFF)       \|\i \i
644}
645
646{Joe
647\i   Help Screen    \|turn off with ^G     prev. screen ^[,                        \i
648\i \i For bug reports and other information, refer to: \uhttp://mirbsd.de/jupp\u      \|\i \i
649}
650
651 #HOOK#3 additional help screens
652
653{CharTable
654\i   Help Screen    turn off with ^J     prev. screen ^[,    \uCharacter Map\u       \i
655\i \i Dec Hex  \u 0123 4567  89AB CDEF    0123 4567  89AB CDEF \u  Hex Dec            \i \i
656\i \i         |                                              |                    \i \i
657\i \i   0  00 | \u@ABC\u \uDEFG\u  \uHIJK\u \uLMNO\u    ���� ����  ���� ���� | 80  128            \i \i
658\i \i  16  10 | \uPQRS\u \uTUVW\u  \uXYZ[\u \u\\]^_\u    ���� ����  ���� ���� | 90  144            \i \i
659\i \i  32  20 |  !"# $%&'  ()*+ ,-./    ���� ����  ���� ���� | A0  160            \i \i
660\i \i  48  30 | 0123 4567  89:; <=>?    ���� ����  ���� ���� | B0  176            \i \i
661\i \i  64  40 | @ABC DEFG  HIJK LMNO    ���� ����  ���� ���� | C0  192            \i \i
662\i \i  80  50 | PQRS TUVW  XYZ[ \\]^_    ���� ����  ���� ���� | D0  208            \i \i
663\i \i  96  60 | `abc defg  hijk lmno    ���� ����  ���� ���� | E0  224            \i \i
664\i \i 112  70 | pqrs tuvw  xyz{ |}~    ���� ����  ���� ���� | F0  240            \i \i
665}
666
667{Paste
668\i                                                                               \i
669\i \i \u\bPaste Mode\b\u     turn off with \b^D\b or \b^[[201~\b                                  \i \i
670}
671
672 FOURTH SECTION: Key bindings:
673
674 Section names you must provide:
675
676	:main		editing window
677	:prompt		prompt lines
678	:query		single-character query lines
679	:querya		singe-character query for quote
680	:querysr	search-and-replace single-character query
681
682 Other sections may be given as well for organisation purposes or for
683 use with the '-keymap' option.
684
685 Use:
686 :inherit name		To copy the named section into the current one
687 :delete key		To delete a key sequence from the current section
688
689 Keys:
690
691 Use ^@ through ^_ and ^? for C0 control characters and DEL
692 Use SP for space
693 Use a TO b to generate a range of characters
694
695 You can also use termcap string capability names. For example:
696
697	.ku		Up
698	.kd		Down
699	.kl		Left
700	.kr		Right
701	.kh		Home
702	.kH		End
703	.kI		Insert
704	.kD		Delete
705	.kP		PgUp
706	.kN		PgDn
707	.k1 - .k9	F1 - F9
708	.k0		F0 or F10
709	.k;		F10
710
711 Macros:
712
713 Simple macros can be made by comma seperating two or more command names.
714 For example:
715
716 eof,bol	^T Z		Goto beginning of last line
717
718 Also quoted matter is typed in literally (backslashes escape):
719
720 bol,">",dnarw	.k1		Quote news article line
721
722 Macros may cross lines if they end with a comma.
723 Commands or named macros may be created with :def.
724 For example, you can use...
725
726 :def foo eof,bol
727
728 ... to define a command foo which will go to the beginning of the last line.
729
730:windows		Bindings common to all windows
731 #HOOK#4 common keybindings
732type		^@ TO �
733abort		^C		Abort window
734arg		^[ \		Repeat next command
735explode		^[ I		Show all windows or show only one window
736explode		^[ ^I
737explode		^[ i
738help		.k1
739help		^G		Help menu
740help		^[ [ 1 1 ~
741hnext		^[ .		Next help window
742hprev		^[ ,		Previous help window
743math		^[ m		Calculator
744math		^[ M		Calculator
745math		^[ ^M		Calculator
746nextw		^[ N		Goto next window
747nextw		^[ ^N
748nextw		^[ n
749pgdn		.kN		Screen down
750pgdn		^V
751pgdn		^[ [ 6 ~
752pgdn		^[ [ G		SCO
753pgup		.kP		Screen up
754pgup		^Y
755pgup		^[ [ 5 ~
756pgup		^[ [ I		SCO
757play		^[ 0 TO 9	Execute macro
758prevw		^[ P		Goto previous window
759prevw		^[ ^P
760prevw		^[ p
761query		^[ ?		Macro query insert
762record		^[ (		Record a macro
763retype		^L		Refresh screen
764rtn		^M		Return
765shell		^[ z
766shell		^[ Z
767shell		^[ ^Z
768stop		^[ )		Stop recording
769
770:Paste
771type					^@ TO �
772rtn					^M
773msg,"Entered bracketed paste mode",rtn	^[ [ 2 0 0 ~
774helpcard,rtn,keymap,"main",rtn,msg,rtn	^[ [ 2 0 1 ~
775helpcard,rtn,keymap,"main",rtn		^D
776
777:Pasteprompt
778type					^@ TO �
779nop					^L
780keymap,"prompt",rtn,msg,rtn,rtn		^M
781msg,"Entered bracketed paste mode",rtn	^[ [ 2 0 0 ~
782keymap,"prompt",rtn,msg,rtn		^[ [ 2 0 1 ~
783keymap,"prompt",rtn			^D
784
785:main			Text editing window
786:inherit windows
787
788 compile
789 :def compile switch,"*Build-Log*",rtn,markb,eof," ",markk,blkdel,filt,query,parserr
790:def compile querysave,query,scratch,"* Build Log *",rtn,bof,markb,eof," ",markk,blkdel,build
791
792 spell check
793:def aspellfile filt,"SPLTMP=ispell.tmp;cat >$SPLTMP;aspell -x -c $SPLTMP </dev/tty >/dev/tty;cat $SPLTMP;/bin/rm $SPLTMP",rtn,retype
794: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
795:def ispellfile filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype
796: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
797
798 #HOOK#5 main keybindings
799
800@SPELL@file	^[ T
801@SPELL@file	^[ t
802@SPELL@file	^[ ^T
803@SPELL@word	^T		Spell check word
804
805helpcard,"Paste",rtn,keymap,"Paste",rtn	^[ [ 2 0 0 ~
806nop					^[ [ 2 0 1 ~
807
808setmark,":",uparw,gomark,":",begin_marking,uparw,toggle_marking	^[ [ 1 ; 2 A
809setmark,":",dnarw,gomark,":",begin_marking,dnarw,toggle_marking	^[ [ 1 ; 2 B
810setmark,":",rtarw,gomark,":",begin_marking,rtarw,toggle_marking	^[ [ 1 ; 2 C
811setmark,":",ltarw,gomark,":",begin_marking,ltarw,toggle_marking	^[ [ 1 ; 2 D
812setmark,":",bol,gomark,":",begin_marking,bol,toggle_marking	^[ [ 1 ; 2 H
813setmark,":",eol,gomark,":",begin_marking,eol,toggle_marking	^[ [ 1 ; 2 F
814setmark,":",bof,gomark,":",begin_marking,bof,toggle_marking	^[ [ 1 ; 6 H
815setmark,":",eof,gomark,":",begin_marking,eof,toggle_marking	^[ [ 1 ; 6 F
816
817 ask,query,lose,query,abortbuf	^X	Exit after many questions
818ask,query,exsave	^X		Exit
819backs		^?		Backspace
820backs		^H
821backw		^[ H		Backspace word
822backw		^[ ^?
823backw		^[ ^H
824backw		^[ h
825bknd		^[ '		Shell window
826bof		^[ Y		Goto beginning of file
827bof		^[ ^Y
828bof		^[ y
829bof		^[ [ 1 ; 5 H
830home		^A		Goto beginning of line
831home		.kh
832home		^[ [ 1 ~
833home		^[ [ 7 ~
834home		^[ [ H
835center		^[ ^C		Center line
836center		^[ c
837delch		.kD		Delete character
838delch		^D
839delch		^[ [ 3 ~
840deleol		^[ K		Delete to end of line
841deleol		^[ ^K
842deleol		^[ k
843delw		^[ ^D		Delete word
844delw		^[ d
845dnarw		.kd		Go down
846dnarw		^N
847dnarw		^[ O B
848dnarw		^[ [ B
849toggle_marking	^^		Marking
850edit		^[ E		Edit a file
851edit		^[ ^E
852edit		^[ e
853eof		^[ V		Go to end of file
854eof		^[ ^V
855eof		^[ v
856eof		^[ [ 1 ; 5 F
857eol		.@7
858eol		.kH		Go to end of line
859eol		^E
860eol		^[ [ 4 ~
861eol		^[ [ 8 ~
862eol		^[ [ F
863execmd		^[ X		Prompt for command to execute
864execmd		^[ ^X		Prompt for command to execute
865execmd		^[ x		Prompt for command to execute
866 ffirst,uparw,eol	^W		Find first
867ffirst		^W		Find first
868fnext		^[ w
869fnext		^[ W
870fnext		.k3
871fnext		^[ [ 1 3 ~
872filt		^[ /		Filter block though file
873fmtblk		^J		Format paragraphs in block
874groww		^[ G		Grow window
875groww		^[ ^G
876groww		^[ g
877insc		.kI		Insert a space
878insc		^[ [ 2 ~
879insc		^[ [ L		SCO
880insf		^R		Insert a file
881isrch		^[ S		Forward incremental search
882isrch		^[ ^S		Forward incremental search
883isrch		^[ s		Forward incremental search
884line		^[ L		Goto line no.
885line		^[ ^L
886line		^[ l
887line		^_
888ltarw		.kl		Go left
889ltarw		^B
890ltarw		^[ O D
891ltarw		^[ [ D
892mode		^[ ^[		Options menu
893nextword	^@		Goto next word
894nextword	^[ [ 1 ; 5 C
895open		^]		Split line
896prevword	^Z		Previous word
897prevword	^[ [ 1 ; 5 D
898picokill	^K		Pico kill function
899quote		`		Enter Ctrl chars
900quote8		^\		Enter Meta chars
901redo		^[ =		Redo changes
902rsrch		^[ R		Backward incremental search
903rsrch		^[ ^R		Backward incremental search
904rsrch		^[ r		Backward incremental search
905rtarw		.kr		Go right
906rtarw		^F
907rtarw		^[ O C
908rtarw		^[ [ C
909run		^[ !		Run a program in a window
910stat		^C		Cursor position status
911blksave		^O		Save file
912crawll		^[ <		Pan left
913crawlr		^[ >		Pan right
914shrinkw		^[ J		Shrink window
915shrinkw		^[ ^J
916shrinkw		^[ j
917splitw		^[ ^O		Split window
918splitw		^[ o
919tag		^[ ;		Tags file search
920tomatch		^[ ]		To matching delimiter
921undo		^[ -		Undo changes
922uparw		.ku		Go up
923uparw		^P
924uparw		^[ O A
925uparw		^[ [ A
926yank		^U		Paste
927yankpop		^[ U		Select yanked text
928yankpop		^[ ^U
929yankpop		^[ u
930
931:prompt			Prompt windows
932:inherit main
933abort		^C
934complete	^I
935cancel,bof	^Y
936cancel,eof	^V
937cancel,line	^T
938cancel,bop	^W
939cancel,eop	^O
940nop		^L
941keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn	^[ P
942keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn	^[ p
943keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn	^[ [ 2 0 0 ~
944
945:menu			Selection menus
946:inherit windows
947abort		^[ ^[
948backsmenu	^?
949backsmenu	^H
950bofmenu		^K U
951bofmenu		^K ^U
952bofmenu		^K u
953bofmenu		^[ [ 1 ; 5 H
954bolmenu		^A
955bolmenu		.kh
956bolmenu		^[ [ 1 ~
957bolmenu		^[ [ 7 ~
958bolmenu		^[ [ H
959dnarwmenu	.kd
960dnarwmenu	^N
961dnarwmenu	^[ [ B
962dnarwmenu	^[ O B
963eofmenu		^K V
964eofmenu		^K ^V
965eofmenu		^K v
966eofmenu		^[ [ 1 ; 5 F
967eolmenu		.@7
968eolmenu		.kH
969eolmenu		^E
970eolmenu		^[ [ 4 ~
971eolmenu		^[ [ 8 ~
972eolmenu		^[ [ F
973ltarwmenu	.kl
974ltarwmenu	^B
975ltarwmenu	^[ [ D
976ltarwmenu	^[ O D
977pgdnmenu	.kN
978pgdnmenu	^V
979pgdnmenu	^[ [ 6 ~
980pgdnmenu	^[ [ G
981pgupmenu	.kP
982pgupmenu	^Y
983pgupmenu	^[ [ 5 ~
984pgupmenu	^[ [ I
985rtarwmenu	.kr
986rtarwmenu	^F
987rtarwmenu	^[ [ C
988rtarwmenu	^[ O C
989rtn		SP
990rtn		^I
991rtn		^K H
992rtn		^K h
993rtn		^K ^H
994tabmenu		^I
995uparwmenu	.ku
996uparwmenu	^P
997uparwmenu	^[ [ A
998uparwmenu	^[ O A
999
1000:query			Single-key query window
1001:inherit windows
1002
1003:querya			Single-key query window for quoting
1004type		^@ TO �
1005
1006:querysr		Search & replace query window
1007type		^@ TO �
1008