Debian Codegraph @

README-9-post-installation

raw
1 Post Installation Setup
2 =======================
3
4 by Leslie S. Satenstein
5
6 1.0 Introduction
7 ==================
8 Following the execution of GNU-APL's "make install" (which is conceptually
9 performed by a system administrator with access permissions to directories like
10 /etc or /usr/), some additional setup activities by the user are normally
11 required. The user can try out GNU APL before this additional setup, but some
12 APL commands such as )SAVE will not work because the creation and specification
13 of directories that are used for storing files created by the user are the
14 responsibility of the user and not of the system administrator.
15
16 The description below assumes that ./configure of GNU APL was executed without
17 a prefix= option. If the prefix option was used then some of the paths further
18 down in this document may differ accordingly.
19
20 The "make install" procedure should have created a directory
21
22 /usr/local/etc/gnu-apl.d
23
24 or
25
26 /etc/gnu-apl.d
27
28
29 This directory contains:
30
31 keyboard1.txt a default USA PC104 keyboard layout
32 parallel_thresholds a presentation settings for apl multitasking
33 preferences a file to tailor apl for your system
34
35 This next section describes configuring GNU-APL using the preferences file.
36 The preference file comes pre-configured, but in some instances, the
37 global contents may not suit your requirements. Examples include the need to
38 maintain a private copy of some workspaces or modify some apl actions.
39
40 In this situation you may choose to create a sub-directory with a copy of the
41 above directory contents in your home directory. If so, then the name of that
42 directory should be $(HOME)/.config/gnu-apl/. The easiest way to create
43 this sub-directory and its initial content is the shell command:
44
45 cp -dR /etc/gnu-apl.d $HOME/.config/gnu-apl
46
47 The command may be somewhat different, for example if you used non-default
48 directories in your ./configure command.
49
50
51 1.1 KEYBOARDS
52 ===============
53 There are two physical keyboards predominately in use. One is the popular
54 American keyboard layout, model pc104, shown below as Keyboard1.txt:
55
56 PC104 USA Standard Keyboard:
57 ===========================
58 ╔════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦═════════╗
59 ║ ~ ║ !⌶ ║ @⍫ ║ #⍒ ║ $⍋ ║ %⌽ ║ ^⍉ ║ &⊖ ║ *⍟ ║ (⍱ ║ )⍲ ║ _! ║ +⌹ ║ ║
60 ║ `◊ ║ 1¨ ║ 2¯ ║ 3< ║ 4≤ ║ 5= ║ 6≥ ║ 7> ║ 8≠ ║ 9∨ ║ 0∧ ║ -× ║ =÷ ║ BACKSP ║
61 ╠════╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦══════╣
62 ║ ║ Q ║ W⍹ ║ E⍷ ║ R ║ T⍨ ║ Y¥ ║ U ║ I⍸ ║ O⍥ ║ P⍣ ║ {⍞ ║ }⍬ ║ |⊣ ║
63 ║ TAB ║ q? ║ w⍵ ║ e∈ ║ r⍴ ║ t∼ ║ y↑ ║ u↓ ║ i⍳ ║ o○ ║ p⋆ ║ [← ║ ]→ ║ \⊢ ║
64 ╠═══════╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩══════╣
65 ║ (CAPS ║ A⍶ ║ S« ║ D» ║ F ║ G ║ H ║ J⍤ ║ K ║ L⌷ ║ :≡ ║ "≢ ║ ║
66 ║ LOCK) ║ a⍺ ║ s⌈ ║ d⌊ ║ f_ ║ g∇ ║ h∆ ║ j∘ ║ kλ ║ l⎕ ║ ;⍎ ║ '⍕ ║ RETURN ║
67 ╠═════════╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═════════╣
68 ║ ║ Z ║ Xχ ║ C¢ ║ V ║ B£ ║ N ║ Mμ ║ <⍪ ║ >⍙ ║ ?⍠ ║ ║
69 ║ SHIFT ║ z⊂ ║ x⊃ ║ c∩ ║ v∪ ║ b⊥ ║ n⊤ ║ m| ║ ,⍝ ║ .⍀ ║ /⌿ ║ SHIFT ║
70 ╚═════════════╩════╩════╩════╩════╩════╩════╩════╩════╩════╩════╩══════════╝
71
72 The second physical layout, based on the international keyboard layout pc105
73 is the following, shown as keyboard2.txt
74
75 PC105 International standard Keyboard
76 =====================================
77 ╔════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════╦════════════╗
78 ║ ~ ║ !⌶ ║ @⍫ ║ #⍒ ║ $⍋ ║ %⌽ ║ ^⍉ ║ &⊖ ║ *⍟ ║ (⍱ ║ )⍲ ║ _! ║ +⌹ ║ ║
79 ║ `◊ ║ 1¨ ║ 2¯ ║ 3< ║ 4≤ ║ 5= ║ 6≥ ║ 7> ║ 8≠ ║ 9∨ ║ 0∧ ║ -× ║ =÷ ║ BACKSP ║
80 ╠════╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═╩══╦═════════╣
81 ║ ║ Q ║ W⍹ ║ E⍷ ║ R ║ T⍨ ║ Y¥ ║ U ║ I⍸ ║ O⍥ ║ P⍣ ║ {⍞ ║ }⍬ ║ ║
82 ║ TAB ║ q? ║ w⍵ ║ e∈ ║ r⍴ ║ t∼ ║ y↑ ║ u↓ ║ i⍳ ║ o○ ║ p⋆ ║ [← ║ ]→ ║ RETURN ║
83 ╠═══════╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╗ ║
84 ║ (CAPS ║ A⍶ ║ S ║ D ║ F ║ G ║ H ║ J⍤ ║ K⌸ ║ L⌷ ║ :≡ ║ "≢ ║ |⊣ ║ ║
85 ║ LOCK) ║ a⍺ ║ s⌈ ║ d⌊ ║ f_ ║ g∇ ║ h∆ ║ j∘ ║ k' ║ l⎕ ║ ;⍎ ║ '⍕ ║ \⊢ ║ ║
86 ╠════════╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩═══╦╩════╩═══════╣
87 ║ ║ < ¦║ Z ║ Xχ ║ C¢ ║ V ║ B£ ║ N ║ M ║ <⍪ ║ >⍙ ║ ?⍠ ║ ║
88 ║ SHIFT ║ > °║ z⊂ ║ x⊃ ║ c∩ ║ v∪ ║ b⊥ ║ n⊤ ║ m| ║ ,⍝ ║ .⍀ ║ /⌿ ║ SHIFT ║
89 ╚════════╩════╩════╩════╩════╩════╩════╩════╩════╩════╩════╩════╩═════════════╝
90
91 The 'preference' file will have a parameter setting to select one or the other
92 layout. More about this later.
93
94
95 2.0 The preferences file(s)
96 ===========================
97
98 2.1 Introduction
99 =================
100 The 'preferences' file contains parameter settings that control the behavior
101 of the GNU APL interpreter. Most of the settings can also be controlled by
102 corresponding command line options, but for most settings it is more convenient
103 to specify them once in one of the preferences files than by command line
104 options in every invocation of GNU APL.
105
106 The settings will allow you to:
107
108 o set text and background colors,
109 o assign directories and workspace locations,
110 o location of logs and history file(s), and
111 o other operational parameters.
112
113
114 The 'preferences' file should reside:
115
116 (1) in directory gnu-apl.d of the system configuration directory. or
117 (2) in directory .config/gnu-apl in the user's home directory.
118 (3) in both mentioned directories (see below)
119
120 In both cases the configuration file name within each must be 'preferences'
121
122 The system configuration directory for GNU/Linux is usually /usr/local/etc/
123 or /etc. During the setup of GNU-APL (refer to README-2-configuration) you
124 have the opportunity to choose a different location. It can be overridden
125 at compile time by:
126
127 (a) ./configure --sysconfdir=somewhere-else
128 (b) ./configure --sysconfdir=/home/(your_username)/.config/gnu-apl
129
130
131 2.2 Local version of preferences.
132 =================================
133 To create your own preference file, create the following directory.
134
135 /home/(your_username)/.config/gnu-apl
136
137 copy the system installed /usr/local/etc/gnu-apl.d to
138
139 /home/your_username)/.config/gnu-apl
140
141
142 If both your own preferences file and the "gnu-apl.d" are present in their
143 respective directories then the local copy overrides the settings common
144 to both files.
145
146 Command line options take precedence over settings made in either of these
147 files.
148
149 The initial content of this 'preferences' file contains a commented list of
150 all possible settings. You should not remove parameter setting lines but
151 rather comment or uncomment them.
152
153 The balance of this README-9 file describes the parameter setting for GNU-APL.
154
155 3.0 WELCOME MESSAGE
156 =====================
157 By default GNU-APL displays a welcome message on start-up.
158 Usually you will set it once and forget about it.
159
160 The corresponding command line option for no welcome message is --silent.
161
162 The default setting in the preferences file(s) is:
163 #
164 Welcome Yes (default)
165 # Welcome No
166 #
167
168
169 3.1 OUTPUT COLORING
170 ======================
171 The default GNU-APL configuration as delivered, is tailored for terminals
172 displaying a white background. The background colors that APL will use can be
173 overridden.
174
175 There are options to switch to black background, to no colors,
176 or even to allow coloring of GNU-APL displayed output.
177
178 Output coloring will cause problems when, for example:
179
180 (a) you run GNU-APL as script
181 (b) you use a black background
182 (c) you run GNU-APL from emacs
183 (d) you run GNU-APL from a different terminal than color xterm
184
185 In case (a) you should use the --script command line option and
186 leave the default Color setting (see #2 below).
187
188 In cases (b), (c), and (d) you can uncomment the 'Color No' line below.
189 This only affects the initial state of output coloring; you can
190 re-enable colors later with APL command ]XTERM ON.
191
192 The corresponding command line options are --Color and --noColor
193
194 If your terminal does not understand the ANSI escape sequences, or if you
195 prefer not to provide escape sequences, then you can set the color
196 parameter to CURSES and set color numbers to escape sequences as shown
197 below. This setting requires that certain environment variables (e.g. TERM)
198 are set properly and that your system's terminfo database contains correct
199 terminal type definitions for your choice.
200
201 The default setting in the preferences file(s) is:
202 #
203 Color ANSI (default)
204 # Color CURSES
205 # Color No
206 #
207
208
209 After starting APL you may want to disable coloring initially, but switch
210 to curses (the command ]COLOR can be given later on). You can enter the
211 color command twice:
212
213 ]color
214 ]COLOR ON
215 ]color off
216 ]color
217 ]COLOR/XTERM OFF
218
219
220 3.2 GNU-APL Terminal handling
221 ==============================
222 GNU-APL has one input and 4 output channels called CIN, COUT, CERR, and UERR
223
224 - CIN is the input channel and output. It echos the input typed by the user,
225 - COUT is the normal output of the APL interpreter,
226 - CERR is additional error information, in particular logging.
227 - UERR is output of the APL interpreter containing error messages,
228
229 CIN, COUT, and UERR write to default stdout while CERR writes to stderr.
230 Normally stdout and stderr are both displayed on the same terminal,
231 but output redirection as shown can make a difference. An example
232 of CERR redirection is:
233
234 apl 2>MyErrorLog.txt
235
236
237 When the interpreter changes from one output channel to another, for
238 instance from CIN to COUT after the user has entered a line, then an
239 escape sequence (actually, any short sequence of characters) is sent
240 to the real output channel (i,e. stdout or stderr). The new channel
241 determines which sequence is sent:
242
243 - CIN: CIN-SEQUENCE CLEAR-EOL
244 - COUT: COUT-SEQUENCE CLEAR-EOL
245 - CERR: CERR-SEQUENCE CLEAR-EOL
246 - UCERR: UERR-SEQUENCE CLEAR-EOL
247
248
249 3.3 OUTPUT COLOR ESCAPE SEQUENCES FOR ANSI TERMINALS
250 ======================================================
251
252 Output coloring is implemented as described below,
253 When the interpreter exits, then the sequence
254
255 RESET-SEQUENCE CLEAR-EOL
256
257 is sent to the terminal to cause it to set its the display colors
258 to their initial state.
259
260 The reason for sending CLEAR-EOL (i.e. clear to end of line) is to color
261 the entire next line not only the chars printed on the next line.
262
263 Unfortunately it is difficult, if not impossible, to read the current
264 color setting from the terminal. Therefore the following is assumed:
265
266 GNU-APL is started in a color xterm with white background".
267
268 Color xterm is a VT100 (or ANSI) compatible terminal emulation.
269 If this assumption is correct, then everything should be fine. Otherwise
270 you may want to change the escape sequence sent to the terminal.
271
272 The numbers below are the hexadecimal values of the bytes sent to the
273 terminal; 27 (hexadecimal 1b) is the escape character, for example. To
274 change some or all sequences, uncomment the corresponding line and change
275 the hex numbers (most likely the columns background and foreground).
276 Each sequence can be up to 20 characters long. By the way // refers to
277 the start of comments placed to the right of the terminal control
278 sequence. The octothorpe (#) is the character placed at the left margin.
279
280 The default setting in the preferences file(s) is:
281 #
282 # VT100: foreground background
283 # color | | color
284 # V V
285 # // ESC [ 0 ; 3 fg ; 4 bg m
286 # CIN-SEQUENCE 1b 5b 30 3b 33 30 3b 34 37 6d // ESC [0;30;47m
287 # COUT-SEQUENCE 1b 5b 30 3b 33 30 3b 34 38 6d // ESC [0;30;48m
288 # CERR-SEQUENCE 1b 5b 30 3b 33 35 3b 34 38 6d // ESC [0;35;48m
289 # UERR-SEQUENCE 1b 5b 30 3b 33 35 3b 34 38 6d // ESC [0;35;48m
290 # RESET-SEQUENCE 1b 5b 30 3b 33 39 3b 34 39 6d // ESC [0;39;49m
291 # CLEAR-EOL-SEQUENCE 1b 5b 4B // ESC [K
292 # CLEAR-EOS-SEQUENCE 1b 5b 4A // ESC [J
293 #
294 # On a black background (still assuming VT100 so that the CLEAR-EOL-SEQUENCE
295 # does not need to be re-defined), the following may be more suitable:
296 #
297 # CIN-SEQUENCE 1b 5b 30 3b 33 32 3b 34 30 6d // ESC [0;32;40m
298 # COUT-SEQUENCE 1b 5b 30 3b 33 37 3b 34 30 6d // ESC [0;37;40m
299 # CERR-SEQUENCE 1b 5b 30 3b 33 31 3b 34 30 6d // ESC [0;31;40m
300 # UERR-SEQUENCE 1b 5b 30 3b 33 31 3b 34 30 6d // ESC [0;31;40m
301 # RESET-SEQUENCE 1b 5b 30 3b 33 37 3b 34 30 6d // ESC [0;37;48m
302 #
303
304 Since all lines are commented out, the ESC sequences assumed by the interpreter
305 are used. The lines are only shown as a template for the ESC sequences of the
306 actual terminal.
307
308
309 3.4 OUTPUT COLOR NUMBER FOR CURSES
310 ====================================
311 There is second way of specifying colors that uses the curses library.
312 Instead of specifying the escape sequences sent to the terminal you
313 only need to specify the colors wanted and curses will provide the escape
314 sequences needed.
315
316 The default setting in the preferences file(s) is:
317 # Numbers for colors seem to be (nota bene: the author is color-blind):
318 #
319 # 0: black
320 # 1: blue
321 # 2: green
322 # 3: cyan
323 # 4: red
324 # 5: magenta
325 # 6: yellow
326 # 7: white
327 #
328 # The colors are specified as numbers like this:
329 #
330 # CIN-FOREGROUND 0
331 # CIN-BACKGROUND 7
332 # COUT-FOREGROUND 2
333 # COUT-BACKGROUND 7
334 # CERR-FOREGROUND 5
335 # CERR-BACKGROUND 8
336 # UERR-FOREGROUND 5
337 # UERR-BACKGROUND 8
338 #
339 # or, for dark background:
340 #
341 # CIN-FOREGROUND 2
342 # CIN-BACKGROUND 0
343 # COUT-FOREGROUND 7
344 # COUT-BACKGROUND 0
345 # CERR-FOREGROUND 5
346 # CERR-BACKGROUND 0
347 # UERR-FOREGROUND 5
348 # UERR-BACKGROUND 0
349 #
350
351 Do not mix the two methods (escape sequences vs. color numbers).
352 If they are mixed then the last entry processed in this file determines
353 which method will be used. Also, the numbers for colors are different
354 in each method.
355
356
357 3.5 INPUT ESC SEQUENCES
358 =========================
359
360 Below is a brief explanation of how you can configure the ESC (escape or
361 other) sequence sent by the terminal's cursor-up, cursor-down, cursor-left,
362 cursor-right, Home, End, Ins, and Del keys.
363
364 The sequences can be set explicitly (in the following) or via CURSES
365 The latter (CURSES) may fail to work because the sequences reported by
366 CURSES may be different from the sequences sent by the keyboard.
367
368 The default setting in the preferences file(s) is:
369 #
370 Keyboard NOCURSES (default)
371 # Keyboard CURSES
372 #
373 # KEY-CURSOR-UP 1b 5b 41
374 # KEY-CURSOR-DOWN 1b 5b 42
375 # KEY-CURSOR-RIGHT 1b 5b 43
376 # KEY-CURSOR-LEFT 1b 5b 44
377 # KEY-CURSOR-END 1b 5b 46
378 # KEY-CURSOR-HOME 1b 5b 48
379 # KEY-INSMODE 1b 5b 32 7e
380 # KEY-DELETE 1b 5b 33 7e
381 #
382
383
384 3.6 SHARED VARIABLES
385 ======================
386 Shared variables are perhaps a feature with which you may not be familiar.
387 To work with certain software packages on the host computer, your program
388 must follow a discipline. The variables involved with this discipline are
389 listed below.
390
391 Shared variables are represented by:
392 Offer to share var. (⎕SVO),
393 shared var. Retraction (⎕SVR),
394 shared var. Control (⎕SVC),
395 shared var. Query (⎕SVQ),
396 shared var. State (⎕SVS)
397
398 Using 'Shared variables' starts (forks) an independent helper process
399 (APserver) to communicate with other APL processors.
400
401 If you do not need all the above functions then you can (and should) prevent
402 accidental starting of the APserver by setting SharedVars to Disabled. If
403 SharedVars are disabled then GNU APL starts a little faster and, of course,
404 ⎕SVO and friends won't work.
405
406 The default setting in the preferences file(s) is:
407 # The corresponding command line options are --SV and --noSV
408 #
409 SharedVars Enabled (default)
410 # SharedVars Disabled
411
412
413 3.7 LOGGING FACILITIES
414 =========================
415 By default, dynamic logging is disabled and the following settings have no
416 effect.
417
418 Logging is a facility that is occasionally used for debugging purposes. As
419 a regular user, you should have no requirement to make use of dynamic logging.
420
421 To enable dynamic logging, you must recompile the interpreter, specifying
422 dynamic logging. The following three steps are required.
423
424 ./configure DYNAMIC_LOG_WANTED=yes <... other configure options>
425 make
426 make install (or try: src/apl)
427
428 Otherwise you can specify the Logging facilities (numbered 1-43 or more)
429 that can be enabled when the APL interpreter starts, This option can
430 be used several times.
431
432 Checkout the GNU-APL command ]LOG for available logging facilities
433
434 The corresponding command line option is -l <num>
435
436 Logging 1
437 Logging 2
438 ...
439 Logging 37
440
441
442 3.7 APL LIBRARIES
443 ====================
444
445 GNU-APL uses library numbers from 0 to 9 in commands )LOAD, )SAVE, and )COPY,
446 library 0, if enabled (see below) refers to our own collection of apl
447 workspaces.
448
449 For
450 example 1:
451
452 )LOAD 1 workspace
453
454 example 2:
455 Interpreter commands )IN and )OUT use library number 0 implicitly;
456 )LOAD, )SAVE, and )COPY use library number 0 implicitly when no
457 library number is given.
458
459 WARNING: Each library (directory) assigned to LIBREF-0 must be unshared and
460 unique.
461
462 For example, issuing the ")CONTINUE" command, results in storing the CONTINUE
463 workspace therein. Storing CONTINUE will overwrite the previous one. Sharing
464 the default LIBREF-0 library among different users will be likely to have
465 very undesirable effects.
466
467 Within the preferences file, the directories corresponding to the library
468 numbers can be configured as shown below.
469
470 Library numbers 3, 4, and 5 are used (and often overwritten!) to store
471 libraries that are shipped with GNU APL. )SAVEing or )DUMPing workspaces into
472 these directories is therefore a bad idea.
473
474 If GNU APL is used by different programmers on the same machine, then the
475 following scheme for library reference numbers is recommended:
476
477 0 for workspaces that are only accessible by one user (or, in GNU/Linux terms,
478 by the owner of the file), This directory typically exists somewhere below
479 $HOME.
480
481 1 for workspaces that are only accessible by the group (normally the GNU/Linux
482 group to which the user belongs).
483
484 2 for workspaces that are readable by every user on the machine.
485
486 In other words: the library numbers 0, 1, and 2 correspond to the 'owner',
487 'group', and 'all' permissions of the files respectively. However, GNU-APL
488 does not set these permissions based on the library numbers (because all
489 this is only a recommended convention) and the users or group members
490 are responsible for setting permissions on workspace files or directories.
491
492 For GNU/Linux machines that are only used by a single user, the user may
493 set up the directories libraries 0-2 and 6-9 as needed.
494
495 The default setting in the preferences file(s) reflects the above scheme
496 (although commented out) and only sets up the directories for libraries that
497 are installed by GNU APL itself. For example (details may vary due to
498 ./configure options):
499 #
500 # LIBREF-0 /home/xyz/my-own-libs
501 # LIBREF-1 /home/xyz/my-group-libs
502 # LIBREF-2 /group/abc/other-libs
503 LIBREF-3 /usr/local/lib/apl/wslib3
504 LIBREF-4 /usr/local/lib/apl/wslib4
505 LIBREF-5 /usr/local/lib/apl/wslib5
506 # LIBREF-6 /usr/lib/gnu-apl/lib-6
507 # LIBREF-7 /usr/lib/gnu-apl/lib-7
508 # LIBREF-8 /usr/lib/gnu-apl/lib-8
509 # LIBREF-9 /usr/lib/gnu-apl/lib-9
510 #
511
512 3.8 READLINE HISTORY PARAMETERS
513 =================================
514
515 GNU APL can provide a history of lines entered by the user in immediate
516 execution mode and ∇-edit mode.
517
518 As shown below, the number of history lines and the location of the history
519 file can be configured. Some users prefer to have only one history file (and
520 in that case $HOME/.config/gnu-apl/apl.history might be a suitable file name).
521
522 Other users prefer to have a history file in the current directory so that
523 they can work in different APL projects in parallel and have separate
524 histories, one for each project. In that case, .apl.history is a better
525 choice for the file name, because the file is hidden and relative. This is
526 also the default in the preferences file(s):
527
528 READLINE_HISTORY_LEN 500
529 READLINE_HISTORY_PATH .apl.history
530
531 The history can serve two purposes: to recall lines that were previously
532 entered and to list what was recently done (with the apl )HISTORY command).
533 For the latter purpose it is normally convenient to show the new ⎕CR of a
534 function that was edited instead of the command that started the editor.
535 The following parameter controls whether the editor command (like ∇foo )
536 or the new ⎕CR of the function shall be inserted into the history.
537
538
539 3.9 EDITOR OPTIONS
540 ====================
541 GNU-APL comes with a built-in editor. The following setting controls which
542 of the lines that were entered in function editing mode are being inserted
543 into the history.
544
545 The 'Always' setting restores the edited function regardless of its current
546 state. The 'Never' setting is useful for automated test scripts because it
547 avoids redundancy in the log files produced.
548
549 The default (modified) is a compromise that inserts only the editor
550 command if the function was opened but not changed (e.g. ∇FOO[⎕]∇ )
551 and the entire new ⎕CR if the function was changed or (newly created).
552 With that setting, one can cut-and-paste from a history file into an
553 interactive session to 'redo' a function modification.
554
555 The default setting in the preferences file(s) is:
556 #
557 # NABLA-TO-HISTORY Never
558 NABLA-TO-HISTORY Modified (default)
559 # NABLA-TO-HISTORY Always
560 #
561
562
563 3.10 BACKUP OPERATIONS
564 ========================
565 In general, if one is modifying a workspace, it is best to load it and
566 immediately resave it under a new name. The GNU-APL options available are to
567 create a backup before a )SAVE or )DUMP WORKSPACE command. The workspace
568 created by )CONTINUE is saved, but not backed up.
569
570 The default setting in the preferences file(s) is:
571 #
572 BACKUP_BEFORE_SAVE yes
573 #
574
575 To recover a backup workspace (refer to the LIBREF-0 option chosen),
576 change to the directory indicated. Therein you will see the workspace
577 you were using and the same workspace with a .bak appended. Example:
578 consider a recovery action for the 'meta' workspace In the directory
579 referred to by LIBREF-0 you would note:
580
581 meta.xml meta.xml.bak
582
583 For example, delete the meta.xml or rename it to something else.
584 Restore the original meta.xml (rename the meta.xml.bak to meta.xml).
585
586
587 3.11 KEYBOARD LAYOUT
588 =======================
589 GNU APL assumes a particular layout of your keyboard (and assumes that you
590 do your best to obtain that layout). That assumed layout is shown when you
591 give the ]KEYB command.
592
593 If your physical keyboard layout differs from the assumed keyboard for some
594 reason, then the ]KEYB command will show the wrong layout. You can correct
595 this difference providing your own keyboard file which (when specified) is
596 shown by the
597
598 ]KEYB command instead of the assumed layout.
599
600 You can choose between one of the files called 'keyboard1.txt' or
601 keyboard2.txt. If your computer has a different keyboard layout, you may
602 create your own version as keyboard.txt and revise the parameter as shown in
603 the following:
604
605 #
606 # KEYBOARD_LAYOUT_FILE /etc/gnu-apl.d/keyboard1.txt
607 #
608
609 12.0 Abnormal Termination
610 ==========================
611
612 Normally you exit GNU APL by issuing the command )OFF. Hitting ^D
613 (aka. end-of-input) once can be used to end the execution of most other
614 programs, but has no effect in GNU APL.
615
616 You can make GNU APL exit after a number of consecutive ^Ds by specifying
617 a (small) positive number as shown below: Note that the interpreter will
618 always exit if a large number of ^Ds (or EOFs) are read-in in rapid
619 succession. NB: ^Ds may exist within a script and need not be entered via
620 the keyboard. Setting the value to zero establishes the system default.
621
622 #CONTROL-Ds-TO-EXIT 7
623 CONTROL-Ds-TO-EXIT 0
624
625 13.0 Default Print Width
626 ===========================
627
628 GNU-APL defaults the ⎕PW to 80
629
630 If the terminal that you normally use has fewer or more columns, then you
631 may want to specify a different initial value for ⎕PW below. A further option
632 is the Windows Change (WINCH setting).
633
634 With the WINCH-Setting option, on startup you can cause the Window Change
635 (WINCH) signal (which is sent, for example, if the size of a window is changed)
636 to set ⎕PW to the terminal width setting contained in the WINCH signal.
637
638 The intended effect is that re-sizing of the terminal window will cause GNU-APL
639 to adapt itself to the new window size. This appears to work on GNU/Linux but
640 may not work on other platforms! USE AT YOUR OWN RISK.
641
642 # INITIAL-⎕PW 80
643 # WINCH-SETS-⎕PW Yes
644
645
646 14.0 Security Settings
647 =======================
648
649 Under certain circumstances, for example if GNU APL is used as a CGI script
650 for publicly accessible web pages, it may be desireable to disable certain
651 capabilities that could otherwise be abused to access system resources via
652 the GNU APL capabilities.
653
654 The following lines show examples of GNU APL capabilities that can be
655 disabled. The security settings are put into profile [1] which means that
656 they only have an effect if:
657
658 (1) GNU APL was ./configured with SECURITY_LEVEL_WANTED=1, and
659 (2) the profile (i.e the -p command line option) with which GNU APL was
660 started matches the profile for which the setting was made (if any)
661
662 If a disabled capability is being used then it will throw a DOMAIN_ERROR
663 and the )MORE command will indicate a security violation. For example:
664
665 #
666 Profile 1
667 disable_Quad_SQL yes # disable ⎕SQL
668 disable_Quad_FIO no # do not disable ⎕FIO
669 disable_native_functions yes # disable A ⎕FX B (native fnctions)
670