Debian Codegraph @

INFO

raw
1 $MirOS: contrib/code/jupp/INFO,v 1.12 2018/02/01 02:33:43 tg Exp $
2 ------------------------------------------------------------------
3
4 Jupp
5 Joe's Own Editor 3.1
6
7 A Free ASCII-Text Screen Editor for UNIX
8 by Joseph Allen (<= 2.8)
9 Marek 'Marx' Grac (=> 2.9)
10 by Joseph Allen again (=> 3.0)
11 by Thorsten "mirabilos" Glaser (jupp mods)
12
13 Get it from:
14 http://mirbsd.de/jupp
15 http://sourceforge.net/projects/joe-editor
16
17 If you have questions, problems or suggestions,
18 Use sourceforge: mailing list, bug tracker, discussion groups.
19
20 JOE is the professional freeware ASCII text screen editor for UNIX.
21 It makes full use of the power and versatility of UNIX, but lacks the steep
22 learning curve and basic nonsense you have to deal with in every other UNIX
23 editor. JOE has the feel of most IBM PC text editors: The key-sequences are
24 reminiscent of WordStar and Turbo-C. JOE is much more powerful than those
25 editors, however. JOE has all of the features a UNIX user should expect:
26 full use of termcap/terminfo, excellent screen update optimizations (JOE is
27 fully usable at 2400 baud), simple installation, and all of the
28 UNIX-integration features of VI.
29
30 JOE's initialization file determines much of JOE's personality and
31 the name of the initialization file is simply the name of the editor
32 executable followed by "rc". JOE comes with five "rc" files in addition to
33 the basic "joerc", which allow it to emulate these editors:
34
35 JPICO - An enhanced version of the Pine mailer system's PICO
36 editor.
37
38 JSTAR - A complete imitation of WordStar in non-document mode
39 including many "JOE" extensions.
40
41 RJOE - A restricted version of JOE which allowed you to edit
42 only the files specified on the command line.
43
44 JMACS - A GNU-Emacs imitation which is about one order of
45 magnitude smaller than real GNU-EMACS.
46
47 JUPP - A modern editor for programmers with WordStar-like
48 bindings; an improvement over classical JSTAR
49
50 Features:
51
52 JOE has a well thought-out user-interface with great attention to
53 detail. The Page Up and Page Down functions do not move the cursor relative
54 to the edges of the screen. Left and Right arrow keys work at the beginning
55 and ends of lines. The cursor can move past the ends of lines without
56 jumping, but also without inserting or deleting extra spaces at the ends of
57 lines. Control characters and characters above 127 can be displayed and
58 entered- even ^Q and ^S. The cursor's row and column number can be
59 displayed in the status line.
60
61 The key layout is made to reduce terminal incompatibility nonsense.
62 ^Q and ^S are not used and both ^H and DEL are mapped to backspace. Case
63 does not matter in key sequences- ^K E, ^K e, and ^K ^E are each mapped to
64 the same function. The arrow keys and PageUp, PageDown, Home, End, Insert
65 and Delete keypad keys are read from the termcap entry and are assigned to
66 the proper functions. A simple initialization file, similar to Semware's
67 Q-EDIT, allows key-bindings, simple macros and help windows to be defined.
68
69 JOE has full termcap/terminfo support and will work on any terminal.
70 JOE has the best screen update optimization algorithm available. It uses
71 VT100-style scrolling regions the way they are supposed to be used (I.E.,
72 without building insert and delete line functions out of them) and has a
73 powerful line shifting (insert/delete character) algorithm which works even
74 if text goes past the ends of lines. JOE has deferred screen update to
75 handle typeahead and uses the baud rate reported by 'stty' to ensure that
76 deferral is not bypassed by tty buffering.
77
78 JOE has multiple windows and lacks the confusing notion of a named
79 buffers. You just have files and windows. When there are more windows than
80 can fit on the screen, the Goto-Next-Window function scrolls through them.
81 The same file can have multiple windows opened on it.
82
83 JOE has VI-style unix integration. You can filter a highlighted
84 block through a UNIX command. Also, each place in joe which accepts a file
85 name (including the command line) will also accept:
86
87 !command to pipe into or out of a command
88 >>filename to append to a file
89 filename,start,size to edit a portion of a file/device
90 - to use stdin or stdout
91
92 File names on the command line may be preceded by +nnn to start
93 editing at a specified line.
94
95 JOE has shell windows. You can run a shell in a window and any
96 output from commands run in the shell gets stored in a buffer.
97
98 JOE has an orthogonal event-driven design. Each prompt is actually
99 a normal edit buffer containing a history of all of the responses entered
100 for that prompt. You can use all of the normal edit commands to create file
101 names and search strings. You can use the up arrow key (or search backwards
102 and any other appropriate edit command) to go back through the history of
103 previous responses. Prompts are reentrant- meaning that edit commands which
104 require prompts can still be used inside of prompts.
105
106 JOE has TAB-completion and file selection menus. If you hit tab in
107 a file name prompt, the name is either completed or a menu of possible
108 matches appears.
109
110 JOE stores edit files in a doubly linked list of gap buffers which
111 can spill into a temporary file. You can edit files of any size up to the
112 amount of free disk space and there are no line-length restrictions. Since
113 the buffering system is block-based, JOE will incur only a minimum of
114 swapping on heavily loaded systems.
115
116 When you ask for help, one of six small help reference cards appears
117 on the screen and remains while you continue to use the editor. Here is the
118 first help card for Joe:
119
120 CURSOR GO TO BLOCK DELETE MISC EXIT
121 ^B left ^F right ^U prev. screen ^KB begin ^D char. ^KJ reformat ^KX save
122 ^P up ^N down ^V next screen ^KK end ^Y line ^T options ^C abort
123 ^Z previous word ^A beg. of line ^KM move ^W >word ^@ insert ^KZ shell
124 ^X next word ^E end of line ^KC copy ^O word< ^R retype FILE
125 SEARCH ^KU top of file ^KW file ^J >line SPELL ^KE new
126 ^KF find text ^KV end of file ^KY delete ^_ undo ^[N word ^KR insert
127 ^L find next ^KL to line No. ^K/ filter ^^ redo ^[L file ^KD save
128
129 Other editor flavours differ; to get help for those, press either
130 Ctrl-J (^J) for jstar and jupp, ^G for jpico, Ctrl-X followed (Ctrl depressed)
131 by h (^Xh) for jmacs or, for joe and rjoe, ^KH (Ctrl-K+h).
132
133 The jupp and jstar flavours attempt to imitate WordStar in
134 non-document mode; see here for more documentation on WordStar keybindings:
135
136 - http://www.stormbringer.org/pers/siaru/tlg/wsfile.txt
137
138 - http://www.stormbringer.org/pers/siaru/tlg/ws5file.txt
139
140 JOE has a powerful set of editing commands suitable for editing both
141 text files and programs:
142
143 - UTF-8 support
144
145 - Syntax highlighting
146
147 - search and replace system, including powerful regular
148 expressions (including matching of balanced C expressions).
149
150 - tags file search
151
152 - paragraph format
153
154 - undo and redo
155
156 - position history allows you to get back to previous
157 editing contexts and allows you to quickly flip between
158 editing contexts
159
160 - multiple keyboard macros
161
162 - block move/copy/delete/filter
163
164 - rectangle (columnar) mode
165
166 - overtype/insert modes
167
168 - indent/unindent
169
170 - goto matching ( [ {
171
172 - auto-indent mode
173
174 Plus many options can be set:
175
176 - can have EMACS-style cursor re-centering on scrolls
177
178 - characters between 128-255 can be shown as-is for
179 non-English character sets
180
181 - Final newline can be forced on end of file
182
183 - Can start with a help screen on
184
185 - Left/Right margin settings
186
187 - Tab width
188
189 - Indentation step and fill character
190
191 /* [email protected] */ /* Joseph H. Allen */
192 int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
193 +r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2
194 ]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}