-
Notifications
You must be signed in to change notification settings - Fork 0
/
ref.man
596 lines (592 loc) · 17 KB
/
ref.man
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
.TH DECO 1
.rm ES
.rm EE
.de ES
.PP
.nf
.in +0.5i
..
.de EE
.in -0.5i
.fi
..
.SH NAME
deco \- visual shell for UNIX
.SH FORMAT
.B deco
[directory]
.SH DESCRIPTION
.PP
DECO, or Demos Commander, is a visual interface for the UNIX
operating system, developed by the motives of the widely known
Norton Commander.
.PP
Control characters are designated below as ^X, which means:
CTRL+X. The "~" in file names means "home directory".
.SH "Functional Keys"
DECO is adjusted to the type of terminal by means of the
termcap terminal description file. While in operation, DECO
uses 10 functional keys F1-F10. To determine the keys,
'termcap' descriptors are used:
.IP "f0...f9"
for F10, F1...F9 keys
.IP "kl, kr, ku, kd"
for left, right, up, down arrow keys respectively
.IP "kh, kH, kP, kN"
for home screen, screen end, page up, page down, respectively
.IP "kI"
insert mode
.IP "kD"
delete character
.PP
For terminals without an additional keyboard, it is possible to
enter commands by control characters or <Esc>\ X sequence.
.PP
Here is the Commands Table:
.ES
Command Key Alternative
(PC key) VT-220 input
-------------------------------------
F1 -1- ESC 1
F2 -2- ESC 2
F3 -3- ESC 3
F4 -4- ESC 4
F5 -5- ESC 5
F6 -6- ESC 6
F7 -7- ESC 7
F8 -8- ESC 8
F9 -9- ESC 9
F10 -0- ESC 0
arrow up up ESC u
arrow down down ESC d
arrow left left ESC l
arrow right right ESC r
Home Home ESC h
End End ESC e
PgUp PrevPage ESC p
PgDn NextPage ESC n
Ins Ins ^T
Del Del ^G
.EE
.PP
Note that for some devices (for example, PC\ AT console) F1-F10
keys are used, while for others - keys 1-9, 0 of the additional
keyboard.
.SH "Command Canceling and Exit from Deco"
.PP
In any state of DECO, press F10 to reset and cancel the
current menu. If DECO is in the usual mode (system command
input), F10 calls for an exit from the DECO menu:
.ES
Do you want to exit from DECO commander?
Yes No Shell
.EE
.PP
Yes (exit), No (no exit), and Shell (run csh) should be selected
by the arrow keys and the RETURN key (ENTER for IBM PC). If
Shell is selected, you have to input the exit command in order
to return to DECO.
.SH "Getting Help"
.PP
F1 provides you with a built-in help message. Press F10 to return to
DECO.
.SH "Deco Windows and Operation Modes"
.PP
Usually, DECO shows two panels (right and left ones), two
directories are displayed there. One of these panels is the
current one, where all the operations take place (the name of
this panel is printed in italics). The second panel is used to
point out the place to copy, move or link files, as well as to
present information about the current directory (see the ^L
command). The TAB command (Tab or ^I key) serves as a fast way
to select another panel as the current one, the key ^U is used
to swap panels on the screen.
.PP
System commands are executed from DECO in the same manner, as
from the usual interpreter sh or csh (see below, Running UNIX
Commands). DECO calls for the csh interpreter to execute
commands. The single restriction is that SHELL is restarted
each time, so variable values, aliases, jobs, etc. are not memorized.
Initially, DECO is set to the screen mode, where panels, status
line (in the upper part of the screen, which includes the names
of machine, user, terminal and current time), and hint line (in
the lower part of the screen) are displayed. In this mode, all
DECO commands are executed (F1 - F10 and others). After a DECO
command is over, DECO remains in the command input mode. No
panels and prompts are displayed in this mode (for faster
operation). In this mode, only system commands are executed,
as well as some DECO commands, such as ^B (operation with
History commands journal). Once an empty command (Return) is
entered, DECO returns to the screen mode, and panels are
displayed. In some cases, DECO can move to the screen mode
without highlighting the panels (for example, calling for
History from the non-screen mode). During operations with
different menus, DECO moves to the menu mode. In this case,
the commands listed in the menu are executed, arrows move the
cursor along the menu, F10 means always "Cancel the MENU mode".
.SH "Executing Unix Commands"
.PP
DECO is usually set to the screen mode when you can use arrows
to travel across the directory and select files, as well as
form a command line by entering characters. You can add the
names of the current and selected files to the end of the
command line by the LineFeed or ^J commands. Using ^E and ^X
commands, it is possible to move along the History, i.e. to
"recall" previously executed commands. To erase the command
line, use the ^Y command.
.PP
System commands executed are memorized in the History. You can
call for History from the DECO main menu, as well as by the ^B
command. In History, arrows move the cursor along the
commands, the ^J command serves to insert the current file
name into the command line, Return - to insert the current file
name and execute the command.
.PP
The EDIT mode serves to correct the command line. This mode is
characterized by the fact that a directory name is not
italicized in DECO panels. The ^P command turns this mode on
and off. In EDIT, arrows move the cursor along the command line
and across History. Commands Del or ^G delete characters under
the cursor.
.PP
Command ^V serves for quoting non-printable characters.
Next symbol, following this command, will be inserted into command line.
.SH "File Types"
.PP
DECO differs regular, special files and directories.
Type of file is marked to the left of file name by character tag.
There are following file tags:
.IP "space"
regular file
.IP "*"
executable file
.IP "/"
directory
.IP "&"
inaccessible directory
.IP "$"
character device
.IP "#"
block device
.IP "="
FIFO file
.IP "~"
symbolic link
.IP "@"
inaccessible symbolic link
.IP "!"
named socket
.SH "Handling Selected Files"
.PP
Selected files are used to set filenames for commands. Only
regular files can be selected. To select the files (and to cancel
the selection), the following commands can be used:
.IP "Ins or ^T"
Toggle selection of current file
.IP "+"
Select group of files according to the pattern
.IP "-"
Unselect group of files according to the pattern
.PP
If there are no selected files, the current file is used in the
command.
.SH "Entering Menu"
.PP
F9 brings you to the MENU mode. To execute the command, select
the desired command and press Return.
.PP
The menu's structure is given below. Many commands can be
called for without panel mode, the corresponding keys are
given in the right column:
.ES
Left /
Brief
Long
Full
Status ^L
Align extensions
Sort by name
Extension
Time
Size
Unsorted
Reverse
Sort by type
Re-read ^R
Pattern
Files /
Help F1
User menu F2
View F3
Edit F4
Copy F5
Link
Symlink
Rename/move F6
Make directory F7
Delete F8
Select group +
Unselect group -
Quit F10
Commands /
Run subshell
Compare directories
Find file ^K
History ^B
Home directory ^\\
Root directory ^_
Redraw screen ^]
Menu file edit
Extensions file edit
Options /
Switch panels ^I
Swap panels ^U
Full screen ^F
Double width ^W
Command line mode ^P
Show hidden files
Viewer...
Editor...
Shell...
Save setup
Right /
Brief
Long
Full
Status ^L
Align extensions
Sort by name
Extension
Time
Size
Unsorted
Reverse
Sort by type
Re-read ^R
Pattern
.EE
.PP
Commands from the menu are described in detail below.
.SH "Customizing Panels"
.PP
LEFT and RIGHT sections are used to alter states of the left
and right panels, respectively. The commands Brief, Long, Full
set different levels of detailization of information about
files. The command Status turns the status panel on and off,
this panel is situated in the opposite panel.
Command Align\ extensions switches mode of flushing file name extensions
to the right margin.
.PP
The next group of commands manages sorting of file names
inside window.
Files are sorted by type (directory, block device, etc.)
and inside each type - by some parameter (name, extension, size,
modification time).
Commands Sort\ by\ name, Extension, Time, Size choose
mode of sorting by parameter.
Command Unsorted turns off parameter sorting mode.
Command Sort\ by\ type turns off sorting by file type.
Command Reverse sets reverse sorting mode.
.PP
The command Re-read
re-reads the directory. The command Pattern sets a
pattern of "visible" filenames. The pattern is set according
to the usual UNIX rules of handling filenames: ? means "any
symbol", * means "any number of any symbols", [symbols] - "any
of these symbols", ^ in the first position - "every file not
matching the pattern". See `File Patterns' for more detail. For
example, the pattern "^*.[bo]" means "not to show object and
backup files".
.SH "Handling Files"
.PP
The FILES section is intended for operating files. Most
commands of this section are placed on the functional keyboard.
Copy, link, and move commands use another panel to show the
place to copy, move or link files to by default.
.IP "Help - F1"
Get help.
.IP "User menu - F2"
Enter user-defined menu.
.IP "View - F3"
View the contents of the current file. The built-in
facility is used by default. Using the command
Options/Viewer, you can set the name of an external
utility, e.g., ``more''. The command `Options/Save setup'
saves the set-up.
.IP "Edit - F4"
Edit the current file. The built-in editor is used
by default. Using the Options/Editor command, you
can set the name of an external editor, e.g., ``vi'',
and, by means of the command Options/Save, you
can store it for future recalling.
.IP "Copy - F5"
Copy the current or selected files.
.IP "Rename/move - F6"
Move the files or the directory.
.IP "Make directory - F7"
Create a new directory.
.IP "Delete - F8"
Delete the files or the directory.
.IP "Link"
Make a reference to the file.
.IP "Symlink"
Make a symbolic reference to the file.
.IP "Select group - +"
Select group of files.
.IP "Unselect group - -"
Unselect group of files.
.SH "Other Commands"
.PP
The Commands section includes various commands:
.IP "Run subshell"
Temporary exit into system shell (cshell). The exit command returns
you to DECO.
.IP "Compare directories"
Compare the left and right directories. Files, which are
different, are selected.
.IP "Find file"
Place the cursor onto the file by its name.
.IP "History"
Enter the command history menu. Select the
command and press Return or ^M to execute it. Pressing
LineFeed or ^J, you can insert the command into the command
line and re-edit it.
.IP "Home directory"
Return to the home directory.
.IP "Root directory"
Return to the root directory (/).
.IP "Redraw screen"
Redraw the screen.
.IP "Menu file edit"
Edit user menu file.
.IP "Extensions file edit"
Edit extension file.
.SH "Adjusting Modes"
.PP
The Options section serves to set and save DECO operation modes:
.IP "Switch panels"
Move to the opposite panel.
.IP "Swap panels"
Swap panels on the screen
.IP "Full screen"
Adjust the panels' height to the full-screen size
.IP "Double width"
Adjust the panels' width to the full-screen size
.IP "Command line mode"
Switch the command line editing mode on and off. In
this mode, the arrows move only along the command line.
.IP "Show hidden files"
Hide files, whose names begin with dot.
.IP "Viewer"
Sets an external viewer utility to go through the files
.IP "Editor"
Sets a new external editor utility
.IP "Shell"
Choose one of system command interpreters, /bin/sh or /bin/csh.
.IP "Save setup"
Saves the settings in the file ~/.decoini. When
DECO is started up, the files ~/.decoini, or
/usr/local/lib/deco/initfile, or /usr/lib/deco/initfile
are read.
.SH "Built-in Commands"
.IP "cd"
.IP "chdir"
Go to home directory.
.IP "cd dirname"
.IP "chdir dirname"
Go to specified directory.
.IP "set name value"
.IP "setenv name value"
Set value of global variable.
.IP "unset name"
.IP "unsetenv name"
Delete global variable.
.IP "env"
.IP "printenv"
Print list of global variables.
.IP "pwd"
Print current directory name.
.IP "exit"
Exit from DECO.
.SH "Built-in Editor Commands"
.PP
The following commands are available in the built-in editor:
.IP "Arrows"
Move cursor through the file.
.IP "Printable characters"
Insert characters into the text.
.IP "Del"
Delete the character under the cursor.
.IP "BackSpace"
Delete the character to the left of the cursor.
.IP "^Y"
Delete the current line.
.IP "^K"
Delete the text starting from the cursor till the end of line.
.IP "Save - F2"
Save the file.
.IP "Raw - F3"
Switch the displaying characters with codes greater than 127.
.IP "Top - F5"
Go to the beginning of the file.
.IP "Bottom - F6"
Go to the end of the file.
.IP "Search - F7"
Text/binary search.
.IP "Home - F8"
Go to the beginning of the screen.
.IP "Spaces - F9"
Switch on/off the space and tabulation displaying mode.
Spaces are designated by dim points, and tabulations -
by dim underlines.
.IP "Quit - F10"
Exit the editor.
.SH "User Menus"
.PP
DECO has a possibility to create menus defined by the user. The
Command F2 reads the file .menu, which includes the
description of the menu. If the file .menu is not found, the
file ~/.menu, or /usr/local/lib/deco/menu, or
/usr/lib/deco/menu is being read. The menu description file has
the following structure:
.ES
# Comments
<character> <description of command>
<command>
<character> <description of command>
<command>
. . .
.EE
.PP
The character is either a Roman letter, or a digit, or a name
of the functional keys F1- F10. If you press the key, a command
of the menu is executed. The command may include macros like %X
which are replaced in the following way:
.ES
%f name of current file
%b name of current file without extension
%t list of selected files
%d name of current catalogue
%c full name of current catalogue
%h full name of home catalogue
%u name of user
%g name of group of users
%% symbol '%'
.EE
.PP
Command can begin with the following control symbols:
.IP "-"
Remain in the panel mode after execution.
.IP "@"
Don't append this command to command history.
.IP "!"
Interpret command string as file name and read user menu from this file.
Using this feature you can implement submenus.
.PP
Here is an example of the user menu file:
.ES
F1 Main menu
!%h/.menu
F2 Default menu
!/usr/lib/deco/menu
w Count lines of source code
wc *.h *.c
b Remove bak files
-@rm -f *.b *.b
d Show my processes
ps -fu %u
s Synchronize disks
-@sync
.EE
.SH "Executing Files"
.PP
If the command line is empty when Return or ^M is pressed in
the panel mode, and the current file is the directory, DECO
moves to this directory. If the current file is an executable
one, it is executed. If the current file is a usual regular
one, then the command that corresponds its name is executed.
The command is described in the file ~/.deco. This allows the
user to fulfill operations for each file, which depend on the
name of this file, e.g., to start the C compiler for the files
named *.c, to start the make utility for the file Makefile,
etc.
.PP
If the file ~/.deco is not found, file
/usr/local/lib/deco/profile, or /usr/lib/deco/profile is being
read.
.PP
The file, in which operations are described by name, has the
following structure:
.ES
# Comments
<pattern 1> <pattern 2>...<pattern N>
<command>
<pattern 1> <pattern 2>...<pattern N>
<command>
. . .
.EE
.PP
The command can include macros (see User's menu).
.PP
An example of the file ~/.deco:
.ES
.menu .deco .cshrc .login *.c *.h
re %f
*.b
rm %f
Makefile makefile *.mk
make -f %f
core
adb
*.o
nm %f | more
*.a
ar tv %f | more
.EE
.SH "File name patterns"
.PP
Patterns of filenames can include the following metasymbols:
.IP "*"
Arbitrary symbol sequence. It can be empty.
.IP "?"
Arbitrary symbol.
.IP "[abcx-y]"
Arbitrary symbol from the selected set.
.IP "[^abcx-y]"
Arbitrary symbol outside the set.
.IP "^"
If placed at the beginning of pattern, this metasymbol negates
the meaning of pattern.
.SH FILES
.PP
~/.decoini
.br
/usr/local/lib/deco/initfile
.br
/usr/lib/deco/initfile
.IP
Files of modes and initial settings.
.PP
\&.menu
.br
~/.menu
.br
/usr/local/lib/deco/menu
.br
/usr/lib/deco/menu
.IP
Menu description files.
.PP
~/.deco
.br
/usr/local/lib/deco/profile
.br
/usr/lib/deco/profile
.IP
Files for describing of operations by name.
.SH NOTES
.PP
If the screen display is distorted, you can restore it by the command ^].
.SH REFERENCES
.PP
csh (1), termcap (5)