home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 1000s / rfc1079.txt < prev    next >
Text File  |  1988-12-11  |  5KB  |  171 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. Network Working Group                                         C. Hedrick
  10. Request for Comments: 1079                            Rutgers University
  11.                                                            December 1988
  12.  
  13.  
  14.                       Telnet Terminal Speed Option
  15.  
  16. Status of This Memo
  17.  
  18.    This RFC specifies a standard for the Internet community.  Hosts on
  19.    the Internet that exchange terminal speed information within the
  20.    Telnet protocol are expected to adopt and implement this standard.
  21.    Distribution of this memo is unlimited.
  22.  
  23.    This standard is modelled on RFC 930 [1], the telnet terminal type
  24.    option.  Much of the text of this document is copied from that RFC.
  25.  
  26. Motivation
  27.  
  28.    Most operating systems have provisions to keep track of the speed
  29.    (bit rate) of directly attached terminals and modems.  This
  30.    information is used to control various timing-dependent display
  31.    processes, e.g., the number of padding characters used for delay.
  32.    Some software also has user interfaces that are tuned differently for
  33.    fast and slow terminals.  The purpose of this option is to provide
  34.    similar information for telnet connections.
  35.  
  36. 1. Command Name and Code
  37.  
  38.       TERMINAL-SPEED
  39.  
  40.       Code = 32
  41.  
  42. 2. Command Meanings
  43.  
  44.       IAC WILL TERMINAL-SPEED
  45.  
  46.          Sender is willing to send terminal speed information in a
  47.          subsequent sub-negotiation.
  48.  
  49.       IAC WON'T TERMINAL-SPEED
  50.  
  51.          Sender refuses to send terminal speed information.
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Hedrick                                                         [Page 1]
  59.  
  60. RFC 1079              Telnet Terminal Speed Option         December 1988
  61.  
  62.  
  63.       IAC DO TERMINAL-SPEED
  64.  
  65.          Sender is willing to receive terminal speed information in a
  66.          subsequent sub-negotiation.
  67.  
  68.       IAC DON'T TERMINAL-SPEED
  69.  
  70.          Sender refuses to accept terminal speed information.
  71.  
  72.       IAC SB TERMINAL-SPEED SEND IAC SE
  73.  
  74.          Sender requests receiver to transmit his (the receiver's)
  75.          terminal speed. The code for SEND is 1. (See below.)
  76.  
  77.       IAC SB TERMINAL-SPEED IS ... IAC SE
  78.  
  79.          Sender is stating his terminal speed. The code for IS is 0.
  80.          (See below.)
  81.  
  82. 3. Default
  83.  
  84.       WON'T TERMINAL-SPEED
  85.  
  86.          Terminal speed information will not be exchanged.
  87.  
  88.       DON'T TERMINAL-SPEED
  89.  
  90.          Terminal speed information will not be exchanged.
  91.  
  92. 4. Description of the Option
  93.  
  94.    WILL and DO are used only to obtain and grant permission for future
  95.    discussion. The actual exchange of status information occurs within
  96.    option subcommands (IAC SB TERMINAL-SPEED...).
  97.  
  98.    Once the two hosts have exchanged a WILL and a DO, the sender of the
  99.    DO TERMINAL-SPEED is free to request speed information.  Only the
  100.    sender of the DO may send requests (IAC SB TERMINAL-SPEED SEND IAC
  101.    SE) and only the sender of the WILL may transmit actual speed
  102.    information (within an IAC SB TERMINAL-SPEED IS ... IAC SE command).
  103.    Terminal speed information may not be sent spontaneously, but only in
  104.    response to a request.
  105.  
  106.    The terminal speed information is an NVT ASCII string.  This string
  107.    contains the decimal representation of the transmit and receive
  108.    speeds of the terminal, separated by a comma, e.g.,
  109.  
  110.          9600,100
  111.  
  112.  
  113.  
  114. Hedrick                                                         [Page 2]
  115.  
  116. RFC 1079              Telnet Terminal Speed Option         December 1988
  117.  
  118.  
  119.    No leading zeros may be included.  No extraneous characters such as
  120.    spaces may be included.
  121.  
  122.       The following is an example of use of the option:
  123.  
  124.          Host1: IAC DO TERMINAL-SPEED
  125.  
  126.          Host2: IAC WILL TERMINAL-SPEED
  127.  
  128.       (Host1 is now free to request status information at any time.)
  129.  
  130.          Host1: IAC SB TERMINAL-SPEED SEND IAC SE
  131.  
  132.          Host2: IAC SB TERMINAL-SPEED IS "1200,1200" IAC SE
  133.  
  134.       (This command is 15 octets.)
  135.  
  136. 5. Implementation Suggestions
  137.  
  138.    Many systems allow only certain discrete terminal speeds.  In such
  139.    cases it is possible that a speed may be received that does not match
  140.    one of the allowed values.  We suggest that you pick the nearest
  141.    speed that is allowed, rounding in a "safe" direction.  Safety will
  142.    depend upon the use of the speed information.  If it is being used
  143.    for padding, it is best to round up, since too much padding is better
  144.    than too little.
  145.  
  146. Reference
  147.  
  148.    [1]  Solomon, M., and Wimmers, E., "Telnet Terminal Type Option",
  149.         RFC 930, January, 1985
  150.  
  151. [AAuthor's Address:
  152.  
  153.    Charles Hedrick
  154.    Rutgers University
  155.    Center for Computer and Information Services
  156.    Hill Center, Busch Campus
  157.    P.O. Box 879
  158.    Piscataway, NJ 08855-0879
  159.  
  160.    Phone: (201) 932-3088
  161.  
  162.    Email: HEDRICK@ARAMIS.RUTGERS.EDU
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Hedrick                                                         [Page 3]
  171.