home *** CD-ROM | disk | FTP | other *** search
/ Handbook of Infosec Terms 2.0 / Handbook_of_Infosec_Terms_Version_2.0_ISSO.iso / text / rfcs / rfc0732.txt < prev    next >
Text File  |  1996-05-07  |  59KB  |  1,158 lines

  1.  NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  2.  
  3.  
  4.  
  5. Network Working Group                                           John Day Request for Comments: 732                                                NIC: 41762                                             12 September 1977 
  6.  
  7. Obsoletes: 731 
  8.  
  9.                     Telnet Data Entry Terminal Option 
  10.  
  11. 1.  Command Name and Code: 
  12.  
  13.   DET             20 
  14.  
  15. 2.  Command Meanings 
  16.  
  17.   IAC WILL DET 
  18.  
  19.     The sender of this command REQUESTS or AGREES to send and receive     subcommands to control the Data Entry Terminal. 
  20.  
  21.   IAC WONT DET 
  22.  
  23.     The sender of this command REFUSES to send and receive subcommands     to control the Data Entry Terminal. 
  24.  
  25.   IAC DO DET 
  26.  
  27.     The sender of this command REQUESTS or AGREES to send and receive     subcommands to control the Data Entry Terminal. 
  28.  
  29.   IAC DONT DET 
  30.  
  31.     The sender of this command REFUSES to send and receive subcommands     to control the Data Entry Terminal. 
  32.  
  33.   The DET option uses five classes of subcommands 1) to establish the   requirements and capabilities of the application and the terminal, 2)   to format the screen, and to control the 3) edit, 4) erasure, and 5)   transmission functions. The subcommands that perform these functions   are described below. 
  34.  
  35.   The Network Virtual Data Entry Terminal (NVDET) 
  36.  
  37.     The NVDET consists of a keyboard and a rectangular display. The     keyboard is capable of generating all of the characters of the ASCII     character set. In addition, the keyboard may possess a number of     function keys which when pressed cause a FN subcommand to be sent. 
  38.  
  39.  
  40.  
  41.  
  42.  
  43. John Day                                                        [page 1]
  44.  
  45.  
  46. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  47.  
  48.  
  49.  
  50.     (Although most DET's will support one or more peripheral devices     such as a paper tape reader or a printer, this option does not     consider their support. Support of peripheral devices should be     treated by a is a separate option). 
  51.  
  52.     The screen of the data entry terminal is a rectangle M characters by     N lines. The values of M and N are set by negotiating the Output     Line Width and Output Page Size options, respectively. The next     writing position (x,y) on the screen (where x is the character     position and y is the position of the line on the screen) is     indicated by a special display character called the cursor. The     cursor may be moved to any position on the screen without disturbing     any characters already on the screen. Cursor addressing in existing     terminals utilizes several topologies and addressing methods. In     order to make the burden of implementaton as easy as possible this     protocol supports two topologies (the finite plane and the helical     torus) and three addressing methods ((x,y); x and y, and relative     increments). Since the finite plane with absolute addressing is the     least ambiguous and the easiest to translate to and from the others,     it is the default scheme used by the NVDET. The torodial form with     either relative or absolute addressing is provided for convience. 
  53.  
  54.     Also the NVDET provides a mechanism for defining on the screen     fields with special attributes. For example, characters entered into     these fields may be displayed with brighter intensity, highlighted     by reverse video or blinking, or protected from modification by the     user. This latter feature is one of the most heavily used for     applications where the DET displays a form to be filled out by the     user. 
  55.  
  56.     The definition of the NVDET uses Telnet option subnegotiations to     accomplish all of its functions. Since none of the ASCII characters     sent in the data stream have been used to define these functions,     the DET option can be used in a "raw" or even "rare" mode. In     circumstances where the application program knows what kind of     terminal is on the other end, it can send the ASCII characters     required to control functions not supported by the option or an     implementation. In general keeping all NVDET functions out of the     data stream provides better flexibility. 
  57.  
  58.   Facility Functions  (for detailed semantics see Section 5.) 
  59.  
  60.     IAC SB DET <DET facility subcommand><facility map> IAC SE 
  61.  
  62.     where <DET facility subcommand> is one 8-bit byte indicating  the     class of the facilities to be described, and <facility map> is a     field of one or two  8-bit  bytes containing  flags  describing  the 
  63.  
  64.  
  65.  
  66.  
  67.  
  68. John Day                                                        [page 2]
  69.  
  70.  
  71. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  72.  
  73.  
  74.  
  75.     facilities required or desired by the sender.  The bits of the     facility maps are numbered from the right starting at zero.  Thus,     if bit 2 is set the field will have a decimal  value  of  4.   The     values of the field are as follows: 
  76.  
  77.     facility cmd:  EDIT FACILITIES                    subcommand code: 1 
  78.  
  79.       facility map:                              bit numbers 
  80.  
  81.         Toroidal Cursor Addressing                  6         Incremental Cursor Addressing               5         Read Cursor Address                         4         Line Insert/Delete                          3         Char Insert/Delete                          2         Back Tab                                    1         Positive Addressing only                    0 
  82.  
  83.     where: 
  84.  
  85.     If the Toroidal Cursor Addressing bit is set, the sender requests or     provides that the SKIP TO LINE and SKIP TO CHAR subcommands be     supported. 
  86.  
  87.     If the Incremental Cursor Addressing bit is set, the sender requests     or provides that the UP, DOWN, LEFT, and RIGHT subcommands be     supported. 
  88.  
  89.     If the Read Cursor bit is set, the sender requests or provides the     READ CURSOR subcommand. 
  90.  
  91.     If the Line Insert/Delete bit is set, the sender requests or     provides that the LINE INSERT and LINE DELETE subcommands be     supported. 
  92.  
  93.     If the Char Insert/Delete bit is set, the sender requests or     provides that the CHAR INSERT and CHAR DELETE subcommands be     supported. 
  94.  
  95.     If the Back Tab bit is set, the sender requests or provides that the     BACK TAB subcommand be supported. 
  96.  
  97.     If the Positive Addressing bit is set, then the sender is informing     the receiver that it can only move the cursor in the positive     direction. (Note: Terminals that have this property also have a Home     function to get back to the beginning.) 
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. John Day                                                        [page 3]
  106.  
  107.  
  108. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  109.  
  110.  
  111.  
  112.     facility cmd:  ERASE FACILITIES                  subcommand code:  2 
  113.  
  114.       facility map:                                bit numbers 
  115.  
  116.         Erase Field                                     4         Erase Line                                      3         Erase Rest of Screen                            2         Erase Rest of Line                              1         Erase Rest of Field                             0 
  117.  
  118.     where: 
  119.  
  120.     If a bit of the facility map for this facility command is set, the     sender requests or provides the facility indicated by the bit. For a     more complete description of each of these functions see the Erase     Functions section below. 
  121.  
  122.     facility cmd:  TRANSMIT FACILITIES               subcommand code:  3 
  123.  
  124.       facility map:                      bit numbers 
  125.  
  126.         Data Transmit                         5         Transmit Line                         4         Transmit Field                        3         Transmit Rest of Screen               2         Transmit Rest of Line                 1         Transmit Rest of Field                0 
  127.  
  128.     where: 
  129.  
  130.     If a bit of the facility map for this facility command is set, the     sender requests or provides the facility indicated by the bit. For a     more complete description of each of these functions see the     Transmit Functions section below. 
  131.  
  132.     facility cmd:  FORMAT FACILITIES                 subcommand code:  4 
  133.  
  134.       facility map:                               bit numbers 
  135.  
  136.         FN                                 byte 0      7         Modified                                       6         Light Pen                                      5         Repeat                                         4         Blinking                                       3         Reverse Video                                  2         Right Justification                            1         Overstrike                                     0 
  137.  
  138.  
  139.  
  140.  
  141.  
  142. John Day                                                        [page 4]
  143.  
  144.  
  145. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  146.  
  147.  
  148.  
  149.         Protection On/Off                  byte 1      6         Protection                                     5         Alphabetic-only Protection                     4         Numeric-only Protection                        3         Intensity                                      0-2 
  150.  
  151.     where: 
  152.  
  153.     If the FN bit is set, the sender requests or provides the FN     subcommand. 
  154.  
  155.     If the Modified bit is set, the sender requests or provides the     ability to indicate fields that are modified and supports the     TRANSMIT MODIFIED subcommand. 
  156.  
  157.     If the Light Pen bit is set, the sender requests or provides the     support of a light pen, including the Pen Selectable attribute of     the DATA FORMAT subcommand. 
  158.  
  159.     If the Repeat bit is set the sender requests or provides the REPEAT     subcommand. 
  160.  
  161.     If the Blinking bit is set, the sender requests or provides the     ability to highlight a string of characters by causing them to     blink. 
  162.  
  163.     If the Reverse Video bit is set, the sender requests or provides the     ability to highlight a string of characters by "reversing the video     image," i.e., if the characters are normally displayed as black     characters on a white background, this is reversed to be white     characters on a black background, or vice versa. 
  164.  
  165.     If the Right Justification bit is set, the sender requests or     provides the ability to cause entries of data to be right justified     in the field. 
  166.  
  167.     If the Overstrike bit is set, the sender requests or provides the     ability to superimpose one character over another on the screen much     like a hard copy terminal would do if the print mechanism struck the     same position on the paper with different characters. 
  168.  
  169.     If the Protection On/Off bit is set, the sender requests or provides     the ability to turn on and off field protection. 
  170.  
  171.     If the Protection bit is set, the sender requests or provides the     ability to protect certain strings of 
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  John Day                                                        [page 5]
  178.  
  179.  
  180. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  181.  
  182.  
  183.  
  184.     characters displayed on the screen from being altered by the user of     the terminal. Setting this bit also implies that ERASE UNPROTECTED,     DATA TRANSMIT, FIELD SEPARATOR, and TRANSMIT UNPROTECTED subcommands     (see below) are supported. 
  185.  
  186.     If the Alphabetic-only Protection bit is set, the sender requests or     provides the ability to constrain the user of the terminal such that     he may only enter alphabetic data into certain areas of the screen. 
  187.  
  188.     If the Numeric-only Protection bit is set, the sender requests or     provides the ability to constrain the user of the terminal such that     he may only enter numerical data into certain areas of the screen. 
  189.  
  190.     The three bits of the Intensity field will contain a positive binary     integer indicating the number of levels of intensity that the sender     requests or provides for displaying the data. The value of the 3 bit     field should be interpreted in the following way: 
  191.  
  192.       1        one visible intensity       2        two intensities; normal and bright       3        three intensities; off, normal, and bright       >3        >3 intensities; off, and the remaining levels       proportioned from dimmest to brightest intensity. 
  193.  
  194.     For the all of the above commands, if the appropriate bit in     <facility map> is not set, then the sender does not request or     provide that facility. 
  195.  
  196.   Editing Functions 
  197.  
  198.     IAC SB DET MOVE CURSOR <x><y> IAC SE              subcommand code: 5 
  199.  
  200.     where <x> is an 8-bit byte containing a positive binary integer     representing the character position of the cursor, <y> is an 8-bit     byte containing a positive binary integer representing the line     position of the cursor. 
  201.  
  202.     This subcommand moves the cursor to the absolute screen address     (x,y) with the following boundary conditions: 
  203.  
  204.       if x>M-1, set x=M-1 and send an ERROR subcommand 
  205.  
  206.       if y>N-1, set y=N-1 and send an ERROR subcommand 
  207.  
  208.     This describes a finite plane topology on the screen. 
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216. John Day                                                        [page 6]
  217.  
  218.  
  219. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  220.  
  221.  
  222.  
  223.     IAC SB DET SKIP TO LINE <y> IAC SE                subcommand code: 6 
  224.  
  225.     where <y> is a positive 8-bit binary number. 
  226.  
  227.     This subcommand moves the cursor to the absolute screen line y. x     remains constant. For values of y>N-1 
  228.  
  229.       y = y mod N. 
  230.  
  231.     IAC SB DET SKIP TO CHAR <x> IAC SE                subcommand code: 7 
  232.  
  233.     where <x> is a positive 8-bit binary number. 
  234.  
  235.     This subcommand moves the cursor to the absolute character position     x. y remains constant, unless x>M-1 in which case: 
  236.  
  237.       x' = (x mod M)       y' = (y+(x DIV N))       where x' and y' are the new values of the cursor. 
  238.  
  239.     These last two subcommands define a toroidal topology on the screen. 
  240.  
  241.     IAC SB DET UP IAC SE                              subcommand code: 8 
  242.  
  243.     IAC SB DET DOWN IAC SE                            subcommand code: 9 
  244.  
  245.     IAC SB DET LEFT IAC SE                           subcommand code: 10 
  246.  
  247.     IAC SB DET RIGHT IAC SE                          subcommand code: 11 
  248.  
  249.     These subcommands are provided as a convenience for some terminals.     The commands UP, DOWN, LEFT, and RIGHT are defined as 
  250.  
  251.     UP:     (x,y)=(x, y-1 mod N)     DOWN:   (x,y)=(x, y+1 mod N)     LEFT:   (x,y)=(x-1, y); if x=0 then x-1 = 0 
  252.  
  253.     RIGHT:  (x,y)=(x+1 mod M, y) and y = y+1 if x+1>M-1 
  254.  
  255.     Note: DOWN, LEFT, and RIGHT cannot always be replaced by the ASCII     codes for linefeed, backspace, and space respectively. The latter     are format effectors while the former are cursor controls. 
  256.  
  257.     IAC SB DET HOME IAC SE                           subcommand code: 12 
  258.  
  259.     This subcommand positions the cursor to (0,0). This is equivalent to     a MOVE CURSOR 0,0 or the sequence SKIP TO LINE 0, SKIP TO CHAR 0. 
  260.  
  261.  
  262.  
  263.  
  264.  
  265. John Day                                                        [page 7]
  266.  
  267.  
  268. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  269.  
  270.  
  271.  
  272.     This subcommand is provided for convenience, since most terminals     have it as a separate control. 
  273.  
  274.     IAC SB DET LINE INSERT IAC SE                    subcommand code: 13 
  275.  
  276.     This subcommand inserts a line of spaces between lines y (the     current line, determined by the position of the cursor) and line     y-1. Lines y through N-2 move down one line, i.e. line y becomes     line y+1; y+1 becomes y+2, ...; N-2 becomes N-1. Line N-1 is lost     off the bottom of the screen. The position of the cursor remains     unchanged. 
  277.  
  278.     IAC SB DET LINE DELETE IAC SE                    subcommand code: 14 
  279.  
  280.     This subcommand deletes line y where y is the current line position     of the cursor. Lines y+1 through N-1 move up one line, i.e. line y+1     becomes line y; y+2 becomes y+1; ...; N-1 becomes N-2. The N-1st     line position is set to all spaces. The cursor position remains     unchanged. 
  281.  
  282.     IAC SB DET CHAR INSERT IAC SE                    subcommand code: 15 
  283.  
  284.     This subcommand inserts the next character in the data stream     between the xth and x-1st characters, where x is the current     character position of the cursor. The xth through M-2nd characters     on the line are shifted one character positon to the right. The new     character is inserted at the vacated xth position. The M-1st     character is lost. The position of the cursor remains unchanged. 
  285.  
  286.     IAC SB DET CHAR DELETE IAC SE                    subcommand code: 16 
  287.  
  288.     This subcommand deletes the character on the screen at the x-th     position. The x-th character is removed and the characters x+1     through M-1 are shifted one character position to the left to become     the x-th through M-2nd characters. The M-1st character position is     left empty. (For most terminals it will be set to a NUL or space.)     The cursor position remains unchanged. 
  289.  
  290.     IAC SB DET READ CURSOR IAC SE                    subcommand code: 17 
  291.  
  292.     This subcommand requests the receiver to send the present position     of the cursor to the sender. 
  293.  
  294.     IAC SB DET CURSOR POSITION <x><y> IAC SE         subcommand code: 18 
  295.  
  296.     where <x> and <y> are positive 8-bit binary integers. 
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  John Day                                                        [page 8]
  303.  
  304.  
  305. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  306.  
  307.  
  308.  
  309.     This subcommand is sent by a Telnet implementation in response to a     READ CURSOR subcommand to convey the coordinates of the cursor to     the other side. Note: x is less than M and y is less than N. 
  310.  
  311.     IAC SB DET REVERSE TAB IAC SE                    subcommand code: 19 
  312.  
  313.     This subcommand causes the cursor to move to the previous tab     position. If none exists on the present line, the cursor moves to     the previous line and so on until a tab is found or the address     (0,0) is encountered. When field protection is in effect the cursor     moves to the beginning of the preceding unprotected field. 
  314.  
  315.   Transmit Functions (For detailed semantics see Section 5.) 
  316.  
  317.     IAC SB DET TRANSMIT SCREEN IAC SE                subcommand code: 20 
  318.  
  319.     This subcommand causes the terminal to transmit all characters on     the screen from position (0,0) to (M-1,N-1). The cursor will be at     (0,0) after the operation is complete. 
  320.  
  321.     IAC SB DET TRANSMIT UNPROTECTED IAC SE           subcommand code: 21 
  322.  
  323.     This subcommand causes the terminal to transmit all characters in     unprotected fields from position (0,0) to (M-1,N-1). The unprotected     fields are separated by the field separator subcommand. The cursor     will be at (0,0) or at the beginning of the first unprotected field     after the operation is complete. 
  324.  
  325.     IAC SB DET TRANSMIT LINE IAC SE                  subcommand code: 22 
  326.  
  327.     This subcommand causes the terminal to transmit all data on the yth     line where y is determined by the present position of the cursor.     Data is sent from character position (0,y) to the end-of-line or     position (M-1,y) whichever comes first. The cursor position after     the transmission is one character position after the end of line     condition or the beginning of the next line, (0,y+1). 
  328.  
  329.     IAC SB DET TRANSMIT FIELD IAC SE                 subcommand code: 23 
  330.  
  331.     This subcommand causes the terminal to transmit all data in the     field presently occupied by the cursor. The cursor position after     the operation is complete is one character position after the end of     the field or, if that 
  332.  
  333.     position is protected, at the beginning of the next unprotected     field. 
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  John Day                                                        [page 9]
  340.  
  341.  
  342. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  343.  
  344.  
  345.  
  346.     IAC SB DET TRANSMIT REST OF SCREEN IAC SE        subcommand code: 24 
  347.  
  348.     This subcommand causes the terminal to transmit all characters on     the screen from position (x,y) to (M-1,N-1) or until the end of     text. (x,y) is the current cursor position. The cursor position     after the operation is one character position after the last text     character, or (0,0) if the last filled character position is     (M-1,N-1). 
  349.  
  350.     IAC SB DET TRANSMIT REST OF LINE IAC SE          subcommand code: 25 
  351.  
  352.     This subcommand causes the terminal to transmit all characters on     the yth line from position (x,y) to the end of line or (M-1,y)     whichever comes first. (x,y) is the current cursor position. The     cursor position after the operation is one character position after     the last character of the line or the first character of the next     line. 
  353.  
  354.     IAC SB DET TRANSMIT REST OF FIELD IAC SE         subcommand code: 26 
  355.  
  356.     This subcommand causes the receiver to transmit the rest of the     characters in the field currently occupied by the cursor. The cursor     position after the operation is at the beginning of the next field. 
  357.  
  358.     IAC SB DET TRANSMIT MODIFIED IAC SE              subcommand code: 27 
  359.  
  360.     This subcommand causes the receiver to transmit only those fields     which have the modified attribute set. The cursor position after the     operation is unchanged. 
  361.  
  362.     IAC SB DET DATA TRANSMIT <x><y> IAC SE           subcommand code: 28 
  363.  
  364.     This subcommand is used to preface data sent from the terminal in     response to a user action or a TRANSMIT command. The parameters <x>     and <y> indicate the initial position of the cursor. See the     Transmit Subcommands subsection in Section 5 for more details. A     DATA TRANSMIT subcommand may precede an entire transmission with     each field being delineated by the FIELD SEPARATOR subcommand as     would be the case in a response toa 
  365.  
  366.     TRANSMIT UNPROTECTED. Or, it may precede each field as would be the     case in a response to a TRANSMIT MODIFIED. 
  367.  
  368.   Erase Functions 
  369.  
  370.     IAC SB DET ERASE SCREEN IAC SE                   subcommand code: 29 
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  John Day                                                       [page 10]
  377.  
  378.  
  379. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  380.  
  381.  
  382.  
  383.     This subcommand causes all characters to be removed from the screen.     All fields regardless of their attributes are deleted. The cursor     position after the operation will be (0,0). Most terminals set the     erased characters to either NUL or space characters. 
  384.  
  385.     IAC SB DET ERASE LINE IAC SE                     subcommand code: 30 
  386.  
  387.     This subcommand causes all characters on the yth line to be removed     from the screen, where y is the line of the current cursor position.     All fields regardless of their attributes are deleted. The cursor     position after this operation will be (0,y). Note: This operation     can be easily simulated by the sequence: LINE DELETE, LINE INSERT.     However, the order is important to insure that no data is lost off     the bottom of the screen. 
  388.  
  389.     IAC SB DET ERASE FIELD IAC SE                    subcommand code: 31 
  390.  
  391.     This subcommand causes all characters in the field occupied by the     cursor to be removed. The cursor position after the operation is at     the beginning of the field. 
  392.  
  393.     IAC SB DET ERASE REST OF SCREEN IAC SE           subcommand code: 32 
  394.  
  395.     This subcommand causes all characters from position (x,y) to     (M-1,N-1) to be removed from the screen. All fields regardless of     their attributes are deleted. The cursor position after the     operation is unchanged. This is equivalent to doing an ERASE REST OF     LINE plus a LINE DELETE for lines greater than y. 
  396.  
  397.     IAC SB DET ERASE REST OF LINE IAC SE             subcommand code: 33 
  398.  
  399.     This subcommand causes all characters from position (x,y) to (M-1,y)     to be removed from the screen All fields regardless of their     attributes are deleted. The cursor position after the operation is     unchanged. 
  400.  
  401.     IAC SB DET ERASE REST OF FIELD IAC SE            subcommand code: 34 
  402.  
  403.     This subcommand causes all characters from position (x,y) to the end     of the current field to be removed from the screen. The cursor     position after the operation is unchanged. 
  404.  
  405.     IAC SB DET ERASE UNPROTECTED IAC SE              subcommand code: 35 
  406.  
  407.     This subcommand causes all characters on the screen in unprotected     fields to be removed from the screen. The cursor position after the 
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  John Day                                                       [page 11]
  414.  
  415.  
  416. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  417.  
  418.  
  419.  
  420.     operation is at (0,0) or, if that position is protected, at the     beginning of the first unprotected field. 
  421.  
  422.   Format Functions 
  423.  
  424.     IAC SB DET FORMAT DATA <format map><count> IAC SE                                                      subcommand code: 36 
  425.  
  426.     where <format map> is a two byte field containing the following     flags: 
  427.  
  428.       Byte 0         Blinking                                 7         Reverse Video                            6         Right Justification                      5         Protection                              3-4         Intensity                               0-2       Byte 1         Modified                                1         Pen Selectable                          0 
  429.  
  430.     where: 
  431.  
  432.     If the Blinking bit is set, the following field of <count>     characters should have the Blinking attribute applied to it by the     receiver. 
  433.  
  434.     If the Reverse Video bit is set, the following field of <count>     characters should be displayed by the receiver with video reversed. 
  435.  
  436.     If the Right Justification bit is set, the input entered into the     field of <count> characters should be right justified. 
  437.  
  438.     The Protection field is two bits wide and may take on the 
  439.  
  440.     following values: 
  441.  
  442.       0         no protection       1         protected       2         alphabetic only       3         numeric only 
  443.  
  444.     The protection attribute specifies that the other side may modify     any character (no protection), modify no characters (protected),     enter only alphabetical characters (A-Z, and a-z) (alphabetic only),     or enter only numerical characters (0-9,+,.,and -) (numeric only) in     the following field of <count> bytes. 
  445.  
  446.  
  447.  
  448.  
  449.  
  450. John Day                                                       [page 12]
  451.  
  452.  
  453. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  454.  
  455.  
  456.  
  457.     The Intensity field is 3 bits wide and should be interpreted in the     following way: 
  458.  
  459.       The values 0-6 should be used as an indication of the relative       brightness to be used when displaying the characters in or entered       into the following field <count> characters wide. The number of       levels of brightness available should have been obtained       previously by the Format Facility subcommand. The exact algorithm       for mapping these values to the available levels of intensity is       left to the implementors. A value of 7 in the intensity field       indicates that the brightness should be off, and any characters in       or entered into the field should not be displayed. 
  460.  
  461.     If the Modified bit is set, the field is considered to have been     modified and will be transmitted in response to a TRANSMIT MODIFIED     subcommand. 
  462.  
  463.     If the Pen Selectable bit is set, the field can be selected with the     light pen. Note: Use of the light pen should be the subject of     another Telnet option. 
  464.  
  465.     <count> is 2 bytes that should be interpreted as a positive 16-bit     binary integer representing the number of characters following this     command which are affected by it. 
  466.  
  467.     Data sent to the terminal or the Using Host for unwritten areas of     the screen not in the scope of the count should be displayed with     the default values of the format map. The default values are No     Blinking, Normal Video, No Justification, No Protection and Normal     Intensity. For example, suppose a FORMAT DATA subcommand was sent to     the terminal with attributes Blinking and Protected and a 
  468.  
  469.     count of 5 followed by the string "Name: John Doe". The string     "Name:" would be protected and blinking, but the string "John Doe"     would not be. 
  470.  
  471.     This subcommand is used to format data to be displayed on the screen     of the terminal. The <format map> describes the attributes that the     field <count> bytes wide should have. This field is to start at the     position of the cursor when the command is acted upon. The next     <count> displayable characters in the data stream are used to fill     the field. Subsequent REPEAT subcommands may be used to specify the     contents of this field. If the sender specifies attributes that have     not been agreed upon by the use of the Format Facility subcommand,     the Telnet process should send an Error Subcommand to the sender,     but format the screen as if the bit had not been set. 
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  John Day                                                       [page 13]
  478.  
  479.  
  480. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  481.  
  482.  
  483.  
  484.     IAC SB DET REPEAT <count><char> IAC SE           subcommand code: 37 
  485.  
  486.     where <count> is a positive 8-bit binary integer. <char> is an 8-bit     byte containing an ASCII character. 
  487.  
  488.     This subcommand is used to perform data compression on data being     transferred to the terminal by encoding strings of identical     characters as the character and a count. The repeated characters may     be part of a field specified 
  489.  
  490.     IAC SB DET SUPPRESS PROTECTION <negotiation> IAC SE                                                      subcommand code: 38 
  491.  
  492.     where <negotiation> may have the values of the Telnet option     negotiation: 
  493.  
  494.       251                 WILL       252                 WONT       253                 DO       254                 DONT 
  495.  
  496.     This subcommand is used to suppress the field protection in a     non-destructive manner. Many data entry terminals provide the means     by which protection may be turned on and off without modifying the     contents of the screen or the terminal's memory. Thus, the     protection may be turned off and back on without retransmitting the     form. 
  497.  
  498.     The default setting of the option is that protection is on, in other     words 
  499.  
  500.       IAC SB DET SUPPRESS PROTECTION WONT IAC SE       IAC SB DET SUPPRESS PROTECTION DONT IAC SE 
  501.  
  502.     Negotiation of this subcommand follows the same rules as     negotiations of the Telnet options. 
  503.  
  504.     IAC SB DET FIELD SEPARATOR IAC SE                subcommand code: 39 
  505.  
  506.     It is necessary when transmitting only the unprotected portion of     the screen to provide a means for delimiting the fields. Existing     DET's use a variety of ASCII characters such as Tab, Group     Separator, Unit Separator, etc. In order to maintain transparency of     the NVDET this subcommand is used to separate the fields. Clearly,     this incurs rather high overhead. This overhead can be avoided by     using the Byte Macro Option (see Appendix 3). 
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  John Day                                                       [page 14]
  513.  
  514.  
  515. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  516.  
  517.  
  518.  
  519.   Miscellaneous Commands 
  520.  
  521.     IAC SB DET FN <code> IAC SE                      subcommand code: 40 
  522.  
  523.     where: <code> is one byte. 
  524.  
  525.     Many data-entry terminals provide a set of "function" keys which     when pressed send a one-character command to the server. This     subcommand describes such a facility. The values of the <code> field     are defined by the user and server. The option merely provides the     means to transfer the information. 
  526.  
  527.     IAC SB DET ERROR <cmd> <error code> IAC SE       subcommand code: 41 
  528.  
  529.     where: 
  530.  
  531.       <cmd> is a byte containing the subcommand code of the subcommand       in error. 
  532.  
  533.       <error code> is a byte containing an error code. 
  534.  
  535.       (For a list of the defined error codes see Appendix 2.) 
  536.  
  537.     This subcommand is provided to allow DET option implementations to     report errors they detect to the corresponding Telnet process. At     this point it is worth reiterating that the philosophy of this     option is that when an error is detected it should be reported;     however, the implementation should attempt its best effort to carry     out the intent of the subcommand or data in error. 
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561. John Day                                                       [page 15]
  562.  
  563.  
  564. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  565.  
  566.  
  567.  
  568. 3. Default and Minimal Implementation Specifications 
  569.  
  570.   Default 
  571.  
  572.     WON'T DET -- DON'T DET 
  573.  
  574.     Neither host wishes to use the Data Entry Terminal option. 
  575.  
  576.   Minimal Implementation 
  577.  
  578.     DET EDIT FACILITIES     DET ERASE FACILITIES     DET TRANSMIT FACILITIES     DET FORMAT FACILITIES     DET MOVE CURSOR <x><y>     DET HOME     DET ERASE SCREEN     DET TRANSMIT SCREEN     DET FORMAT DATA     DET ERROR <cmd> <error code> 
  579.  
  580.     In the case of formatting the data, the minimal implementation     should be able to support a low and high level of intensity and     protection for all or no characters in a field. These functions,     however, are not required. 
  581.  
  582.     The minimal implementation also requires that the Output Line Width     and Output Page Size Telnet options be supported. 
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  John Day                                                       [page 16]
  607.  
  608.  
  609. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  610.  
  611.  
  612.  
  613. 4. Motivation 
  614.  
  615.   The Telnet protocol was originally designed to provide a means for   scroll-mode terminals, such as the standard teletype, to communicate   with processes through the network. This was suitable for the vast   majority of terminals and users at that time. However, as use of the   network has increased into other areas, especially areas where the   network is considered to provide a production environment for other   work, the desires and requirements of the user community have changed.   Therefore, it is necessary to consider supporting facilities that were   not initially supported. This Telnet option attempts to do that for   applications that require data entry terminals. 
  616.  
  617.   This option in effect defines the Network Virtual Data Entry Terminal.   Although the description of this option is quite long, this does not   imply that the Telnet protocol is a poor vehicle for this facility.   Data Entry Terminals are rather complex and varied in their abilities.   This option attempts to support both the minimal set of useful   functions that are either common to all or can be easily simulated and   the more sophisticated functions supplied in some terminals. 
  618.  
  619.   Unlike most real data entry terminals where the terminal functions are   encoded into one or more characters of the native character set, this   option performs all such controls within the Telnet subnegotiation   mechanism. This allows programs that are intimately familiar with the   kind of terminal they are communicating with to send commands that may   not be supported by either the option or the implementation. In other   words, it is possible to operate in a "raw" or at least "rare" mode   using as much of the option as necessary. 
  620.  
  621.   Although many data entry terminals support a variety of peripheral   devices such as printers, cassettes, etc. it is beyond the scope of   this option to entertain such considerations. A separate option should   be defined to handle this aspect of these devices. 
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  John Day                                                       [page 17]
  640.  
  641.  
  642. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  643.  
  644.  
  645.  
  646. 5. Description 
  647.  
  648.   General Notes 
  649.  
  650.     All implementations of this option are required to support a certain     minimal set of the subcommands for this option. Section 3 contains a     complete list of the subcommands in this minimal set. In keeping     with the Telnet protocol philosophy that an implementation should     not have to be able to parse commands it does not implement, every     subcommand of this option is either in the minimal set or is covered     by one of the facility subcommands. An implementation must     "negotiate" with its correspondent for permission to use subcommands     not in the minimal set before using them. For details of this     negotiation process see the section below on facility subcommands. 
  651.  
  652.     Most data entry terminals are used in a half duplex mode. (Although     most DET's on the market can be used either as data entry terminals     or as standard interactive terminals, we are only concerned here     with their use as DET's.) When this option is used, it is suggested     that the following Telnet options be refused: Echo, Remote     Controlled Transmission and Echoing, and Suppress Go-Ahead. However,     this option could be used to support a simple full duplex CRT based     application using the basic cursor control functions provided here.     For these cases, one or more of the above list of options might be     required. (Support of sophisticated interactive calligraphic     applications is beyond the scope of this option and should be done     by another option or the Network Graphics Protocol.) 
  653.  
  654.     In RFC 728, it was noted that a synch sequence can cause undesired     interactions between Telnet Control functions and the data stream. A     synch sequence causes data but not control functions to be flushed.     If a control function which has an effect on the data immediately     following it is present in the data stream when a synch sequence     occurs, the control function will have its effect not on the     intended data but on the data immediately following the Data Mark.     The following DET subcommands are susceptible to this pitfall: 
  655.  
  656.       CHAR INSERT       DATA TRANSMIT       FORMAT DATA 
  657.  
  658.     The undesired interactions are best avoided by the receiver 
  659.  
  660.     of the synch sequence deleting these subcommands and all data     associated with them before continuing to process the control     functions. This implies that the Data Mark should not occur in the     middle of the data associated with these subcommands. 
  661.  
  662.  
  663.  
  664.  
  665.  
  666. John Day                                                       [page 18]
  667.  
  668.  
  669. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  670.  
  671.  
  672.  
  673.   Facility Subcommands 
  674.  
  675.     These four subcommands are used by the User and Server     implementations to negotiate the subcommands and attributes of the     terminal that may be utilized. This negotiation can be viewed as the     terminal (User Host) indicating what facilities are provided and the     Server Host (or application program) indicating what facilities are     desired. 
  676.  
  677.     When Sent: A Server Telnet implementation using the DET option must     send a facility subcommand requesting the use of a particular     subcommand or terminal attribute not in the minimal implementation     before the first use of that subcommand or attribute. The User     Telnet implementation should respond as quickly as possible with its     reply. Neither the User nor Server are required to negotiate one     subcommand at a time. Also, a Telnet implementation responding to a     facility subcommand is not required to give permission only for that     subcommand. It may send a format map indicating all facilities of     that class which it supports. However, a Telnet implementation     requesting facilities must send a facility subcommand before its     first use of the subcommand regardless of whether earlier     negotiations have indicated the facility is provided. The facility     cannot be used until a corresponding facility subcommand has been     received. There are no other constraints on when the facility     subcommands may be sent. In particular, it is not necessary for an     application to know at the beginning of a session all facilities     that it will use. 
  678.  
  679.     Action When Recieved: There are two possible actions that may be     taken when a facility subcommand is received depending on whether     the receiver is a requestor or a provider (User). 
  680.  
  681.     Requestor: When a facility subcommand is received by a requestor and     it is in the state of Waiting for a Reply, it should go into the     state of Not Waiting. It should then take the facility map it had     sent and form the logical intersection with the facility map     received. (For the Intensity attribute, one should take the minimum     of the number received and the number requested.) The result     indicates the facilities successfully negotiated. Note: if 
  682.  
  683.     the receiver is not in the Waiting for Reply state, then this is the     provider case described next. 
  684.  
  685.     Provider: When a facility subcommand is received, it should send a     facility subcommand with a facility map of the facilities it     provides as soon as possible. It should then determine what new 
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  John Day                                                       [page 19]
  692.  
  693.  
  694. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  695.  
  696.  
  697.  
  698.     facilities it is providing for the Requestor by forming the logical     intersection of the facility map received and the one sent. 
  699.  
  700.     Note: Although in most cases the requestor will be the Server Host     and the provider will be the User Host supporting the terminal, this     distinction may not always be true. 
  701.  
  702.   Transmit Subcommands 
  703.  
  704.     There are two kinds of transmit subcommands: those used to request     that data be sent to the requestor, and one to preface data sent to     the requestor. The first kind allow the requestor to control when,     from where and to some degree how much data is transmitted from the     terminal. Their explanation is straightforward and may be found in     Section 2. 
  705.  
  706.     Data may be sent from the terminal as a result of two events: the     user of the terminal caused the transmission or in response to a     transmit subcommand. Some programs may wish to know from where on     the screen the transmission began. (This is reasonable, since the     terminal user may move the cursor around considerably before     transmitting.) Other programs may not need such information. The     DATA TRANSMIT subcommand is provided in case this function is     needed. When used this subcommand prefaces data coming from the     terminal. The parameters <x> and <y> give the screen coordinates of     the beginning of the transmission. <x> must be less than or equal to     M-1 and <y> must be less than or equal to N-1. It is assumed that     all data between this DATA TRANSMIT and the next one starts at the     coordinates given by the first subcommand and continues filling each     line thereafter according to the constraints of the screen and the     format effectors in the data. Thus an intelligent or sloppy     user-host DET implementation (depending on your point of view) need     only include a DATA TRANSMIT subcommand when the new starting point     is different from the last ending point. 
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  John Day                                                       [page 20]
  725.  
  726.  
  727. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  728.  
  729.  
  730.  
  731. 6.  Sample Interaction 
  732.  
  733.   The nomenclature of RFC 726 will be used to describe this example.  To   quote that RFC: 
  734.  
  735.     "S:"  is sent from serving host to using host.     "U:"  is sent from using host to serving host.     "T:"  is entered by the terminal user.     "P:"  is printed on the terminal. 
  736.  
  737.     Text surrounded by square brackets([]) is commentary. Text     surrounded by angle brackets (<>) is to be taken as a single unit.     E.g, carriage return is <cr>, and the decimal value 27 is     represented <27>. 
  738.  
  739.     We assume that the user has established the Telnet connection,     logged on, and an application program has just been started either     by the user directly or through a canned start up  procedure. The     presentation on the page is meant to merely group entities together     and does not imply the position of message boundaries. One should     assume that any part of the dialogue may be sent as one or many     messages. The first action of the program  or Telnet is to negotiate     the DET option: 
  740.  
  741.   S: <IAC><DO><DET> 
  742.  
  743.   U: <IAC><WILL><DET> 
  744.  
  745.   S:<IAC><DO><OUTPUT PAGE SIZE>              [First negotiate the screen                                              size.  In this case we are                                              asking the user the size of                                              the terminal.  This could                                              have been done before the                                              DET option was negotiated.] 
  746.  
  747.   U:<IAC><WILL><NAOP> 
  748.  
  749.   U:<IAC><SB><NAOP><DR><25><IAC><SE> 
  750.  
  751.   S:<IAC><SB><NAOP><DS><0><IAC><SE> 
  752.  
  753.   S:<IAC><DO><OUTPUT LINE WIDTH> 
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  John Day                                                       [page 21]
  764.  
  765.  
  766. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  767.  
  768.  
  769.  
  770.   U:<IAC><SB><NAOL><DR><80><IAC><SE>         [Defines the screen to be                                              25 lines by 80 characters.                                              The server may use this                                              information when formatting                                              the screen.] 
  771.  
  772.   S:<IAC><SB><NAOL><DS><0><IAC><SE> 
  773.  
  774.   S:<IAC><SB><DET><FORMAT FACILITIES>   <Repeat><Protection, 3 Levels   Intensity><IAC><SE>                        [Now set the terminal                                              attributes.] 
  775.  
  776.   U:<IAC><SB><DET><FORMAT FACILITIES>   <Repeat, Blinking><Protection, 3   Levels Intensity><IAC><SE> 
  777.  
  778.   S:<IAC><SB><DET><ERASE SCREEN><IAC><SE>    [Erase the screen and start                                              sending the form.] 
  779.  
  780.     <IAC><SB><DET><FORMAT DATA>     <Protection=1, Intensity=1><0>     <5><IAC><SE>Name: 
  781.  
  782.     <IAC><SB><DET><MOVE CURSOR><0><1><IAC><SE> 
  783.  
  784.     <IAC><SB><DET><FORMAT DATA>     <Protection=1, Intensity=1><0>     <8><IAC><SE>Address: 
  785.  
  786.     <IAC><SB><MOVE CURSOR><0><4><IAC><SE> 
  787.  
  788.     <IAC><SB><DET><FORMAT DATA>     <Protection=1, Intensity=1><0>     <17><IAC><SE>Telephone number: 
  789.  
  790.     <IAC><SB><DET><MOVE CURSOR><32><4><IAC><SE> 
  791.  
  792.     <IAC><SB><DET><FORMAT DATA>     <Protection=1, Intensity=1><0>     <24><IAC><SE>Social Security Number: 
  793.  
  794.     <IAC><SB><DET><FORMAT DATA>     <Protection=1, Intensity=7>     <0><11><IAC><SE>                         [Establish a field that                                              doesn't display what is                                              typed into it.] 
  795.  
  796.  
  797.  
  798.  
  799.  
  800. John Day                                                       [page 22]
  801.  
  802.  
  803. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  804.  
  805.  
  806.  
  807.     <IAC><SB><DET><MOVE CURSOR><32><5><IAC><SE> 
  808.  
  809.     <IAC><SB><DET><FORMAT FACILITIES>     <Blinking><0><IAC><SE>                   [Get permission to use                                              Blinking Attribute.] 
  810.  
  811.   U:<IAC><SB><DET><FORMAT FACILITIES>   <Repeat, Blinking><Protection,   3 Levels Intensity><IAC><SE> 
  812.  
  813.   S:<IAC><SB><DET><FORMAT DATA>   <Blinking=1, Protection=1,   Intensity=1><0><29><IAC><SE> 
  814.  
  815.     Your SSN will not be printed. 
  816.  
  817.     <IAC><SB><DET><HOME><IAC><SE>     <IAC><GA> 
  818.  
  819.   The previous exchange has placed a form on the screen that looks like: 
  820.  
  821.   Name:   Address:   Telephone Number:                       Social Security Number:                                      "Your SSN will not be printed." 
  822.  
  823.   where the quoted string is blinking. 
  824.  
  825.   The terminal user is now free to fill in the form provided. He   positions the cursor at the beginning of the first field (this usually   is done by hitting the tab key) and begins typing. We do not show this   interaction since it does not generate any interaction with the User   Telnet program or the network. After the terminal user has completed   filling in the form, he strikes the transmit key to send the   unprotected part of the form, but first the User Telnet program   negotiates the Byte Macro Option to condense the Field Separator   subcommand: 
  826.  
  827.   U:<IAC><DO><BM>                            [Negotiate Byte Macro                                              Option.] 
  828.  
  829.   S:<IAC><WILL><BM>                          [Define decimal 166 to be                                              the Field Separator                                              subcommand (see Appendix                                              3)] 
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837. John Day                                                       [page 23]
  838.  
  839.  
  840. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  841.  
  842.  
  843.  
  844.   U:<IAC><SB><BM><DEFINE>   <166><6><IAC SB DET FIELD   SEPARATOR IAC SE><IAC><SE> 
  845.  
  846.   S:<IAC><SB><BM><ACCEPT><166><IAC><SE>      [The server accepts the                                              macro.] 
  847.  
  848.   U:<IAC><SB><DET><DATA TRANSMIT><0><6><IAC><SE>   John Doe <166> 1515 Elm St., Urbana, Il 61801   <166> 217-333-9999 <166> 123-45-6789 <166> 
  849.  
  850.   S:<IAC><SB><DET><ERASE SCREEN><IAC><SE>   Thank you. 
  851.  
  852.   And so on. 
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890. John Day                                                       [page 24]
  891.  
  892.  
  893. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  894.  
  895.  
  896.  
  897. Appendix 1 - Subcommands, opcodes and syntax 
  898.  
  899.   1         EDIT FACILITIES      <Facilty map>   2         ERASE FACILITIES     <Facility map>   3         TRANSMIT FACILITIES  <Facility map>   4         FORMAT FACILITIES    <Facility map 1> <Facility map 2>   5         MOVE CURSOR          <x> <y>   6         SKIP TO LINE         <y>   7         SKIP TO CHAR         <x>   8         UP   9         DOWN   10        LEFT   11        RIGHT   12        HOME   13        LINE INSERT   14        LINE DELETE   15        CHAR INSERT   16        CHAR DELETE   17        READ CURSOR   18        CURSOR POSITION      <x><y>   19        REVERSE TAB   20        TRANSMIT SCREEN   21        TRANSMIT UNPROTECTED   22        TRANSMIT LINE   23        TRANSMIT FIELD   24        TRANSMIT REST OF SCREEN   25        TRANSMIT REST OF LINE   26        TRANSMIT REST OF FIELD   27        TRANSMIT MODIFIED   28        DATA TRANSMIT <x><y>   29        ERASE SCREEN   30        ERASE LINE   31        ERASE FIELD   32        ERASE REST OF SCREEN   33        ERASE REST OF LINE   34        ERASE REST OF FIELD   35        ERASE UNPROTECTED   36        FORMAT DATA <format map>   37        REPEAT     <count><char>   38        SUPPRESS PROTECTION <negotiation>   39        FIELD SEPARATOR   40        FN <code>   41        ERROR  <cmd><error code> 
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909. John Day                                                       [page 25]
  910.  
  911.  
  912. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  913.  
  914.  
  915.  
  916. Appendix 2 - Error Codes 
  917.  
  918.   1         Facility not previously negotiated. 
  919.  
  920.   2         Illegal subcommand code. 
  921.  
  922.   3         Cursor Address Out of Bounds. 
  923.  
  924.   4         Undefined FN value. 
  925.  
  926.   5         Can't negotiate acceptable line width. 
  927.  
  928.   6         Can't negotiate acceptable page length. 
  929.  
  930.   7         Illegal parameter in subcommand. 
  931.  
  932.   8         Syntax error in parsing subcommand. 
  933.  
  934.   9         Too many parameters in subcommand. 
  935.  
  936.   10        Too few parameters in subcommand. 
  937.  
  938.   11        Undefined parameter value 
  939.  
  940.   12        Unsupported combination of Format Attributes 
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968. John Day                                                       [page 26]
  969.  
  970.  
  971. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  972.  
  973.  
  974.  
  975. Appendix 3 - Use of the Byte Macro Option 
  976.  
  977.   One of the major drawbacks of the DET option is that because the   functions are encoded as Telnet option subnegotiations a fairly high   overhead is incurred. A function like Character Insert which is   encoded as a single byte in most terminals requires six bytes in the   DET option. Originally the only other solution that would have   accomplished the same transparency that the use of subcommands   provides would have been to define additional Telnet control   functions. However, since this would entail modification of the Telnet   protocol itself, it was felt that this was not a wise solution. Since   then the Telnet Byte Macro Option (RFC 729) has been defined. This   option allows the user and server Telnets to map an arbitrary   character string into a single byte which is then transferred over the   net. Thus the Byte Macro Option provides the means for implementations   to avoid the overhead for heavily used subcommands. The rest of this   appendix suggests how the Byte Macro Option should be applied to the   DET option. 
  978.  
  979.   In keeping with the specification of the Byte Macro Option, macro   bytes will be chosen from the range 128 to 239. For the DET option, it   is suggested that macro bytes be chosen by adding the subcommand code   to 128. In addition, an unofficial DET subcommand might be defined   indicating that each side was willing to support macro bytes for all   subcommands (but not necessarily support all of the subcommands   themselves) according to this algorithm. This subcommand would be: 
  980.  
  981.     IAC SB DET DET-MACRO <negotiation> IAC SE       subcommand code: 254 
  982.  
  983.   where <negotiation> may have the values of the Telnet option   negotiation: 
  984.  
  985.     251     WILL     252     WONT     253     DO     254     DONT 
  986.  
  987.   This subcommand is sent by a Telnet implementation to indicate its   willingness to adopt byte macros for all of the DET subcommands   according to the following algorithm: 
  988.  
  989.     The macro byte for subcommand i will be i+128 and will represent the     following string for parameterless subcommands: 
  990.  
  991.     IAC SB DET <subcommand code> IAC SE 
  992.  
  993.     and the following string for subcommands with parameters: 
  994.  
  995.  
  996.  
  997.  
  998.  
  999. John Day                                                       [page 27]
  1000.  
  1001.  
  1002. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  1003.  
  1004.  
  1005.  
  1006.     IAC SB DET <subcommand code> 
  1007.  
  1008.     The default setting for this subcommand is that the macros are not     in effect, in other words, 
  1009.  
  1010.       IAC SB DET DET-MACRO WONT IAC SE       IAC SB DET DET-MACRO DONT IAC SE 
  1011.  
  1012.     Negotiation of this subcommand follows the same rules as     negotiations of the Telnet options. 
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  John Day                                                       [page 28]
  1055.  
  1056.  
  1057. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  1058.  
  1059.  
  1060.  
  1061. References 
  1062.  
  1063.   1.   ADM-1 Interactive Display Terminal Operator's Handbook        Lear-Siegler, Inc. 7410-31. 
  1064.  
  1065.   2.   ADM-Interactive Display Terminal Operator's Handbook        Lear-Siegler, Inc. EID, 1974. 
  1066.  
  1067.   3.   Burroughs TD 700/800 Reference Manual, Burroughs Corp., 1973 
  1068.  
  1069.   4.   Burroughs TD 820 Reference Manual, Burroughs Corp. 1975. 
  1070.  
  1071.   5.   CC-40 Communications Station: General Information Manual.        Computer Communication, Inc. Pub. No. MI-1100. 1974. 
  1072.  
  1073.   6.   Crocker, David. "Telnet Byte Macro Option," RFC 729, 1977. 
  1074.  
  1075.   7.   Data Entry Virtual Terminal Protocol for Euronet, DRAFT, 1977. 
  1076.  
  1077.   8.   Day, John. "A Minor Pitfall in the Telnet Protocol," RFC 728,        1977. 
  1078.  
  1079.   9.   Hazeltine 2000 Desk Top Display Operating Instructions. Hazeltine        IB-1866A, 1870. 
  1080.  
  1081.   10.  How to Use the Consul 980: A Terminal Operator's Guide and        Interface Manual. Applied Digital Data Systems, Inc. 98-3000. 
  1082.  
  1083.   11.  How to Use the Consul 520: A Terminal Operator's Guide and        Interface Manual. Applied Digital Data Systems, Inc. 52-3000. 
  1084.  
  1085.   12.  Honeywell 7700 Series Visual Information Projection (VIP)        Systems: Preliminary Edition. 1973. 
  1086.  
  1087.   13.  An Introduction to the IBM 3270 Information Display System. IBM        GA27-2739-4. 1973. 
  1088.  
  1089.   14.  Naffah, N. "Protocole Appareil Virtuel type Ecran" Reseau        Cyclades. TER 536. 1976. 
  1090.  
  1091.   15.  Postel, Jon and Crocker, David. "Remote Controlled Transmission        and Echoing Telnet Option", RFC 726 NIC 39237, Mar. 1977. 
  1092.  
  1093.   16.  Schicker, Peter. "Virtual Terminal Protocol (Proposal 2). INWG        Protocol Note #32., 1976. 
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101. John Day                                                       [page 29]
  1102.  
  1103.  
  1104. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762 Data Entry Terminal Option 
  1105.  
  1106.  
  1107.  
  1108.   17.  UNISCOPE Display Terminal : Programmer Reference . Sperry- Univac        UP-7807 Rev. 2, 1975. 
  1109.  
  1110.   18.  Universal Terminal System 400: System Description. Sperry- Univac        UP-8357, 1976. 
  1111.  
  1112.   19.  Walden, David C. "Telnet Output Line Width Option." NIC # 20196,        1973, also in ARPANET Protocol Handbook, 1976. 
  1113.  
  1114.   20.  Walden, David C. "Telnet Output Page Size" NIC # 20197, 1973,        also in ARPANET Protocol Handbook, 1976. 
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156. John Day                                                       [page 30]
  1157.  
  1158.