>.
- "#" (<ARG>#<USE>)
:
<PICK>
- ; -
`9'.
<ARG>n<PICK>
- n , ;
<ARG>_<PICK>
<ARG>$<PICK>
- ( -
<ARG>).
"PICK"-
( );
<ARG>><PICK>
- <PICK>
"".
- 22 -
23
:
<PUT>
- ( `2'`9'): -
. , -
, ,
( );
<ARG><PUT>
- <PUT>, "PICK"-
"CLOSE"-,
,
<CLOSE>;
<ARG>$<PUT>
- "" ("" - ) -
.
3.9. (<M-PORT> <CH-PORT>)
"" -
. <M-PORT> (
"", `2'`4'). "" -
.
"", .
,
.
. 4 5.
____________________________________________________________
------------------ ------------------
! ! ! !
! ! ! !
!*- ! !----------------!
! ! ! !
! ! ! !
! ! ! !
! ! ! !
------------------ ------------------
. 4
____________________________________________________________
- 23 -
24
____________________________________________________________
------------------ -------------------
! *- ! ! !! !
! ! ! !! !
! ! ! !! !
! ! ! !! !
! ! ! !! !
! ! ! !! !
! ! ! !! !
------------------ -------------------
5.
____________________________________________________________
10.
:
<M-PORT>
- ,
/usr/lib/re.std;
<ARG><M-PORT>
- ,
"". , ,
<USE>;
<ARG><M-PORT>
- , .
, -
.
:
<CH-PORT>
( `0')
, ,
-
.
- 24 -
25
3.10.
-
, , -
"" red.
:
<ARG>d <RETURN>
( - ). :
Mac:
.
, 2.
<EXIT> (
<LineFeed><Del>),
<B-SPACE> ( <Del> <Back-
Space>).
:
<LineFeed>$
<LineFeed> (
<>), "$" , -
.
. ,
.
- -
.
3.11.
-
.
, -
. :
<ARG>k<RETURN>
:
Enter <new key>:
- 25 -
26
<Del>
(<>).
:
Enter <command> or <macro name>:
, (
) "$".
,
. , -
,
. "$",
<Line Feed>$ (< >$).
3.12. - ( <EXEC>)
, ,
, -
"" ,
. red
<EXEC>. , int short -
10 :
<ARG>10l rpl "int" "short"<EXEC>
10
int short, "rpl", -
red. ,
. :
cb - ,
sort -
<EXEC> -
:
<ARG><.> <> <..><EXEC>
<ARG>-<.c.><> <..><EXEC>
<ARG><..>l <> <..><EXEC>
<..> - ,
<..> - ,
<..> - .
- 26 -
27
< > < > -
.
()
,
. - -
, -
. -
. l -
. ,
1 . , -15 15l
15 , 2 - 2 .
- ,
, .
".
<EXEC> ,
.
.
, -
.
CLOSE-.
3.12.1. (rpl)
rpl <EXEC>
.
. - -
, . rpl
, ed , -
, . @
.
, :
<ARG>100l rpl "^ *" " "<EXEC>
100 .
$, &, @, ^, *
\ ( ).
3.12.2. <EXEC>
<EXEC>
, :
<ARG>0 cat < ><EXEC>
- 27 -
28
,
, ,
:
<ARG>cb<EXEC>
3.12.3. (<EXIT>)
, red, -
, :
<EXIT>
: <LineFeed>,<Del>.
, , -
:
<ARG>a<EXIT>
"a" - "a".
<EXIT> : <ARG>q<RETURN>,
: <ARG>qa<RETURN>.
3.13. .
CTRL/S,
CTRL/Q ( , ),
CTRL/N, CTRL/O ( , ),
"" (interrupt) - CTRL/C.
""
-
. "" ,
,
.
"" -
<ARG>.
""
- 28 -
29
.
4.
.
.
.
.
:<>
use:<>
- <>;
:<>
save:<>
- <>;
+:<>
-:<>
+search:<>
-search:<>
- <> ;
.
executing..
- ;
insertmode
- ;
cursor defined
- <PICK>
<CLOSE>;
(y/n)?
Create (y/n)?
-
<>, "y";
lines defined by tag
- (
),
;
square defined by tag
- (
- 29 -
30
), -
;
columns defined by tag
- (
, ), -
.
:
argument must be numeric
- ;
argument must be positive
- ;
nothing in the pick buffer
- <PUT>,
<PICK>;
Close
nothing in the close buffer
- <ARG><PUT>,
<CLOSE>;
?
nothing to search for
- ;
search key not found
- ;
can't put a window there
- "" -
"" ;
can't make any more ports
- "" (10);
too many files...
- (10);
you can't modify this file
- ,
- 30 -
31
.
, , -
, .
5. red. -
red ,
.
. -
TERM
SHELL CSH.
/etc/termcap. -
,
.
, ,
"/etc/termcap".
termcap , -
":"().
, . -
( ). ,
,
- , , ,
/etc/ttytype. -
:
environment (5),
tset (1)
ttys (5)
ttytype (5)
termcap (5)
termcap.
5.1.
/etc/termcap
, ":". -
, -
":\", ":".
.
:
:<>:
-
- ( );
- 31 -
32
:<>#<>:
- (,
);
:<>=<><>:
- , <>
.
"=" ,
.
.
:
1) \<> - ,
:
\r - 015 (return);
\n - 012 (line feed);
\t - 011 (tab);
\b - 010 (backspace);
\f - 014;
2) \nnn,
"nnn" - - "nnn";
3) ^<> - CTRL+<>, ,
"^C" "003";
4) < >, ":", "\", "^",
.
"" \200.
1.
--------------------------------------------
| n - |
| . red |
|------------------------------------------|
| 1 co + - |
| li + - |
|------------------------------------------|
- 32 -
33
. 1
--------------------------------------------
| n - |
| . red |
|------------------------------------------|
| 2 am - - - |
| |
|------------------------------------------|
| 3 bs - - 010 |
| 1 |
| rt - - |
| bc - - " ", |
| 010 |
| cm - - * |
| cl + - |
| do * - |
| up * - |
| nd * - |
| ho * - |
|------------------------------------------|
| 3 is - - |
| fs - + |
| |
| |
| cu - + " " |
| ( , \177.) |
| nb - + |
|------------------------------------------|
| 4 UC - - |
| |
| LC - - |
| |
| CY - + |
| |
|------------------------------------------|
| 5 al - - |
| dl - - |
| ic - - |
| dc - - |
| cd - - |
| |
| ce - - |
| sr - - |
| sf - - |
| ns - - |
| ( roll) |
| cs - - - |
| * |
|------------------------------------------|
- 33 -
34
. 1
--------------------------------------------
| n - |
| . red |
|------------------------------------------|
| 6 kd + - |
| ku + - -- // -- |
| kl + - -- // -- |
| kr + - -- // -- |
| kh + - -- // -- "home" |
|------------------------------------------|
| 7 , -|
| |
| : |
| kN - - <-PAGE> |
| kP - - <+PAGE> |
| kB - - <B-TAB> |
| kF - - <+LINE> |
| kR - - <-LINE> |
|------------------------------------------|
| 8 , |
| - |
| PF1 - PF5 |
| : |
| k1 - - <ARG> |
| k2 - - <OPEN> |
| k3 - - <CLOSE> |
| k4 - - <INSERT> |
| k5 - - <DCHAR> |
|------------------------------------------|
| 9 f. - + , |
| f- - + -|
| f0 - + . |
| f1 |
| .. ... . . |
| f9 - + |
|------------------------------------------|
|10 tc=<> , -|
| |
| |
| <> |
| <>@ |
| <> |
| hR - + |
| |
| ( )|
|------------------------------------------|
- 34 -
35
. 1
--------------------------------------------
| n - |
| . red |
|------------------------------------------|
|11 Gs - + - |
| |
| Ge - + -|
| |
| Gt - + - |
| |
--------------------------------------------
1 , -
red.
.
11 .
1.
;
2.
.
- "cm".
, red ,
"*" "", -
. -
"am" ,
-
;
3.
. "cu" - ,
"".
, "@". -
"cu=\177",
;
4.
.
"UC", "lcase";
, ,
.
5.
;
"cs" "cm"
- 35 -
36
-
.
6.
, ;
7.
, ,
.
8.
, PF1 -
PF5 , .
9.
, -
"0"-"9", "-", ".".
10.
,
. :
vt340:cm@:UC:KI:LC@:nb:tc=vdt52100c
11
, -
. Gs
, Ge .
Gt -
:
:
- ;
- ;
- ;
- ;
- "T";
- ;
- "T";
- ;
- "T";
- ;
- "T";
- ;
- ;
- ;
- ;
- ;
,
- 36 -
37
-
-8.
5.2. .
-
"cm" . ,
, -
%X,
-
, X (
printf). "cm" ,
-
, .
"%" :
%d - , "printf", -
0;
%2 - %2d;
%3 - %3d;
%. - %c;
%+x - "x"
( ),
"%.";
%r - .
;
%i - 1 ( 0);
%% - "%".
, "VDT-52100"
:
cm=3^a%.%.
, "%.",
"bs" ( "bc") "up",
1
. ,
\t, \n, ^D \r:
.
-
/etc/termcap.
-
- 37 -
38
"tc=...".
/etc/termcap,
.
- 38 -
39
1. red
red
.
,
,
.
red -
:
red [-] _ [_]
"_",
_; , -
.
red [-]
,
-
.
red [-] -
-
.
red [-] -r _
, -
.
-
. -
,
. `2',
. -
, <
> (<LineFeed>), `1'
<LineFeed>`1', `2'`4' - <LineFeed><LineFeed>`4'.
: ,
, ( ","
, ^C CTRL+C):
<ARG> - : `1', <LineFeed><>
.
(
, ,
,
- 39 -
40
). ,
.
<TAB> - : <TAB>
<B-TAB> - : `.', ^B
()
.
<GOTO> - : `4'
- . -
; - .
<LEFT> - : `2'< >
<RIGHT> - : `2'< >
/.
<+PAGE> - : `7', <NextScr>
<-PAGE> - : `2'`7', <PrevScr>
- ,
.
<+LINE> - : <Forward>, ^T
<-LINE> - : <Backward>, ^W
- ; - -
() (
). <Forward> <Backward> (-
) -
"kF" "kR".
<+SEARCH> - : `3', ^R
<-SEARCH> - : `2'`3', ^E
- , .
<INSERT> - : `5', <PF4>
/ ;
<D-CHAR> - : `6', ^U
<TRUNC> - : `1'`6'
<OPEN> - : `8', <PF2>
; -
, .
<CLOSE> - : `2'`8', <PF3>
. -
.
<GET> - : `9', ^F
.
<PUT> - : `2'`9', ^G
- 40 -
41
. ,
.
<SPLIT> -
<OPEN> .
(`1'<PF2>).
<JOIN> -
<CLOSE> .
(`1'<PF3>).
<SAVE> - : `2' `-', ^V
- ( ).
<USE> - : `-', ^D
( - ).
<M-PORT> - : `2'`4'
- ,
.
.
-
.
<CH-PORT> - : `0'
(
).
<EXEC> - : `2'`0', ^P
: "[[l] ] []". ""
""
( l, ) .
- ,
.
<EXIT> - : < ><>
"a" .
<>q[a]<
>.
- : <>><>
- ( ), <> -
< > (
), <GET> (
), <CLOSE> (
).
<GOTO>, <PUT>, ,
(
), "$".
- 41 -
42
- : <>d <>
<>.
- : <>$
- : <>k<>
,
( ),
.
<ESCAPE> - : `2'`0', ^A
,
.
-
.
, -
.
, -
. -
. , -
, `2'.
____________________________________________________________
-15--0013
-------