:




          - 

                    "        "





                  

                     

                        /P 2.1






                 

                            red

                 ( )




                           

                            1988




                             2



     red  (
3.3).         ,  
        
red.


















2



                             3


1.  

      red     -
        
     .   
:

-             
         ;

-         ;

-             
     ""     ;

-          
      ;

-        ;

-         ,
         ..;

-        -
          ;

-      "" ,   
       .

2.    

2.1.    .

     red    .  
      .    
 ""  ,  ,  
          " "
    .      -
       ( 1).


      ""        
              
  .   ""    -
   .

          
    <RETURN> (<>), <HOME>, <TAB>; 
          
   ,  .     -
  ""   red,      
   ,  , :



                           - 3 -



                             4



____________________________________________________________


                    e

        ............................................
        . ---------------------------------------- .
        . :                                      : .
        . :                                      : .
        . :                                      : .
        . :       <>                         : .
        . :                                      : .
        . :                                      : .
        . :                                      : .
        . :                                      : .
        . :                                      : .
        . ---------------------------------------- .
        . :<>        :a : 10    .
        ............................................

                          . 1

____________________________________________________________


-     "" , , ,   ;

-    ,       
        ,     ;

-     ""    ,    
     ,   "";

-        .

           -
 .

         -
                        :
< >.

          -
  .        
    .       
     ,      .
           
   red     
  .       ,
     -
   .



                           - 4 -



                             5


2.2.   

        ,     ,
  :

 red  []

      []      ,
      ,  -
 .

            ,    
     (   -
  11-  ).      -
     .     
<EXIT>,           <Line  Feed><Del
(<><>    ),     
.

          ,    
   .     (1):

    red


           
    :

    red -

  red    ""   -
:

 red -[-][+]  

       4.

2.3.       

           -
       red,   -
       .     
  ,   ,  
 ,        
.  ,   <+PAGE>   
____________________
   1)   red  ,     -
     e.    
      (  
csh):
 setenv TERM _




                           - 5 -



                             6


7,     <ARG>  -    1.     
    red ,   
         -
  ,      -
 -        -8  
      .  
        .
        , 
      
.

            
   :

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',         


                           - 6 -



                             7


              
      ;      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


                           - 7 -



                             8


      kkk -   , a "@" - "" 
        .

         "" ( 0177)  

      @#


2.3.2.     

             
.

1)     (,   ..)    
     040 - 077   ;

2)          CTRL/O
     (     "").   -
             (-
        ( VTA 2000 -)  
       -   ( VTA 2000 -)),  
      \, [, ]     -8   
     0100  0176;

3)       CTRL/N ( 
         "").     
             
       ;

4)      (""  ) -
       <ESCAPE> (CTRL/A  2.  -
      ).

2.3.3.      red

     ,    
    red,  -
 ,   .    -
  1  2-    -
.     ,    -
    :

1)          -
     ,         
        ,  1 -  <ARG>,  29  -
      <PUT>.     2   
        (   9,    
      <PICK>).

2)      ,      
     Line  Feed  (    ),    
     2 - Line Feed Line Feed .



                           - 8 -



                             9


3)               control-
     , , CTRL/T -  <+LINE>.

4)          -
            ; 
         . ,  PF2  
     PF3      <OPEN> 
     <CLOSE>.

   ,   ,   
  (, RETURN, TAB, HOME).

2.4.     

              
   "".  ,   -
 ,       red.  
      ,   <USE>.
 ,       -
"#",         
.

   ""          ""  
    <M-PORT>,      
   (.2).      
     ""      "-
 ".  <USE>     
       .   
        /usr/lib/re.std  ,
   .

        <ARG><M-PORT>.  -
,      ,    
 "",   .

     ""  "",    
.     -  
:

:

    ; -      ;

    ! -       ""   1 
         ;

    < -  ""    1  ,   
           ;

:

    ! -        ;



                           - 9 -



                             10



____________________________________________________________


                      ""

            .....................................
            .-----------------------------------.
            .!              !!                 !.
            .!       !!          !.
            .! ""       !!   ""        !.
            .!              !!                 !.
            .! >!                 !.
            .!              !!                 !.
            .!              !!                 !.
            .;              !!                 !.
            .;              !!                 !.
            .-----------------------------------.
            .arg:           file: a line 10     .
            .....................................

                         . 2

____________________________________________________________


    > -       "".

    ,   ,      
          <EXIT>  (   
<ARG>q<RETURN>)      .  
      -
  .b,        .
         
              (
<SAVE>),           
,  <ARG>qa<RETURN>.

2.5.    

          
      ,    
       .      
  red    .   26  
  a  z (     ),  
    :

-            -
               
                  <CLOSE>,
     <OPEN>, <PICK>;




                           - 10 -



                             11


-                 
     <PICK>;

-        ,   
     .

       ,       -
>,

     -    .      
    $  >.

2.6.     

      red   -
,        
      .  -
   (    
   SHELL)      -
.     :

e    -     ;

l    -     ;

t    -       -
       ;

w    -    ;

i    -  ;

s    -       
         ;

f    -        -
         ;

a    -   ,      
       <RETURN>         1- 
       ,    ,         
           (    -
           ).

         
     :

1)     :

      red [-[-][+]]  

     ,   -, ,  + - -
     , :


                           - 11 -



                             12


      red --t a.mx


2)     sh  csh REDKEYS  :

      setenv REDKEYS [-][+]

     ( csh);

3)    :

      <ARG>[-][+]<RETURN>


       t,  l, s  e -
     .

    w         
  .      -
      ,     -
  .  ,     w
          
  .

2.7.     

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

                           red -


     ,    
  -          ,
         
  .   ,    
        -
    <SAVE>    ,    
     -
  ,          
 .b.





                           - 12 -



                             13


3.    red

    red      -
          ,   
:

    <>
    <ARG><>


          -
,     .

3.1.    <ARG>

            
<ARG>,           .
, ,     100  :

1)     <ARG> (,   `1');

2)     (    100);

3)     <GOTO> (,  `4').

      :

    <ARG>100<GOTO>


      :

1)     (,      
     );

2)    (,  );

3)      .        
     ,  ,   
     .      :

         -      ;

         -   <ARG>;

         -          
           .     :

               * * *   * * *


         -   (, <PICK>).



                           - 13 -



                             14


                
    , <RETURN>, <TAB>, <BACK-TAB>. , -
     ,       -
     :

         -       ,  
                     
             ;

         -        ,  
                .

         -          
                 
            .

       ,    
,       ( )   -
     (                  
<ARG>><RETURN>),        (  
)           :
<ARG>$<RETURN>        
   ,      ""  
    .      <OPEN>, <CLOSE>,
<PICK>            
<RETURN>.

           "arg:",  
     <DEL> (<>).

3.2.   

           
  , :

     CTRL/L
     
     <ARG>r<RETURN>


3.3.     

3.3.1.    

           -
   :

< >     - ;

< >      - ;

< >    - ;



                           - 14 -



                             15



    ________________________________________________________

                      

               ..................................
               .                            .
               .     .              .
               .     1***************           .
               .     *********           .
               .     ********           .
               .     ****************2          .
               .                     .       .
               .                       .
               ..................................

               ..................................
               .                            .
               .     .              .
               .*****1**************************.
               .*********** ********.
               .******************.
               .*****2**************************.
               .     .                       .
               .                       .
               ..................................

               ..................................
               .                            .
               .     .              .
               .     1***************2          .
               .                     .       .
               .                       .
               ..................................

              ( 1   , 2 - )
                             . 3
    ________________________________________________________


< >     - .

  ""        
,      "f".

3.3.2.   <HOME>  <RETURN>

<HOME>
     -        ;

<RETURN>
     -         .  
           ,  ""   


                           - 15 -



                             16


       .      1  ,  
          ;

<ARG><RETURN>
     -    ;

3.3.3.   (<tab>, <b-tab>, <set-tab>)

<TAB>
     - .       
       .     - 9, 13, 25, 33, 31, 49,
       57, 65  73 ;

<B-TAB>
     -  .   <TAB>,   -
         .   -  `.';

<SET-TAB>
     -            
       .       2 
       - `2'`5';

<ARG><SET-TAB>
     -      ;

3.4.    

3.4.1.   .   (<INSERT>)

        ,    ,
    ,     , 
   .      
          30 
.    72      
  .

            "INSERT".  
          . 
     :

<INSERT>
     - /  .     -
        `5';

3.4.2.    (<DEL-CH>  <BACKSPACE>)

                 
:

<DEL-CH>
     -     ,      
          1 .   - 
       `6';


                           - 16 -



                             17


<B-SPACE>
     -   ;      
       .         . 
        -  `DEL'  `BackSpace'.

3.4.3.     (<ESCAPE>)

    ()      
0-037,  0177-0277,, 0377.        -
 "ESCAPE"-,     
  .

        0-037 :

         -   <ESCAPE> (  CTRL/A);

         -   "CTRL"-  -
               ,    -
              CTRL/L.

    :      (
  )   .    
        <>&037,  
"&"-  "   ",    "A"
  01   .

        0200-0277  0377:

         -  <ESCAPE> (CTRL/A);

         -    .

    <> (0177)   <ESCAPE>#.

3.5.    

3.5.1.     

<ARG>><RETURN>
              
     "".         
      <OPEN>, <CLOSE>, <PICK>, <GOTO>.

3.5.2.     (<GOTO>)

         -
,      1.           
 <GOTO> (   `4').

<GOTO>
     -    ;




                           - 17 -



                             18


<ARG><GOTO>
     -    ;

<ARG>N<GOTO>
     -     "N" (N -  );

<ARG>$<GOTO>
     -     ,    ""
       ("" -   );

       .

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

      ,      
  .

<+PAGE>
     -    1        ;   
         `7';

<-PAGE>
     -    1    ;    
        `2'`7';

<ARG>N<-PAGE>
        ()  N .

           
<+/-LINE>; (CTRL/T/CTRL/W):

<ARG>N<+LINE>
     -   N ;

<ARG>N<-LINE>
     -   N ;

<+LINE>
     -   1 ,     -
            ,   8   -
        ;

<-LINE>
     -   1  (8,    ) ;

<ARG><+LINE>
     -  ""  ,     
         ;

<ARG><+LINE>
     -  ""  ,    
         ;


                           - 18 -



                             19


3.5.4.    / (<RIGHT>  <LEFT>)

<RIGHT>
     -  ""   30  ;    
       `2'< >.

<LEFT>
      ""     30  ;     
     `2'< >.

<ARG>N<RIGHT>
     -  ""   N ;

<ARG>N<LEFT>
     -  ""   N ;

     <RIGHT>    ,     
            .  
 <RETURN>       1-
 .

3.5.5.     

               -
:          f ( )  
""   ,     
      .

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

    <+/-SEARCH> (  `3'  `2'`3')  
           
   .   ,   
,  :

<ARG><+SEARCH>
<ARG><-SEARCH>
               
     ()     .    -
     ,         
             ,  
       :

         "search key not found"
         "  "


           
  :

<+SEARCH>  <-SEARCH>




                           - 19 -



                             20


3.7.      (<USE>, <SAVE>)

    <USE> (CTRL/D,  `-')     
        .    
   :

<ARG><USE>
        .

    :

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

    2)              
         (,  ,       
           ).      -
                .
         ,            
         .     "";

    3)      .      
            :

             "Create (y/n)?"
             ("(y/n)?")


                   
         .

    <USE>      -
  .    ,       
       
/usr/lib/re.std

<SAVE>
     -      (`2'`-'   CTRL/V  
       ).       -
         " .b".    <SAVE>
                 
              
         .b,    
        .

<ARG><SAVE>
           "".

    <SAVE>       -
           


                           - 20 -



                             21


 <EXIT>.

3.7.1.       

<ARG>+w<RETURN>
     -    ;

<ARG>-w<RETURN>
     -   ( ,      )
        .

3.8.  ,    

3.8.1.   <OPEN>  <CLOSE>

    <OPEN> ()      
 ,      .

<OPEN>
     -       ;  
        `8'  PF2.

<ARG>n<OPEN>
     -      "n"    
       ( "n"-  );

<ARG><OPEN>
     -      ,    -
        ;


<ARG>_<OPEN>
<ARG>$<OPEN>
     -    (   ,  -
         "")    ( 
       ,     ).  
               -
           <ARG>.

    <CLOSE>     <OPEN>,
     :

<CLOSE>
     -   ;     `2'`8'  
       PF3.

<ARG>n<CLOSE>
     -  "n" ,   ;

<ARG><CLOSE>
     -     ,  
             ;



                           - 21 -



                             22


<ARG>_<CLOSE>
<ARG>$<CLOSE>
     -       
       .         -
          <ARG>.

   ,      <CLOSE>,    
 - "#"      ( 
  )   :

<ARG><PUT>
     - ,    <CLOSE>,  -
           .

   - "#"  ,  :

    <ARG>#<USE>


       <USE>.

<ARG>><CLOSE>
     - ,    <CLOSE>, -
          "".

3.8.2.    (<PICK>, <PUT>)

        .  
<PICK>  ()        
,           
      <PUT>.      
- "#"      (<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

            

 ---------------------------   ----------------------------
 |        |   &    |  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
____________________________________________________________


                           - 42 -



                             43


____________________________________________________________

                 VDT52100  VT-340
           -------------------- ------------------
           | <CLOSE> | <OPEN> | |        | <ARG> |
           | "d l"   |  "i l" | |"return"|"erase"|
           -------------------- ------------------
           |<B-SPACE>|<INSERT>|
           | "d c"   |  "i c" |
           --------------------
           |     <HOME>       |
           |    "h o m e"     |
           --------------------

                       :
           <+PAGE>   - <LF>`8'      <+LINE>   - ^T
           <-PAGE>   - <LF><LF>`8'  <-LINE>   - ^W
           <LEFT>    - <LF><>
           <RIGHT>   - <LF><>
           <GOTO>    - <LF>`4'      <+SEARCH> - ^R
           <M-PORT>  - <LF><LF>`4'  <PICK>    - ^F
           <CH-PORT> - <LF>`0'      <PUT>     - ^G
           <ESCAPE>  - ^A           <EXEC>    - ^P
           <CH-TAB>  - <LF><LF>`5'  <B-TAB>   - ^B
           <DEL-CH>  - ^U           <-SEARCH> - ^E
           <SAVE>    - <LF><LF>`-'  <USE>     - ^D

                           . 7
____________________________________________________________










                           - 43 -



                             44


____________________________________________________________

                      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
____________________________________________________________










                           - 44 -



                             45


____________________________________________________________

                      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
____________________________________________________________










                           - 45 -



                             46


____________________________________________________________

              -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    ch-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


                           - 46 -



                             47


                         



     .........................................    2

1.   ..........................................    3

2.     ..........................    3
2.1.    . ...............    3
2.2.    .................................    5
2.3.           -
       ............................................    5
2.3.1.    ........................    7
2.3.2.      ..................    8
2.3.3.      red  ...................    8
2.4.      ......................    9
2.5.     .......................   10
2.6.      ..............   11
2.7.      .............................   12

3.    red .............................   13
3.1.    <ARG> ...........................   13
3.2.    ...........................   14
3.3.      ....................   14
3.3.1.     .........................   14
3.3.2.   <HOME>  <RETURN> .....................   15
3.3.3.   (<tab>, <b-tab>, <set-tab>) .........   16
3.4.     ....................   16
3.4.1.   .   (<INSERT>) .........   16
3.4.2.        (<DEL-CH>      <BACK-
        SPACE>) .......................................   16
3.4.3.     (<ESCAPE>) ..........   17
3.5.     ............................   17
3.5.1.      .....................   17
3.5.2.     (<GOTO>) ......................   17
3.5.3.     (<+PAGE>,  <-PAGE>,  <+LINE>,
        <-LINE>) ......................................   18
3.5.4.    / (<RIGHT>  <LEFT>) ....   19
3.5.5.      .................   19
3.6.    (<+SEARCH>, <-SEARCH>)  .......   19
3.7.      (<USE>, <SAVE>) ..........   20
3.7.1.        .............   21
3.8.  ,     ...........   21
3.8.1.   <OPEN>  <CLOSE> ......................   21
3.8.2.    (<PICK>, <PUT>) ............   22
3.9.     (<M-PORT>  <CH-PORT>) ..........   23
3.10.   .......................   25
3.11.   ......................   25
3.12.  -   ( <EXEC>) ...   26
3.12.1.   (rpl)     ..................   27
3.12.2.    <EXEC>       ....   27
3.12.3.     (<EXIT>) ..................   28


                           - 47 -



                             48


3.13.  .      
       ................................................   28

4.     ........................   29

5.    red.     
     ........................................   31
5.1.        ...   31
5.2.   . ..............................   37

     1.    red ........   39

       ...........................   39

      2.        
      ............................   46















                           - 48 -




Last-modified: Tue, 30 Jun 1998 04:29:08 GMT
: