:


                  
                     
                        32/V 2.0

                 
                            red

                           
                            1988





1.   ..........................................    2

2.     ..........................    2
2.1.    . ...............    2
2.2.    .................................    3
2.3.           -
       ............................................    4
2.3.1.    ........................    6
2.3.2.      ..................    7
2.3.3.      red  ...................    7
2.4.      ......................    8
2.5.     .......................    9
2.6.      ..............    9
2.7.      .............................   11

3.    red .............................   11
3.1.     ...........................   11
3.2.    ...........................   13
3.3.      ....................   13
3.3.1.     ..........................   13
3.3.2.      .....................   14
3.3.3.   (, , ) .........   14
3.4.     ....................   14
3.4.1.   .   () .........   14
3.4.2.        (      ) .......................................   15
3.4.3.     () ..........   15
3.5.     ............................   15
3.5.1.      .....................   16
3.5.2.     () ......................   16
3.5.3.     (<+PAGE>,  <-PAGE>,  <+LINE>,
        <-LINE>) ......................................   16
3.5.4.    / (  ) ....   17
3.5.5.      .................   17
3.6.    (<+SEARCH>, <-SEARCH>)  .......   17
3.7.      (, ) ..........   18
3.7.1.        .............   19
3.8.  ,     ...........   19
3.8.1.      ......................   19
3.8.2.    (, ) ............   20
3.9.     (  ) ..........   21
3.10.   .......................   22
3.11.   ......................   23
3.12.  -   ( ) ...   24
3.12.1.   (rpl)     ..................   25
3.12.2.           ....   25
3.12.3.     () ..................   25
3.13.  .      
       ................................................   26
4.     ........................   26

5.    red.     
     ........................................   28
5.1.        ...   29
5.2.   . ..............................   34

     1.    red ........   36

       ...........................   36

      2.        
      ............................   43


    1.

red - . : - ; - ; - "" ; - ; - ; - , ..; - - ; - "" , .

    2.

    2.1. .

red . . "" , , " " . - ( 1). "" . "" - . (<>), , ; , . - "" red, , , : - "" , , , ; ____________________________________________________________ e ---------------------------------------- : : : : : : : <> : : : : : : : : : : : ---------------------------------------- :<> :a : 10 . 1 ____________________________________________________________ - , , ; - "" , , ""; - . - . - : < >. - . . , . red . , - .

    2.2.

, , : red [] [] , , . , ( - 11- ). - . , <> ), . , . (1): red : red - red "" - : red -[-][+] 4.

    2.3.

- red, - . , , , . , <+PAGE> 7, - 1. red , - , - - -8 . . , . ____________________ 1) red , - e. ( csh): setenv TERM _ : 1) , (, SHIFT, ROLL ..). CTRL ( ), - ("control-");. 2) - ASCII -8. - : - (- ) ASCII; - ; - - , -8 (, "-15--0013"); 3) : - , , , ; - RETURN ( ); LINE FEED ( ); TAB (); HOME ( ); 4) , - (, "-15- -0013" 0 - 9, '0'-'9', - - ; VTA 2000 0 - 9 ); 5) , IL, DL, IC, DC, ERASE, - VDT-52100c . . red - . , .

    2.3.1.

, -8, , . , - : 1) 0 - 037 - : "" ( ) - , "-8" 0100. ( @, A-Z,[,], \ , _,^); "", - @ , - . 2) , : - - \ \ - \\ ~ () - \^ (\`') ` ( ) - \' } (. ) - \) { (. ) - \( | ( ) - \! 3) , - # , ""- "" "A"-"Q", - "a"-"q" "-8"; 4) 0200 - 0277 0377 - : @kkk kkk - , a "@" - "" . "" ( 0177) @#

    2.3.2.

. 1) (, ..) 040 - 077 ; 2) CTRL/O ( ""). - (- ( VTA 2000 -) - ( VTA 2000 -)), \, [, ] -8 0100 0176; 3) CTRL/N ( ""). ; 4) ("" ) - (CTRL/A 2. - ).

    2.3.3. red

, red, - , . - 1 2- - . , - : 1) - , , 1 - , 29 - . 2 ( 9, ). 2) , Line Feed ( ), 2 - Line Feed Line Feed . 3) control- , , CTRL/T - <+LINE>. 4) - ; . , PF2 PF3 . , , (, RETURN, TAB, HOME).

    2.4.

"". , - , red. , . , - "#", . "" "" , (.2). "" "- ". . /usr/lib/re.std, . . - , , "", . "" "", . - : : ; - ; ____________________________________________________________ "" ..................................... .-----------------------------------. .! !! !. .! !! !. .! "" !! "" !. .! !! !. .! >! !. .! !! !. .! !! !. .; !! !. .; !! !. .-----------------------------------. .arg: file: a line 10 . ..................................... . 2 ____________________________________________________________ ! - "" 1 ; < - "" 1 , ; : ! - ; > - "". , , ( q) . - .b, . ( ), , qa.

    2.5.

, . red . 26 a z ( ), : - - , , ; - ; - , . , - >, - . $ >.

    2.6.

red - , . - ( SHELL) - . : e - ; l - ; t - - ; w - ; i - ; s - ; f - - ; a - , 1- , , ( - ). : 1) : red [-[-][+]] , -, , + - - , : red --t a.mx 2) sh csh REDKEYS : setenv REDKEYS [-][+] ( csh); 3) : [-][+] t, l, s e - . w . - , - . , w .

    2.7.

red . , _.b. , /tmp/rettnn.name, nn - , name - - . , : red - , - , . , - , - , .b.

    3. red

red - , : <> <> - , .

    3.1.

, . , , 100 : 1) (, `1'); 2) ( 100); 3) (, `4'). : 100 : 1) (, ); 2) (, ); 3) . , , . : - ; - ; - . : * * * * * * - (, ). , , , . , - , - : - , ; - , . - . , , ( ) - ( >), ( ) : $ , "" . , , . "arg:", (<>). ________________________________________________________ .................................. . . . . . . 1*************** . . ********* . . ******** . . ****************2 . . . . . . .................................. .................................. . . . . . .*****1**************************. .*********** ********. .******************. .*****2**************************. . . . . . .................................. .................................. . . . . . . 1***************2 . . . . . . .................................. ( 1 , 2 - ) . 3 ________________________________________________________

    3.2.

, : CTRL/L r

    3.3.

    3.3.1.

- : < > - ; < > - ; < > - ; < > - . "" , "f".

    3.3.2.

- ; - . , "" . 1 , ; - ;

    3.3.3. (, , )

- ; . - 9, 13, 25, 33, 31, 49, 57, 65 73 ; - . , - . - `.'; - . 2 - `2'`5'; - ;

    3.4.

    3.4.1. . ()

, , , , . 30 . 72 . "INSERT". . : - / . - `5';

    3.4.2. ( )

: - , 1 . - `6'; - ; . . - `DEL' `BackSpace'.

    3.4.3. ()

() 0-037, 0177-0277,, 0377. - "ESCAPE"-, . 0-037 : - ( CTRL/A); - "CTRL"- - , - CTRL/L. : ( ) . <>&037, "&"- " ", "A" 01 . 0200-0277 0377: - (CTRL/A); - . <> (0177) #.

    3.5.

    3.5.1.

> "". , , , .

    3.5.2. ()

- , 1. ( `4'). - ; - ; N - "N" (N - ); $ - , "" ("" - ); .

    3.5.3. (<+PAGE>, <-PAGE>, <+LINE>, <-

LINE>) , . <+PAGE> - 1 ; `7'; <-PAGE> - 1 ; `2'`7'; N<-PAGE> () N . <+/-LINE>; (CTRL/T/CTRL/W): N<+LINE> - N ; N<-LINE> - N ; <+LINE> - 1 , - , 8 - ; <-LINE> - 1 (8, ) ; <+LINE> - "" , ; <+LINE> - "" , ;

    3.5.4. / ( )

- "" 30 ; `2'< >. "" 30 ; `2'< >. N - "" N ; N - "" N ; , . 1- .

    3.5.5.

- : f ( ) "" , .

    3.6. (<+SEARCH>, <-SEARCH>)

<+/-SEARCH> ( `3' `2'`3') . , , : <+SEARCH> <-SEARCH> () . - , , : "search key not found" (" ") : <+SEARCH> <-SEARCH>

    3.7. (, )

(CTRL/D, `-') . : . : 1) , - , . "", - ""; 2) (, , ). - . , . ""; 3) . : "Create (y/n)?" ("(y/n)?") . - . , /usr/lib/re.std - (`2'`-' CTRL/V ). - " .b". .b, . "". - .

    3.7.1.

+w - ; -w - ( , ) .

    3.8. ,

    3.8.1.

() , . - ; `8' PF2. n - "n" ( "n"- ); - , - ; _ $ - ( , - "") ( , ). - . , : - ; `2'`8' PF3. n - "n" , ; - , ; _ $ - . - . , , - "#" ( ) : - , , - . - "#" , : # . > - , , - "".

    3.8.2. (, )

. () , . - "#" (#) : - ; - `9'. n - n , ; _ $ - ( - ). "PICK"- ( ); > - "". : - ( `2'`9'): - . , - , , ( ); - , "PICK"- "CLOSE"-, , ; $ - "" ("" - ) - .

    3.9. ( )

"" - . ( "", `2'`4'). "" - . "", . , . . 4 5. 10. ____________________________________________________________ ------------------ ------------------ ! ! ! ! ! ! ! ! !*- ! !----------------! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ------------------ ------------------ . 4 ____________________________________________________________ ____________________________________________________________ ------------------ ------------------- ! *- ! ! !! ! ! ! ! !! ! ! ! ! !! ! ! ! ! !! ! ! ! ! !! ! ! ! ! !! ! ! ! ! !! ! ------------------ ------------------- 5. ____________________________________________________________ : - , /usr/lib/re.std; - , "". , , ; - , . , - . : ( `0') , , - .

    3.10.

- , , - "" red. : d ( - ). : Mac: . , 2. ( ), ( ). : $ ( <>), "$" , - . . , . - - .

    3.11.

- . , - . : k : Enter : (<>). : Enter or : , ( ) "$". , . , - , . "$", $ (< >$).

    3.12. - ( )

, , , - "" , . red . , int short - 10 : 10l rpl "int" "short" 10 int short, "rpl", - red. , . : cb - , sort - - : <.> <> <..> -<.c.><> <..> <..>l <> <..> <..> - , <..> - , <..> - . < > < > - . () , . - - , - . - . l - . , 1 . , -15 15l 15 , 2 - 2 . - , , . ". , . . , - . CLOSE-.

    3.12.1. (rpl)

rpl . . - - , . rpl , ed , - , . @ . , : 100l rpl "^ *" " " 100 . $, &, @, ^, * \ ( ).

    3.12.2.

, : 0 cat < > , , , : cb

    3.12.3. ()

, red, - , : : ,. , , - : a "a" - "a". : q, : qa.

    3.13. .

CTRL/S, CTRL/Q ( , ), CTRL/N, CTRL/O ( , ), "" (interrupt) - CTRL/C. "" - . "" , , . "" - . "" .

    4.

. . . . :<> use:<> - <>; :<> save:<> - <>; +:<> -:<> +search:<> -search:<> - <> ; . executing.. - ; insertmode - ; cursor defined - ; (y/n)? Create (y/n)? - <>, "y"; lines defined by tag - ( ), ; square defined by tag - ( ), - ; columns defined by tag - ( , ), - . : argument must be numeric - ; argument must be positive - ; nothing in the pick buffer - , ; Close nothing in the close buffer - , ; ? 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 - , - . , , - , .

    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 , ":". - , - ":\", ":". . : :<>: - - ( ); :<>#<>: - (, ); :<>=<><>: - , <> . "=" , . . : 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.

---------------------------------------- - | . red | ---------------------------------------|

    1. .

co + - | li + - | ---------------------------------------|

    2. .

am - - - | | 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 - - - | * | ---------------------------------------|

    6. , .

kd + - | ku + - -- // -- | kl + - -- // -- | kr + - -- // -- | kh + - -- // -- "home" | ---------------------------------------|

    7. , :

kN - - <-PAGE> | kP - - <+PAGE> | kB - - | kF - - <+LINE> | kR - - <-LINE> | ---------------------------------------|

    8. , PF1-5

: | k1 - - | k2 - - | k3 - - | k4 - - | k5 - - | ---------------------------------------|

    9. , -

f. - + , | f- - + -| f0 - + . | f1 | .. ... . . | f9 - + | ---------------------------------------|

    10.

tc=<> , -| | | <> | <>@ | <> | hR - + | | ( )| ---------------------------------------|

    11 .

Gs - + - | | Ge - + -| | Gt - + - | | ---------------------------------------- 1 , - red. . 11 . 2. . - "cm". , red , "*" "", - . - "am" , - . 3. . "cu" - , "". , "@". - "cu=\177", . 4. . "UC", "lcase"; , , . 5. ; "cs" "cm" - - . 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"; - ; - ; - ; - ; - ; , - -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. - "tc=...". /etc/termcap, .

    1. red

red . , , . red - : red [-] _ [_] "_", _; , - . red [-] , - . red [-] - - . red [-] -r _ , - . - . - , . `2', . - , < > (), `1' `1', `2'`4' - `4'. : , , ( "," , ^C CTRL+C): - : `1', <> . ( , , , ). , . - : - : `.', ^B () . - : `4' - . - ; - . - : `2'< > - : `2'< > /. <+PAGE> - : `7', <-PAGE> - : `2'`7', - , . <+LINE> - : , ^T <-LINE> - : , ^W - ; - - () ( ). (- ) - "kF" "kR". <+SEARCH> - : `3', ^R <-SEARCH> - : `2'`3', ^E - , . - : `5', / ; - : `6', ^U - : `1'`6' - : `8', ; - , . - : `2'`8', . - . - : `9', ^F . - : `2'`9', ^G . , . - . (`1'). - . (`1'). - : `2' `-', ^V - ( ). - : `-', ^D ( - ). - : `2'`4' - , . . - . - : `0' ( ). - : `2'`0', ^P : "[[l] ] []". "" "" ( l, ) . - , . - : < ><> "a" . <>q[a]< >. - : <>><> - ( ), <> - < > ( ), ( ), ( ). , , , ( ), "$". - : <>d <> <>. - : <>$ - : <>k<> , ( ), . - : `2'`0', ^A , . - . , - . , - . - . , - , `2'. ____________________________________________________________ -15--0013 --------------------------- ---------------------------- | | & | USE | | +PAGE | OPEN | PICK | | i~~ | I | V_| | | -7- | -8- | -9- | | | +LINE | SAVE | | -PAGE | CLOSE | PUT | --------------------------- ---------------------------- | | HOME | | | GOTO | INSERT | DCHAR | | <-- | & | --> | | -4- | -5- | -6- | | LEFT | | RIGHT | | M-PORT | CH-TAB | | --------------------------- ---------------------------- | BSPACE | I | | | ARG | "" | +SEARC | | <-I | V | I-> | | -1- | -2- | -3- | | | -LINE | | | | "" | -SEARC | --------------------------- | ESCAPE | B-TAB | | OPEN | INSERT | CLOSE | | -0 - | -,- | | = | .. | = | | CH-PORT | EXEC | --------------------------- ---------------------------- EXIT -"""" TAB - "" 6 ____________________________________________________________ ____________________________________________________________

    VDT52100 VT-340

-------------------- ------------------ | | | | | | | "d l" | "i l" | |"return"|"erase"| -------------------- ------------------ ||| | "d c" | "i c" | -------------------- | | | "h o m e" | -------------------- : <+PAGE> - `8' <+LINE> - ^T <-PAGE> - `8' <-LINE> - ^W - <> - <> - `4' <+SEARCH> - ^R - `4' - ^F - `0' - ^G - ^A - ^P - `5' - ^B - ^U <-SEARCH> - ^E - `-' - ^D . 7 ____________________________________________________________ ____________________________________________________________

    2000.3

0-9, ".","," "". ------------------------------------- | ARG | B-SPACE| HOME | / | | *** | ***00 | & | *** | | *00 | | +---- | / | ------------------------------------- | +PAGE | OPEN | PICK | & | | -7- | -8- | -9- | I | | -PAGE | CLOSE | PUT | +LINE | ------------------------------------- | GOTO | INSERT | DCHAR | I | | -4- | -5- | -6- | V | | M-PORT | CH-TAB | | -LINE | ------------------------------------- | ARG | "" | +SEARC | | | -1- | -2- | -3- | --> | | | "" | -SEARC | RIGHT | ------------------------------------- | ESCAPE | B-TAB | | | -0 - | -,- | <-- | | CH-PORT | EXEC | LEFT | ------------------------------------- . 8 ____________________________________________________________ ____________________________________________________________

    2000.1

0-9, ".","," "". ------------------------------------------ | ARG | | |INSERT |B-SPACE| |" | ***** | **::: | ***> | <*** | | "| ***:: | | | | ------------------------------------------ | HOME | | | & | OPEN | | & | | | I | * | | +---- | | | +LINE | V | ------------------------------------------ | +PAGE | OPEN | PICK | I | CLOSE | | -7- | -8- | -9- | V | & | | -PAGE | CLOSE | PUT | -LINE | * | ------------------------------------------ | GOTO |INSERT | DCHAR | | | | -4- | -5- | -6- | ---> | | | M-PORT |CH-TAB | | RIGHT | | ------------------------------------------ | ARG |"" |+SEARC | | | | -1- | -2- | -3- | <--- | | | |"" |-SEARC | LEFT | | ------------------------------------------ | ESCAPE | B-TAB | | | | -0 - | -,- | | | | CH-PORT | EXEC | | | ------------------------------------------ . 9 ____________________________________________________________ ____________________________________________________________

    -7958,VDT-STATION,VDT-52129

, DEC/VT-52 ---------------------------------- | ARG | OPEN | CLOSE | & | | pf1 | pf2 | pf3 | | | | | | | +LINE | ---------------------------------- | +PAGE | OPEN | PICK | I | | -7- | -8- | -9- | V | | -PAGE | CLOSE | PUT | -LINE | ---------------------------------- | GOTO |INSERT | DCHAR | | | -4- | -5- | -6- | ---> | | M-PORT |CH-TAB | | RIGHT | ---------------------------------- | ARG |"" |+SEARC | | | -1- | -2- | -3- | <--- | | |"" |-SEARC | LEFT | ---------------------------------- | ESCAPE | B-TAB | USE | | -0 - | -,- | enter | | CH-PORT | EXEC | SAVE | ----------------------------------- . 10 ____________________________________________________________ 2. - lt ^F tab ^] rt ^E escape ^@ up ^A +line ^T dn ^B -line ^W rn ^C +page ^N home ^D -page ^Q tab ^G goto ^O b-tab ^H left ^S right ^Y ch-port ^M +search ^R del-ch ^U -search ^X b-space open ^K arg ^_ close ^^ insert ^\ pick ^I save ^V put ^Z use ^L m-port ^J exec ^P

Last-modified: Sun, 31 Aug 1997 19:25:18 GMT
: