~mirabilos/jupp/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
 $MirOS: contrib/code/jupp/jpicorc.in,v 1.37 2020/01/31 17:00:25 tg Exp $

                         Initialisation file for JOE
                                 Super Pico

 This file must be written in the 8-bit encoding, not UTF-8.

 JOE looks for this file in:
	1 - $HOME/.jpicorc
	2 - @jrcbefore@jpicorc@jrcafter@

 This file can include other files by placing the following include command
 in the first column (comment lines start with space or tab):

 :include filename

 FIRST SECTION: Default global options (these options can also be specified
 on the command line. Also, the NOXON, LINES, COLUMNS, DOPADDING and BAUD
 options can be specified in environment variables):

 Put each option you want set in the first column:

 -option	Sets the option
 --option	Clears the option

 -mid		Cursor is recentred when scrolling is necessary
-marking	Text between ^KB and cursor is highlighted; use with:
-lightoff	Turn off highlighting after block copy or move
 -autoswap	Swap markb with markk when necessary
 -asis		Characters 128 - 255 shown as-is
 -hex		Hex editing mode
-nobackups	If you don't want backup files to be created
 -backpath path
		Where to store backup files (do not quote, no comment after)
-force		Force final newline when files are saved
-exask		^KX always confirms file name
 -beep		Beep on errors and when cursor goes past extremes
 -nosta		Disable top-most status line
 -keepup	%k and %c status line escape sequences updated frequently
 -pg nnn	No. lines to keep for PgUp/PgDn
 -csmode	^KF after a pervious search does a ^L instead
 -nonotice	Disable copyright notice
 -noxon		Attempt to turn off ^S/^Q processing
 -orphan	Put extra files given on command line in orphaned buffers
		instead of in windows
 -dopadding	Output pad characters (for when there is no tty handshaking)
 -lines nnn	Set no. screen lines
 -baud nnn	Set baud rate for terminal optimisations
 -columns nnn	Set no. screen columns
-help		Start with help on
 -skiptop nnn	Don't use top nnn lines of the screen

-notite		Don't send terminal initialisation and termination strings:
		prevents restoration of screen on exit

-pastetite	Enter bracketed paste mode automatically for TERM=xterm-xfree86

 -usetabs	Use tabs to help optimise screen update

-assume_color	Assume terminal has ANSI colour support even if its termcap
		or terminfo entry says that it doesn't. This only applies if
		the terminal otherwise looks like an ANSI terminal (supports
		bold and capability starts with ESC [).

-guess_crlf	Automatically detect MS-DOS files and set -crlf appropriately

-guess_indent	Guess indent character (tab or space)

-menu_explorer	Stay in menu system when a directory is selected (otherwise
		directory is added to path and menu is closed)

 -icase		Search is case-insensitive by default
 -wrap		Search wraps

 Status line definition strings. -lmsg defines the left-justified string,
 and -rmsg defines the right-justified string. The first character of -rmsg
 is the background fill character. -hmsg (3.1jupp15) defines the help hint
 (only about a dozen chars) displayed next to the copyright notice in the
 initial status line (inverted by default, unless starting with exactly \i).
 The following escape sequences can be used in these strings:

	%t	12-hour time
	%u	24-hour time
	%T	O for overtype mode, I for insert mode
	%W	W if wordwrap is enabled
	%I	A if autoindent is enabled
	%X	rectangle mode indicator
	%n	file name
	%m	'(Modified)' if file has been changed
	%*	'*' if file has been changed
	%R	read-only indicator
	%r	row (line) number
	%c	column number
	%o	byte offset into file (decimal)
	%O	byte offset into file in hex
	%a	ASCII value of character under cursor (decimal)
	%A	ASCII value of character under cursor in hex
	%p	percent of file cursor is at
	%l	number of lines in file
	%k	entered prefix keys
	%S	'*SHELL*' if there is a shell running in window
	%M	macro recording message
	%y	syntax
	%x	context (first non-indented line going backwards)

 These formatting escape sequences may also be given:

	\i	Inverse
	\u	Underline
	\b	Bold
	\d	Dim
	\f	Blink

-lmsg \i%k%T%W%I%X %n %m%y%R %M
-rmsg  %S Row %r Col %c %t  Ctrl-G for help
-hmsg \i\f\bHelp: ^G\b\f

 SECOND SECTION: filename-dependent local option settings:

 Each line with '*' in the first column indicates the modes which should be
 set for files whose name matches the regular expression. If more than one
 regular expression matches the file name, then the last matching one is
 chosen.

 A file contents regular expression may also be specified on a separate line
 with '+regex'. If this regular expresssion is given, then both the file name
 regex and the file contents regex must match for the options to apply.

 Here is a list of modes which can be set:

 -keymap name		Keymap to use if not 'main'
 -square		Rectangular block mode
 -overwrite		Overtype mode
 -picture		Picture mode (cursor right can go past end of line)
 -linums		Show line numbers in front of each line
 -rdonly		File is read-only
 -crlf			File uses CR-LF at end of lines
 -encoding utf8		File is UTF-8 encoded
 -syntax name		Specify syntax (syntax file called
			'name.jsf' will be loaded)
 -highlight		Enable syntax highlighting

 -french		One space after '.', '?' and '!' for wordwrap and
			paragraph reformat instead of two. JOE does not
			change the spacing you give, but sometimes it must
			put spacing in itself. This selects how much is
			inserted in those cases.
 -purify		Fixup indentation if necessary for rindent, lindent
			and backs (for example if indentation uses a mix of
			tabs and spaces, and indentc is space, indentation
			will be converted to all spaces)

 -lmargin nnn		Left margin
 -rmargin nnn		Right margin
 -tab nnn		Tab width
 -indentc nnn		Indentation character (32 = space, 9 = tab)
 -istep nnn		Amount of 'indentc's per indentation level
 -spaces		Tab key inserts spaces instead of tabs
 -wordwrap		Wordwrap
 -autoindent		Auto indent
 -smartbacks		Backspace key deletes 'istep' number of 'indentc's
			if cursor is at first non-space character
 -smarthome		Home key first moves cursor to beginning of line,
			then if hit again, to first non-blank character
 -indentfirst		Smart home goes to first non-blank character first,
			instead of to the beginning of the line first

 -lmsg			Status line definition strings;
 -rmsg			see previous section for more info

 -mnew macro		Macro to execute when new files are loaded
 -mold macro		Macro to execute when existing files are loaded
 -msnew macro		Macro to execute when new files are saved
 -msold macro		Macro to execute when existing files are saved

 Macros for the above options are in the same format as in the key
 binding section below but without the key name strings.

 Default local options:
-highlight
-french
-indentc 9
-istep 1
-purify
-smartbacks
-tab 8
--wordwrap

 #HOOK#1 global/default flags

 === Generic files
 No '.' in filename?
*
 Assume it's a text file and, except in jupp, we want wordwrap on.
-wordwrap

 Filename with '.' is probably not a text file.
*.*

 Binary file
*.bin
--crlf
--guess_crlf
-encoding ascii
-hex

 === Patterns with multiple wildcards
 Order is latest match wins, so...
*/patch-*
-highlight
-syntax diff

*
+Only in[ ]
-highlight
-syntax diff

*
+Nur in[ ]
-highlight
-syntax diff

*
+\[1-9]\+\[0-9]\[cda]
-highlight
-syntax diff

*.sh*
-syntax sh

*.ksh*
-syntax sh

*.mksh*
-syntax sh

*.bash*
-syntax sh

*tmp/mutt-*
-wordwrap
-syntax mail

*tmp/pico.*
-wordwrap
-syntax mail

*/mail/*
-syntax mail

*/patches/*
-highlight
-syntax diff

 === Assembly
*.asm
-syntax asm

*.S
-syntax asm

*.s
-syntax asm

 === C, C++, Objective-C
*.C
-syntax c

*.c
-syntax c

*.cc
-syntax c

*.cpp
-syntax c

*.cxx
-syntax c

*.c++
-syntax c

*.h
-syntax c

*.hh
-syntax c

*.hpp
-syntax c

*.h++
-syntax c

*.m
-syntax c

*.nxc
-syntax c

 === C Shell
*.csh
-syntax csh

*.login
-syntax csh

*.logout
-syntax csh

*.tcsh
-syntax csh

*.tcshrc
-syntax csh

*
+#!\+\[	 ]\+\[/a-z0-9._-]/\+tcsh\>
-syntax csh

*
+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]\+tcsh\>
-syntax csh

 === Diff
*.diff
-highlight
-syntax diff

*.patch
-highlight
-syntax diff

*.rej
-highlight
-syntax diff

*.debdiff
-highlight
-syntax diff

*
+---\[ ]
-highlight
-syntax diff

*
+***\[ ]
-highlight
-syntax diff

*
+Index: \*\n======================================================
-highlight
-syntax diff

*
+Index: \*\ndiff\*\n--- \*\n+++\[ ]
-highlight
-syntax diff

*
+\[=?]\*\n--- \*\n+++\[ ]
-highlight
-syntax diff

*
+diff\*\n--- \*\n+++\[ ]
-highlight
-syntax diff

*
+diff --git\*\nindex\*\n--- \*\n+++\[ ]
-highlight
-syntax diff

 === eMail
*.eml
-syntax mail

 Not quite eMail but still RFC822
*.mht
-syntax mail

 === FORTRAN
*.f
-syntax fortran

*.for
-syntax fortran

*.FOR
-syntax fortran

*.f77
-syntax fortran

*.F77
-syntax fortran

*.f90
-syntax fortran

*.F90
-syntax fortran

 === GNU autoconf
*.ac
-syntax conf

*.am
-syntax conf

 === HTML
*.htm
-encoding utf8
-syntax html

*.html
-encoding utf8
-syntax html

*
+<\[Hh]\[Tt]\[Mm]\[Ll]\>
-encoding utf8
-syntax html

*
+<!DOCTYPE \[Hh]\[Tt]\[Mm]\[Ll]\>
-encoding utf8
-syntax html

 === Java
*.java
-encoding utf8
-syntax java

 === JOE Syntax File
*.jsf
-syntax conf

 === LISP
*.lisp
-syntax lisp

*.lsp
-syntax lisp

*.el
-syntax lisp

 === Make
*akefile
-syntax conf

*AKEFILE
-syntax conf

 === Mason
*.mas
-syntax mason

 === Pascal
*.p
-syntax pascal

*.pas
-syntax pascal

 === Perl
*.pl
-syntax perl

*.pm
-syntax perl

*
+#!\+\[	 ]\+\[/a-z0-9._-]/perl
-syntax perl

*
+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]perl
-syntax perl

 === PHP
*.php
-syntax php

 === Python
*.py
-encoding utf8
-syntax python
-tab 4
-indentc 32
-istep 4
-spaces

*
+#!\+\[	 ]\+\[/a-z0-9._-]/python
-encoding utf8
-syntax python
-tab 4
-indentc 32
-istep 4
-spaces

*
+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]python
-encoding utf8
-syntax python
-tab 4
-indentc 32
-istep 4
-spaces

 === Bourne, Korn, POSIX Shell
*profile
-syntax sh

*
+:\[	 \n]
-syntax sh

*
+#!\+\[	 ]\+\[/a-z0-9._-]/\+\[bda]sh\>
-syntax sh

*
+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]\+\[bda]sh\>
-syntax sh

*
+#!\+\[	 ]\+\[/a-z0-9._-]/\+\[a-z]ksh\+\[0-9._-]\>
-syntax sh

*
+#!\+\[	 ]\+\[/a-z0-9._-]/env\[	 ]\+\[	 ]\+\[a-z]ksh\+\[0-9._-]\>
-syntax sh

 === TCL
*.tcl
-syntax tcl

 === TeX
*.cls
-syntax tex

*.def
-syntax tex

*.dtx
-syntax tex

*.lco
-syntax tex

*.sty
-syntax tex

*.tex
-syntax tex

 === Verilog
*.v
-syntax verilog
-istep 2

*.vh
-syntax verilog
-istep 2

 === VHDL
*.vhd
-syntax vhdl
-istep 2

 === XML
*.xml
-encoding utf8
-syntax xml

*.xsl
-encoding utf8
-syntax xml

*
+<?xml
-encoding utf8
-syntax xml

*
+<?xml\+\[^>]?>\+\[	 \n]<html\>
-encoding utf8
-syntax html

 === Text (except in jupp)
*.asc
-wordwrap

*.doc
-wordwrap

*.txt
-wordwrap

 #HOOK#2 filename matching

 THIRD SECTION: Named help screens:

 Use \| to insert a spring: all springs in a given line are set to the same
 width such that the entire line exactly fits in the width of the screen
 (if it's not an exact multiple so that there are N spaces remaining, the
 rightmost N springs each get one extra space). Hint: if you want vertical
 alignment, each line should have the same number of springs.

{Basic
\|\b^K\b cut line \|   \b^W\b find first \|\b^J\b justify \|   \b^X\b save or discard, exit \|
\|\b^U\b paste    \|\bEsc W\b find next  \|\b^T\b spell   \|\bEsc .\b for more help         \|
}

{Basic1
\i   Help Screen    \|turn off with ^G     prev. screen ^[,    next screen ^[.     \i
\i \i\|\uCURSOR\u           \|\uGO TO\u            \|\uBLOCK\u      \|\uDELETE\u    \|\uMISC\u         \|\uEXIT\u     \|\i \i
\i \i\|^B left ^F right \|^W^Y top of file \|^^  mark   \|^D  char  \|^J   format  \|^X save  \|\i \i
\i \i\|^P up   ^N down  \|^W^V end of file \|^K  cut    \|^K  line  \|^T   spell   \|^C status\|\i \i
\i \i\|^Y prev. screen  \|^A  beg. of line \|^U  paste  \|^[K >line \|^[T  file    \|^[Z shell\|\i \i
\i \i\|^V next screen   \|^E  end of line  \|^O  save   \|^[H word< \|^L   refresh \|\uFILE\u     \|\i \i
\i \i\|^Z prev. word    \|^W^T line No.    \|^[/ filter \|^[D >word \|^[^[ options \|^O save  \|\i \i
\i \i\|^SPACE next word \|^W find ^[W next \|           \|^[- undo  \|^[=  redo    \|^R insert\|\i \i
}

{Advanced
\i   Help Screen    \|turn off with ^G     prev. screen ^[,    next screen ^[.     \i
\i \i\|\uMACROS\u         \|\uWINDOW\u          \|\uWINDOW\u     \|\uSHELL\u         \|\uMISC\u                 \|\i \i
\i \i\|^[( 0-9 Record \|^[O Split       \|^[G Grow   \|^[! Command   \|^[X Execute command  \|\i \i
\i \i\|^[)     Stop   \|^[E Edit file   \|^[J Shrink \|^[' Window    \|^[M Math             \|\i \i
\i \i\|^[ 0-9  Play   \|^[P Goto prev.  \|\uQUOTE\u      \|\uI-SEARCH\u      \|^[C Center line      \|\i \i
\i \i\|^[?     Query  \|^[N Goto next   \|`  Ctrl-   \|^[R Backwards \|^[] to matching ( [ {\|\i \i
\i \i\|^[\\     Repeat \|^[I Zoom in/out \|^\\ Meta-   \|^[S Forwards  \|^[< ^[> pan left/rght\|\i \i
}

{Search
\i   Help Screen    \|turn off with ^G     prev. screen ^[,    next screen ^[.     \i
\i \iSpecial search sequences:                                                    \|\i \i
\i \i    \\^  \\$  matches beg./end of line      \\?     match any single char       \|\i \i
\i \i    \\<  \\>  matches beg./end of word      \\*     match 0 or more chars       \|\i \i
\i \i    \\c      matches balanced C expression \\\\     matches a \\                 \|\i \i
\i \i    \\[..]   matches one of a set          \\n     matches a newline           \|\i \i
\i \i    \\+      matches 0 or more of the character which follows the \\+          \|\i \i
\i \iSpecial replace sequences:                                                   \|\i \i
\i \i    \\&      replaced with text which matched search string                   \|\i \i
\i \i    \\0 - 9  replaced with text which matched Nth \\*, \\?, \\c, \\+, or \\[..]    \|\i \i
\i \i    \\\\      replaced with \\               \\n     replaced with newline       \|\i \i
}

{Names
\i   Help Screen    \|turn off with ^G     prev. screen ^[,    next screen ^[.     \i
\i \i Hit TAB at file name prompts to generate menu of file names                 \|\i \i
\i \i Or use up/down keys to access history of previously entered names           \|\i \i
\i \i Special file names:                                                         \|\i \i
\i \i      !command                 Pipe in/out of a shell command                \|\i \i
\i \i      >>filename               Append to a file                              \|\i \i
\i \i      -                        Read/Write to/from standard I/O               \|\i \i
\i \i      filename,START,SIZE      Read/Write a part of a file/device            \|\i \i
\i \i          Give START/SIZE in decimal (255), octal (0377) or hex (0xFF)       \|\i \i
}

{Joe
\i   Help Screen    \|turn off with ^G     prev. screen ^[,                        \i
\i \i For bug reports and other information, refer to: \uhttp://mirbsd.de/jupp\u      \|\i \i
}

 #HOOK#3 additional help screens

{CharTable
\i   Help Screen    turn off with ^J     prev. screen ^[,    \uCharacter Map\u       \i
\i \i Dec Hex  \u 0123 4567  89AB CDEF    0123 4567  89AB CDEF \u  Hex Dec            \i \i
\i \i         |                                              |                    \i \i
\i \i   0  00 | \u@ABC\u \uDEFG\u  \uHIJK\u \uLMNO\u    €‚ƒ „…†‡  ˆ‰Š‹ ŒŽ | 80  128            \i \i
\i \i  16  10 | \uPQRS\u \uTUVW\u  \uXYZ[\u \u\\]^_\u    ‘’“ ”•–—  ˜™š› œžŸ | 90  144            \i \i
\i \i  32  20 |  !"# $%&'  ()*+ ,-./     ¡¢£ €¥Š§  š©ª« ¬­®¯ | A0  160            \i \i
\i \i  48  30 | 0123 4567  89:; <=>?    °±²³ Žµ¶·  ž¹º» ŒœŸ¿ | B0  176            \i \i
\i \i  64  40 | @ABC DEFG  HIJK LMNO    ÀÁÂÃ ÄÅÆÇ  ÈÉÊË ÌÍÎÏ | C0  192            \i \i
\i \i  80  50 | PQRS TUVW  XYZ[ \\]^_    ÐÑÒÓ ÔÕÖ×  ØÙÚÛ ÜÝÞß | D0  208            \i \i
\i \i  96  60 | `abc defg  hijk lmno    àáâã äåæç  èéêë ìíîï | E0  224            \i \i
\i \i 112  70 | pqrs tuvw  xyz{ |}~    ðñòó ôõö÷  øùúû üýþÿ | F0  240            \i \i
}

{Paste
\i                                                                               \i
\i \i \u\bPaste Mode\b\u     turn off with \b^D\b or \b^[[201~\b                                  \i \i
}

 FOURTH SECTION: Key bindings:

 Section names you must provide:

	:main		editing window
	:prompt		prompt lines
	:query		single-character query lines
	:querya		singe-character query for quote
	:querysr	search-and-replace single-character query

 Other sections may be given as well for organisation purposes or for
 use with the '-keymap' option.

 Use:
 :inherit name		To copy the named section into the current one
 :delete key		To delete a key sequence from the current section

 Keys:

 Use ^@ through ^_ and ^? for C0 control characters and DEL
 Use SP for space
 Use a TO b to generate a range of characters

 You can also use termcap string capability names. For example:

	.ku		Up
	.kd		Down
	.kl		Left
	.kr		Right
	.kh		Home
	.kH		End
	.kI		Insert
	.kD		Delete
	.kP		PgUp
	.kN		PgDn
	.k1 - .k9	F1 - F9
	.k0		F0 or F10
	.k;		F10

 Macros:

 Simple macros can be made by comma seperating two or more command names.
 For example:

 eof,bol	^T Z		Goto beginning of last line

 Also quoted matter is typed in literally (backslashes escape):

 bol,">",dnarw	.k1		Quote news article line

 Macros may cross lines if they end with a comma.
 Commands or named macros may be created with :def.
 For example, you can use...

 :def foo eof,bol

 ... to define a command foo which will go to the beginning of the last line.

:windows		Bindings common to all windows
 #HOOK#4 common keybindings
type		^@ TO ÿ
abort		^C		Abort window
arg		^[ \		Repeat next command
explode		^[ I		Show all windows or show only one window
explode		^[ ^I
explode		^[ i
help		.k1
help		^G		Help menu
help		^[ [ 1 1 ~
hnext		^[ .		Next help window
hprev		^[ ,		Previous help window
math		^[ m		Calculator
math		^[ M		Calculator
math		^[ ^M		Calculator
nextw		^[ N		Goto next window
nextw		^[ ^N
nextw		^[ n
pgdn		.kN		Screen down
pgdn		^V
pgdn		^[ [ 6 ~
pgdn		^[ [ G		SCO
pgup		.kP		Screen up
pgup		^Y
pgup		^[ [ 5 ~
pgup		^[ [ I		SCO
play		^[ 0 TO 9	Execute macro
prevw		^[ P		Goto previous window
prevw		^[ ^P
prevw		^[ p
query		^[ ?		Macro query insert
record		^[ (		Record a macro
retype		^L		Refresh screen
rtn		^M		Return
shell		^[ z
shell		^[ Z
shell		^[ ^Z
stop		^[ )		Stop recording

:Paste
type					^@ TO ÿ
rtn					^M
msg,"Entered bracketed paste mode",rtn	^[ [ 2 0 0 ~
helpcard,rtn,keymap,"main",rtn,msg,rtn	^[ [ 2 0 1 ~
helpcard,rtn,keymap,"main",rtn		^D

:Pasteprompt
type					^@ TO ÿ
nop					^L
keymap,"prompt",rtn,msg,rtn,rtn		^M
msg,"Entered bracketed paste mode",rtn	^[ [ 2 0 0 ~
keymap,"prompt",rtn,msg,rtn		^[ [ 2 0 1 ~
keymap,"prompt",rtn			^D

:main			Text editing window
:inherit windows

 compile
 :def compile switch,"*Build-Log*",rtn,markb,eof," ",markk,blkdel,filt,query,parserr
:def compile querysave,query,scratch,"* Build Log *",rtn,bof,markb,eof," ",markk,blkdel,build

 spell check
:def aspellfile filt,"SPLTMP=ispell.tmp;cat >$SPLTMP;aspell -x -c $SPLTMP </dev/tty >/dev/tty;cat $SPLTMP;/bin/rm $SPLTMP",rtn,retype
: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
:def ispellfile filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype
: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

 #HOOK#5 main keybindings

@SPELL@file	^[ T
@SPELL@file	^[ t
@SPELL@file	^[ ^T
@SPELL@word	^T		Spell check word

helpcard,"Paste",rtn,keymap,"Paste",rtn	^[ [ 2 0 0 ~
nop					^[ [ 2 0 1 ~

setmark,":",uparw,gomark,":",begin_marking,uparw,toggle_marking	^[ [ 1 ; 2 A
setmark,":",dnarw,gomark,":",begin_marking,dnarw,toggle_marking	^[ [ 1 ; 2 B
setmark,":",rtarw,gomark,":",begin_marking,rtarw,toggle_marking	^[ [ 1 ; 2 C
setmark,":",ltarw,gomark,":",begin_marking,ltarw,toggle_marking	^[ [ 1 ; 2 D
setmark,":",bol,gomark,":",begin_marking,bol,toggle_marking	^[ [ 1 ; 2 H
setmark,":",eol,gomark,":",begin_marking,eol,toggle_marking	^[ [ 1 ; 2 F
setmark,":",bof,gomark,":",begin_marking,bof,toggle_marking	^[ [ 1 ; 6 H
setmark,":",eof,gomark,":",begin_marking,eof,toggle_marking	^[ [ 1 ; 6 F

 ask,query,lose,query,abortbuf	^X	Exit after many questions
ask,query,exsave	^X		Exit
backs		^?		Backspace
backs		^H
backw		^[ H		Backspace word
backw		^[ ^?
backw		^[ ^H
backw		^[ h
bknd		^[ '		Shell window
bof		^[ Y		Goto beginning of file
bof		^[ ^Y
bof		^[ y
bof		^[ [ 1 ; 5 H
home		^A		Goto beginning of line
home		.kh
home		^[ [ 1 ~
home		^[ [ 7 ~
home		^[ [ H
center		^[ ^C		Center line
center		^[ c
delch		.kD		Delete character
delch		^D
delch		^[ [ 3 ~
deleol		^[ K		Delete to end of line
deleol		^[ ^K
deleol		^[ k
delw		^[ ^D		Delete word
delw		^[ d
dnarw		.kd		Go down
dnarw		^N
dnarw		^[ O B
dnarw		^[ [ B
toggle_marking	^^		Marking
edit		^[ E		Edit a file
edit		^[ ^E
edit		^[ e
eof		^[ V		Go to end of file
eof		^[ ^V
eof		^[ v
eof		^[ [ 1 ; 5 F
eol		.@7
eol		.kH		Go to end of line
eol		^E
eol		^[ [ 4 ~
eol		^[ [ 8 ~
eol		^[ [ F
execmd		^[ X		Prompt for command to execute
execmd		^[ ^X		Prompt for command to execute
execmd		^[ x		Prompt for command to execute
 ffirst,uparw,eol	^W		Find first
ffirst		^W		Find first
fnext		^[ w
fnext		^[ W
fnext		.k3
fnext		^[ [ 1 3 ~
filt		^[ /		Filter block though file
fmtblk		^J		Format paragraphs in block
groww		^[ G		Grow window
groww		^[ ^G
groww		^[ g
insc		.kI		Insert a space
insc		^[ [ 2 ~
insc		^[ [ L		SCO
insf		^R		Insert a file
isrch		^[ S		Forward incremental search
isrch		^[ ^S		Forward incremental search
isrch		^[ s		Forward incremental search
line		^[ L		Goto line no.
line		^[ ^L
line		^[ l
line		^_
ltarw		.kl		Go left
ltarw		^B
ltarw		^[ O D
ltarw		^[ [ D
mode		^[ ^[		Options menu
nextword	^@		Goto next word
nextword	^[ [ 1 ; 5 C
open		^]		Split line
prevword	^Z		Previous word
prevword	^[ [ 1 ; 5 D
picokill	^K		Pico kill function
quote		`		Enter Ctrl chars
quote8		^\		Enter Meta chars
redo		^[ =		Redo changes
rsrch		^[ R		Backward incremental search
rsrch		^[ ^R		Backward incremental search
rsrch		^[ r		Backward incremental search
rtarw		.kr		Go right
rtarw		^F
rtarw		^[ O C
rtarw		^[ [ C
run		^[ !		Run a program in a window
stat		^C		Cursor position status
blksave		^O		Save file
crawll		^[ <		Pan left
crawlr		^[ >		Pan right
shrinkw		^[ J		Shrink window
shrinkw		^[ ^J
shrinkw		^[ j
splitw		^[ ^O		Split window
splitw		^[ o
tag		^[ ;		Tags file search
tomatch		^[ ]		To matching delimiter
undo		^[ -		Undo changes
uparw		.ku		Go up
uparw		^P
uparw		^[ O A
uparw		^[ [ A
yank		^U		Paste
yankpop		^[ U		Select yanked text
yankpop		^[ ^U
yankpop		^[ u

:prompt			Prompt windows
:inherit main
abort		^C
complete	^I
cancel,bof	^Y
cancel,eof	^V
cancel,line	^T
cancel,bop	^W
cancel,eop	^O
nop		^L
keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn	^[ P
keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn	^[ p
keymap,"Pasteprompt",rtn,msg,"Entered bracketed paste mode",rtn	^[ [ 2 0 0 ~

:menu			Selection menus
:inherit windows
abort		^[ ^[
backsmenu	^?
backsmenu	^H
bofmenu		^K U
bofmenu		^K ^U
bofmenu		^K u
bofmenu		^[ [ 1 ; 5 H
bolmenu		^A
bolmenu		.kh
bolmenu		^[ [ 1 ~
bolmenu		^[ [ 7 ~
bolmenu		^[ [ H
dnarwmenu	.kd
dnarwmenu	^N
dnarwmenu	^[ [ B
dnarwmenu	^[ O B
eofmenu		^K V
eofmenu		^K ^V
eofmenu		^K v
eofmenu		^[ [ 1 ; 5 F
eolmenu		.@7
eolmenu		.kH
eolmenu		^E
eolmenu		^[ [ 4 ~
eolmenu		^[ [ 8 ~
eolmenu		^[ [ F
ltarwmenu	.kl
ltarwmenu	^B
ltarwmenu	^[ [ D
ltarwmenu	^[ O D
pgdnmenu	.kN
pgdnmenu	^V
pgdnmenu	^[ [ 6 ~
pgdnmenu	^[ [ G
pgupmenu	.kP
pgupmenu	^Y
pgupmenu	^[ [ 5 ~
pgupmenu	^[ [ I
rtarwmenu	.kr
rtarwmenu	^F
rtarwmenu	^[ [ C
rtarwmenu	^[ O C
rtn		SP
rtn		^I
rtn		^K H
rtn		^K h
rtn		^K ^H
tabmenu		^I
uparwmenu	.ku
uparwmenu	^P
uparwmenu	^[ [ A
uparwmenu	^[ O A

:query			Single-key query window
:inherit windows

:querya			Single-key query window for quoting
type		^@ TO ÿ

:querysr		Search & replace query window
type		^@ TO ÿ