home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 700s / rfc732.txt < prev    next >
Text File  |  1992-10-14  |  57KB  |  1,770 lines

  1.  
  2. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  3. Data Entry Terminal Option
  4.  
  5.  
  6.  
  7. Network Working Group                                           John Day
  8. Request for Comments: 732                                               
  9. NIC: 41762                                             12 September 1977
  10.  
  11. Obsoletes: 731
  12.  
  13.  
  14.                    Telnet Data Entry Terminal Option
  15.  
  16. 1.  Command Name and Code:
  17.  
  18.   DET             20
  19.  
  20. 2.  Command Meanings
  21.  
  22.   IAC WILL DET
  23.  
  24.     The sender of this command REQUESTS or AGREES to send and receive
  25.     subcommands to control the Data Entry Terminal.
  26.  
  27.   IAC WONT DET
  28.  
  29.     The sender of this command REFUSES to send and receive subcommands
  30.     to control the Data Entry Terminal.
  31.  
  32.   IAC DO DET
  33.  
  34.     The sender of this command REQUESTS or AGREES to send and receive
  35.     subcommands to control the Data Entry Terminal.
  36.  
  37.   IAC DONT DET
  38.  
  39.     The sender of this command REFUSES to send and receive subcommands
  40.     to control the Data Entry Terminal.
  41.  
  42.   The DET option uses five classes of subcommands 1) to establish the
  43.   requirements and capabilities of the application and the terminal, 2)
  44.   to format the screen, and to control the 3) edit, 4) erasure, and 5)
  45.   transmission functions. The subcommands that perform these functions
  46.   are described below.
  47.  
  48.   The Network Virtual Data Entry Terminal (NVDET)
  49.  
  50.     The NVDET consists of a keyboard and a rectangular display. The
  51.     keyboard is capable of generating all of the characters of the ASCII
  52.     character set. In addition, the keyboard may possess a number of
  53.     function keys which when pressed cause a FN subcommand to be sent.
  54.  
  55.  
  56.  
  57.  
  58.  
  59. John Day                                                        [page 1]
  60.  
  61. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  62. Data Entry Terminal Option
  63.  
  64.  
  65.  
  66.     (Although most DET's will support one or more peripheral devices
  67.     such as a paper tape reader or a printer, this option does not
  68.     consider their support. Support of peripheral devices should be
  69.     treated by a is a separate option).
  70.  
  71.     The screen of the data entry terminal is a rectangle M characters by
  72.     N lines. The values of M and N are set by negotiating the Output
  73.     Line Width and Output Page Size options, respectively. The next
  74.     writing position (x,y) on the screen (where x is the character
  75.     position and y is the position of the line on the screen) is
  76.     indicated by a special display character called the cursor. The
  77.     cursor may be moved to any position on the screen without disturbing
  78.     any characters already on the screen. Cursor addressing in existing
  79.     terminals utilizes several topologies and addressing methods. In
  80.     order to make the burden of implementaton as easy as possible this
  81.     protocol supports two topologies (the finite plane and the helical
  82.     torus) and three addressing methods ((x,y); x and y, and relative
  83.     increments). Since the finite plane with absolute addressing is the
  84.     least ambiguous and the easiest to translate to and from the others,
  85.     it is the default scheme used by the NVDET. The torodial form with
  86.     either relative or absolute addressing is provided for convience.
  87.  
  88.     Also the NVDET provides a mechanism for defining on the screen
  89.     fields with special attributes. For example, characters entered into
  90.     these fields may be displayed with brighter intensity, highlighted
  91.     by reverse video or blinking, or protected from modification by the
  92.     user. This latter feature is one of the most heavily used for
  93.     applications where the DET displays a form to be filled out by the
  94.     user.
  95.  
  96.     The definition of the NVDET uses Telnet option subnegotiations to
  97.     accomplish all of its functions. Since none of the ASCII characters
  98.     sent in the data stream have been used to define these functions,
  99.     the DET option can be used in a "raw" or even "rare" mode. In
  100.     circumstances where the application program knows what kind of
  101.     terminal is on the other end, it can send the ASCII characters
  102.     required to control functions not supported by the option or an
  103.     implementation. In general keeping all NVDET functions out of the
  104.     data stream provides better flexibility.
  105.  
  106.   Facility Functions  (for detailed semantics see Section 5.)
  107.  
  108.     IAC SB DET <DET facility subcommand><facility map> IAC SE
  109.  
  110.     where <DET facility subcommand> is one 8-bit byte indicating  the
  111.     class of the facilities to be described, and <facility map> is a
  112.     field of one or two  8-bit  bytes containing  flags  describing  the
  113.  
  114.  
  115.  
  116.  
  117.  
  118. John Day                                                        [page 2]
  119.  
  120. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  121. Data Entry Terminal Option
  122.  
  123.  
  124.  
  125.     facilities required or desired by the sender.  The bits of the
  126.     facility maps are numbered from the right starting at zero.  Thus,
  127.     if bit 2 is set the field will have a decimal  value  of  4.   The
  128.     values of the field are as follows:
  129.  
  130.     facility cmd:  EDIT FACILITIES                    subcommand code: 1
  131.  
  132.       facility map:                              bit numbers
  133.  
  134.         Toroidal Cursor Addressing                  6
  135.         Incremental Cursor Addressing               5
  136.         Read Cursor Address                         4
  137.         Line Insert/Delete                          3
  138.         Char Insert/Delete                          2
  139.         Back Tab                                    1
  140.         Positive Addressing only                    0
  141.  
  142.     where:
  143.  
  144.     If the Toroidal Cursor Addressing bit is set, the sender requests or
  145.     provides that the SKIP TO LINE and SKIP TO CHAR subcommands be
  146.     supported.
  147.  
  148.     If the Incremental Cursor Addressing bit is set, the sender requests
  149.     or provides that the UP, DOWN, LEFT, and RIGHT subcommands be
  150.     supported.
  151.  
  152.     If the Read Cursor bit is set, the sender requests or provides the
  153.     READ CURSOR subcommand.
  154.  
  155.     If the Line Insert/Delete bit is set, the sender requests or
  156.     provides that the LINE INSERT and LINE DELETE subcommands be
  157.     supported.
  158.  
  159.     If the Char Insert/Delete bit is set, the sender requests or
  160.     provides that the CHAR INSERT and CHAR DELETE subcommands be
  161.     supported.
  162.  
  163.     If the Back Tab bit is set, the sender requests or provides that the
  164.     BACK TAB subcommand be supported.
  165.  
  166.     If the Positive Addressing bit is set, then the sender is informing
  167.     the receiver that it can only move the cursor in the positive
  168.     direction. (Note: Terminals that have this property also have a Home
  169.     function to get back to the beginning.)
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177. John Day                                                        [page 3]
  178.  
  179. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  180. Data Entry Terminal Option
  181.  
  182.  
  183.  
  184.     facility cmd:  ERASE FACILITIES                  subcommand code:  2
  185.  
  186.       facility map:                                bit numbers
  187.  
  188.         Erase Field                                     4
  189.         Erase Line                                      3
  190.         Erase Rest of Screen                            2
  191.         Erase Rest of Line                              1
  192.         Erase Rest of Field                             0
  193.  
  194.     where:
  195.  
  196.     If a bit of the facility map for this facility command is set, the
  197.     sender requests or provides the facility indicated by the bit. For a
  198.     more complete description of each of these functions see the Erase
  199.     Functions section below.
  200.  
  201.     facility cmd:  TRANSMIT FACILITIES               subcommand code:  3
  202.  
  203.       facility map:                      bit numbers
  204.  
  205.         Data Transmit                         5
  206.         Transmit Line                         4
  207.         Transmit Field                        3
  208.         Transmit Rest of Screen               2
  209.         Transmit Rest of Line                 1
  210.         Transmit Rest of Field                0
  211.  
  212.     where:
  213.  
  214.     If a bit of the facility map for this facility command is set, the
  215.     sender requests or provides the facility indicated by the bit. For a
  216.     more complete description of each of these functions see the
  217.     Transmit Functions section below.
  218.  
  219.     facility cmd:  FORMAT FACILITIES                 subcommand code:  4
  220.  
  221.       facility map:                               bit numbers
  222.  
  223.         FN                                 byte 0      7
  224.         Modified                                       6
  225.         Light Pen                                      5
  226.         Repeat                                         4
  227.         Blinking                                       3
  228.         Reverse Video                                  2
  229.         Right Justification                            1
  230.         Overstrike                                     0
  231.  
  232.  
  233.  
  234.  
  235.  
  236. John Day                                                        [page 4]
  237.  
  238. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  239. Data Entry Terminal Option
  240.  
  241.  
  242.  
  243.         Protection On/Off                  byte 1      6
  244.         Protection                                     5
  245.         Alphabetic-only Protection                     4
  246.         Numeric-only Protection                        3
  247.         Intensity                                      0-2
  248.  
  249.     where:
  250.  
  251.     If the FN bit is set, the sender requests or provides the FN
  252.     subcommand.
  253.  
  254.     If the Modified bit is set, the sender requests or provides the
  255.     ability to indicate fields that are modified and supports the
  256.     TRANSMIT MODIFIED subcommand.
  257.  
  258.     If the Light Pen bit is set, the sender requests or provides the
  259.     support of a light pen, including the Pen Selectable attribute of
  260.     the DATA FORMAT subcommand.
  261.  
  262.     If the Repeat bit is set the sender requests or provides the REPEAT
  263.     subcommand.
  264.  
  265.     If the Blinking bit is set, the sender requests or provides the
  266.     ability to highlight a string of characters by causing them to
  267.     blink.
  268.  
  269.     If the Reverse Video bit is set, the sender requests or provides the
  270.     ability to highlight a string of characters by "reversing the video
  271.     image," i.e., if the characters are normally displayed as black
  272.     characters on a white background, this is reversed to be white
  273.     characters on a black background, or vice versa.
  274.  
  275.     If the Right Justification bit is set, the sender requests or
  276.     provides the ability to cause entries of data to be right justified
  277.     in the field.
  278.  
  279.     If the Overstrike bit is set, the sender requests or provides the
  280.     ability to superimpose one character over another on the screen much
  281.     like a hard copy terminal would do if the print mechanism struck the
  282.     same position on the paper with different characters.
  283.  
  284.     If the Protection On/Off bit is set, the sender requests or provides
  285.     the ability to turn on and off field protection.
  286.  
  287.     If the Protection bit is set, the sender requests or provides the
  288.     ability to protect certain strings of
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295. John Day                                                        [page 5]
  296.  
  297. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  298. Data Entry Terminal Option
  299.  
  300.  
  301.  
  302.     characters displayed on the screen from being altered by the user of
  303.     the terminal. Setting this bit also implies that ERASE UNPROTECTED,
  304.     DATA TRANSMIT, FIELD SEPARATOR, and TRANSMIT UNPROTECTED subcommands
  305.     (see below) are supported.
  306.  
  307.     If the Alphabetic-only Protection bit is set, the sender requests or
  308.     provides the ability to constrain the user of the terminal such that
  309.     he may only enter alphabetic data into certain areas of the screen.
  310.  
  311.     If the Numeric-only Protection bit is set, the sender requests or
  312.     provides the ability to constrain the user of the terminal such that
  313.     he may only enter numerical data into certain areas of the screen.
  314.  
  315.     The three bits of the Intensity field will contain a positive binary
  316.     integer indicating the number of levels of intensity that the sender
  317.     requests or provides for displaying the data. The value of the 3 bit
  318.     field should be interpreted in the following way:
  319.  
  320.       1        one visible intensity
  321.       2        two intensities; normal and bright
  322.       3        three intensities; off, normal, and bright
  323.       >3        >3 intensities; off, and the remaining levels
  324.       proportioned from dimmest to brightest intensity.
  325.  
  326.     For the all of the above commands, if the appropriate bit in
  327.     <facility map> is not set, then the sender does not request or
  328.     provide that facility.
  329.  
  330.   Editing Functions
  331.  
  332.     IAC SB DET MOVE CURSOR <x><y> IAC SE              subcommand code: 5
  333.  
  334.     where <x> is an 8-bit byte containing a positive binary integer
  335.     representing the character position of the cursor, <y> is an 8-bit
  336.     byte containing a positive binary integer representing the line
  337.     position of the cursor.
  338.  
  339.     This subcommand moves the cursor to the absolute screen address
  340.     (x,y) with the following boundary conditions:
  341.  
  342.       if x>M-1, set x=M-1 and send an ERROR subcommand
  343.  
  344.       if y>N-1, set y=N-1 and send an ERROR subcommand
  345.  
  346.     This describes a finite plane topology on the screen.
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354. John Day                                                        [page 6]
  355.  
  356. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  357. Data Entry Terminal Option
  358.  
  359.  
  360.  
  361.     IAC SB DET SKIP TO LINE <y> IAC SE                subcommand code: 6
  362.  
  363.     where <y> is a positive 8-bit binary number.
  364.  
  365.     This subcommand moves the cursor to the absolute screen line y. x
  366.     remains constant. For values of y>N-1
  367.  
  368.       y = y mod N.
  369.  
  370.     IAC SB DET SKIP TO CHAR <x> IAC SE                subcommand code: 7
  371.  
  372.     where <x> is a positive 8-bit binary number.
  373.  
  374.     This subcommand moves the cursor to the absolute character position
  375.     x. y remains constant, unless x>M-1 in which case:
  376.  
  377.       x' = (x mod M)
  378.       y' = (y+(x DIV N))
  379.       where x' and y' are the new values of the cursor.
  380.  
  381.     These last two subcommands define a toroidal topology on the screen.
  382.  
  383.     IAC SB DET UP IAC SE                              subcommand code: 8
  384.  
  385.     IAC SB DET DOWN IAC SE                            subcommand code: 9
  386.  
  387.     IAC SB DET LEFT IAC SE                           subcommand code: 10
  388.  
  389.     IAC SB DET RIGHT IAC SE                          subcommand code: 11
  390.  
  391.     These subcommands are provided as a convenience for some terminals.
  392.     The commands UP, DOWN, LEFT, and RIGHT are defined as
  393.  
  394.     UP:     (x,y)=(x, y-1 mod N)
  395.     DOWN:   (x,y)=(x, y+1 mod N)
  396.     LEFT:   (x,y)=(x-1, y); if x=0 then x-1 = 0
  397.  
  398.     RIGHT:  (x,y)=(x+1 mod M, y) and y = y+1 if x+1>M-1
  399.  
  400.     Note: DOWN, LEFT, and RIGHT cannot always be replaced by the ASCII
  401.     codes for linefeed, backspace, and space respectively. The latter
  402.     are format effectors while the former are cursor controls.
  403.  
  404.     IAC SB DET HOME IAC SE                           subcommand code: 12
  405.  
  406.     This subcommand positions the cursor to (0,0). This is equivalent to
  407.     a MOVE CURSOR 0,0 or the sequence SKIP TO LINE 0, SKIP TO CHAR 0.
  408.  
  409.  
  410.  
  411.  
  412.  
  413. John Day                                                        [page 7]
  414.  
  415. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  416. Data Entry Terminal Option
  417.  
  418.  
  419.  
  420.     This subcommand is provided for convenience, since most terminals
  421.     have it as a separate control.
  422.  
  423.     IAC SB DET LINE INSERT IAC SE                    subcommand code: 13
  424.  
  425.     This subcommand inserts a line of spaces between lines y (the
  426.     current line, determined by the position of the cursor) and line
  427.     y-1. Lines y through N-2 move down one line, i.e. line y becomes
  428.     line y+1; y+1 becomes y+2, ...; N-2 becomes N-1. Line N-1 is lost
  429.     off the bottom of the screen. The position of the cursor remains
  430.     unchanged.
  431.  
  432.     IAC SB DET LINE DELETE IAC SE                    subcommand code: 14
  433.  
  434.     This subcommand deletes line y where y is the current line position
  435.     of the cursor. Lines y+1 through N-1 move up one line, i.e. line y+1
  436.     becomes line y; y+2 becomes y+1; ...; N-1 becomes N-2. The N-1st
  437.     line position is set to all spaces. The cursor position remains
  438.     unchanged.
  439.  
  440.     IAC SB DET CHAR INSERT IAC SE                    subcommand code: 15
  441.  
  442.     This subcommand inserts the next character in the data stream
  443.     between the xth and x-1st characters, where x is the current
  444.     character position of the cursor. The xth through M-2nd characters
  445.     on the line are shifted one character positon to the right. The new
  446.     character is inserted at the vacated xth position. The M-1st
  447.     character is lost. The position of the cursor remains unchanged.
  448.  
  449.     IAC SB DET CHAR DELETE IAC SE                    subcommand code: 16
  450.  
  451.     This subcommand deletes the character on the screen at the x-th
  452.     position. The x-th character is removed and the characters x+1
  453.     through M-1 are shifted one character position to the left to become
  454.     the x-th through M-2nd characters. The M-1st character position is
  455.     left empty. (For most terminals it will be set to a NUL or space.)
  456.     The cursor position remains unchanged.
  457.  
  458.     IAC SB DET READ CURSOR IAC SE                    subcommand code: 17
  459.  
  460.     This subcommand requests the receiver to send the present position
  461.     of the cursor to the sender.
  462.  
  463.     IAC SB DET CURSOR POSITION <x><y> IAC SE         subcommand code: 18
  464.  
  465.     where <x> and <y> are positive 8-bit binary integers.
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472. John Day                                                        [page 8]
  473.  
  474. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  475. Data Entry Terminal Option
  476.  
  477.  
  478.  
  479.     This subcommand is sent by a Telnet implementation in response to a
  480.     READ CURSOR subcommand to convey the coordinates of the cursor to
  481.     the other side. Note: x is less than M and y is less than N.
  482.  
  483.     IAC SB DET REVERSE TAB IAC SE                    subcommand code: 19
  484.  
  485.     This subcommand causes the cursor to move to the previous tab
  486.     position. If none exists on the present line, the cursor moves to
  487.     the previous line and so on until a tab is found or the address
  488.     (0,0) is encountered. When field protection is in effect the cursor
  489.     moves to the beginning of the preceding unprotected field.
  490.  
  491.   Transmit Functions (For detailed semantics see Section 5.)
  492.  
  493.     IAC SB DET TRANSMIT SCREEN IAC SE                subcommand code: 20
  494.  
  495.     This subcommand causes the terminal to transmit all characters on
  496.     the screen from position (0,0) to (M-1,N-1). The cursor will be at
  497.     (0,0) after the operation is complete.
  498.  
  499.     IAC SB DET TRANSMIT UNPROTECTED IAC SE           subcommand code: 21
  500.  
  501.     This subcommand causes the terminal to transmit all characters in
  502.     unprotected fields from position (0,0) to (M-1,N-1). The unprotected
  503.     fields are separated by the field separator subcommand. The cursor
  504.     will be at (0,0) or at the beginning of the first unprotected field
  505.     after the operation is complete.
  506.  
  507.     IAC SB DET TRANSMIT LINE IAC SE                  subcommand code: 22
  508.  
  509.     This subcommand causes the terminal to transmit all data on the yth
  510.     line where y is determined by the present position of the cursor.
  511.     Data is sent from character position (0,y) to the end-of-line or
  512.     position (M-1,y) whichever comes first. The cursor position after
  513.     the transmission is one character position after the end of line
  514.     condition or the beginning of the next line, (0,y+1).
  515.  
  516.     IAC SB DET TRANSMIT FIELD IAC SE                 subcommand code: 23
  517.  
  518.     This subcommand causes the terminal to transmit all data in the
  519.     field presently occupied by the cursor. The cursor position after
  520.     the operation is complete is one character position after the end of
  521.     the field or, if that
  522.  
  523.     position is protected, at the beginning of the next unprotected
  524.     field.
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531. John Day                                                        [page 9]
  532.  
  533. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  534. Data Entry Terminal Option
  535.  
  536.  
  537.  
  538.     IAC SB DET TRANSMIT REST OF SCREEN IAC SE        subcommand code: 24
  539.  
  540.     This subcommand causes the terminal to transmit all characters on
  541.     the screen from position (x,y) to (M-1,N-1) or until the end of
  542.     text. (x,y) is the current cursor position. The cursor position
  543.     after the operation is one character position after the last text
  544.     character, or (0,0) if the last filled character position is
  545.     (M-1,N-1).
  546.  
  547.     IAC SB DET TRANSMIT REST OF LINE IAC SE          subcommand code: 25
  548.  
  549.     This subcommand causes the terminal to transmit all characters on
  550.     the yth line from position (x,y) to the end of line or (M-1,y)
  551.     whichever comes first. (x,y) is the current cursor position. The
  552.     cursor position after the operation is one character position after
  553.     the last character of the line or the first character of the next
  554.     line.
  555.  
  556.     IAC SB DET TRANSMIT REST OF FIELD IAC SE         subcommand code: 26
  557.  
  558.     This subcommand causes the receiver to transmit the rest of the
  559.     characters in the field currently occupied by the cursor. The cursor
  560.     position after the operation is at the beginning of the next field.
  561.  
  562.     IAC SB DET TRANSMIT MODIFIED IAC SE              subcommand code: 27
  563.  
  564.     This subcommand causes the receiver to transmit only those fields
  565.     which have the modified attribute set. The cursor position after the
  566.     operation is unchanged.
  567.  
  568.     IAC SB DET DATA TRANSMIT <x><y> IAC SE           subcommand code: 28
  569.  
  570.     This subcommand is used to preface data sent from the terminal in
  571.     response to a user action or a TRANSMIT command. The parameters <x>
  572.     and <y> indicate the initial position of the cursor. See the
  573.     Transmit Subcommands subsection in Section 5 for more details. A
  574.     DATA TRANSMIT subcommand may precede an entire transmission with
  575.     each field being delineated by the FIELD SEPARATOR subcommand as
  576.     would be the case in a response toa
  577.  
  578.     TRANSMIT UNPROTECTED. Or, it may precede each field as would be the
  579.     case in a response to a TRANSMIT MODIFIED.
  580.  
  581.   Erase Functions
  582.  
  583.     IAC SB DET ERASE SCREEN IAC SE                   subcommand code: 29
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590. John Day                                                       [page 10]
  591.  
  592. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  593. Data Entry Terminal Option
  594.  
  595.  
  596.  
  597.     This subcommand causes all characters to be removed from the screen.
  598.     All fields regardless of their attributes are deleted. The cursor
  599.     position after the operation will be (0,0). Most terminals set the
  600.     erased characters to either NUL or space characters.
  601.  
  602.     IAC SB DET ERASE LINE IAC SE                     subcommand code: 30
  603.  
  604.     This subcommand causes all characters on the yth line to be removed
  605.     from the screen, where y is the line of the current cursor position.
  606.     All fields regardless of their attributes are deleted. The cursor
  607.     position after this operation will be (0,y). Note: This operation
  608.     can be easily simulated by the sequence: LINE DELETE, LINE INSERT.
  609.     However, the order is important to insure that no data is lost off
  610.     the bottom of the screen.
  611.  
  612.     IAC SB DET ERASE FIELD IAC SE                    subcommand code: 31
  613.  
  614.     This subcommand causes all characters in the field occupied by the
  615.     cursor to be removed. The cursor position after the operation is at
  616.     the beginning of the field.
  617.  
  618.     IAC SB DET ERASE REST OF SCREEN IAC SE           subcommand code: 32
  619.  
  620.     This subcommand causes all characters from position (x,y) to
  621.     (M-1,N-1) to be removed from the screen. All fields regardless of
  622.     their attributes are deleted. The cursor position after the
  623.     operation is unchanged. This is equivalent to doing an ERASE REST OF
  624.     LINE plus a LINE DELETE for lines greater than y.
  625.  
  626.     IAC SB DET ERASE REST OF LINE IAC SE             subcommand code: 33
  627.  
  628.     This subcommand causes all characters from position (x,y) to (M-1,y)
  629.     to be removed from the screen All fields regardless of their
  630.     attributes are deleted. The cursor position after the operation is
  631.     unchanged.
  632.  
  633.     IAC SB DET ERASE REST OF FIELD IAC SE            subcommand code: 34
  634.  
  635.     This subcommand causes all characters from position (x,y) to the end
  636.     of the current field to be removed from the screen. The cursor
  637.     position after the operation is unchanged.
  638.  
  639.     IAC SB DET ERASE UNPROTECTED IAC SE              subcommand code: 35
  640.  
  641.     This subcommand causes all characters on the screen in unprotected
  642.     fields to be removed from the screen. The cursor position after the
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649. John Day                                                       [page 11]
  650.  
  651. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  652. Data Entry Terminal Option
  653.  
  654.  
  655.  
  656.     operation is at (0,0) or, if that position is protected, at the
  657.     beginning of the first unprotected field.
  658.  
  659.   Format Functions
  660.  
  661.     IAC SB DET FORMAT DATA <format map><count> IAC SE
  662.                                                      subcommand code: 36
  663.  
  664.     where <format map> is a two byte field containing the following
  665.     flags:
  666.  
  667.       Byte 0
  668.         Blinking                                 7
  669.         Reverse Video                            6
  670.         Right Justification                      5
  671.         Protection                              3-4
  672.         Intensity                               0-2
  673.       Byte 1
  674.         Modified                                1
  675.         Pen Selectable                          0
  676.  
  677.     where:
  678.  
  679.     If the Blinking bit is set, the following field of <count>
  680.     characters should have the Blinking attribute applied to it by the
  681.     receiver.
  682.  
  683.     If the Reverse Video bit is set, the following field of <count>
  684.     characters should be displayed by the receiver with video reversed.
  685.  
  686.     If the Right Justification bit is set, the input entered into the
  687.     field of <count> characters should be right justified.
  688.  
  689.     The Protection field is two bits wide and may take on the
  690.  
  691.     following values:
  692.  
  693.       0         no protection
  694.       1         protected
  695.       2         alphabetic only
  696.       3         numeric only
  697.  
  698.     The protection attribute specifies that the other side may modify
  699.     any character (no protection), modify no characters (protected),
  700.     enter only alphabetical characters (A-Z, and a-z) (alphabetic only),
  701.     or enter only numerical characters (0-9,+,.,and -) (numeric only) in
  702.     the following field of <count> bytes.
  703.  
  704.  
  705.  
  706.  
  707.  
  708. John Day                                                       [page 12]
  709.  
  710. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  711. Data Entry Terminal Option
  712.  
  713.  
  714.  
  715.     The Intensity field is 3 bits wide and should be interpreted in the
  716.     following way:
  717.  
  718.       The values 0-6 should be used as an indication of the relative
  719.       brightness to be used when displaying the characters in or entered
  720.       into the following field <count> characters wide. The number of
  721.       levels of brightness available should have been obtained
  722.       previously by the Format Facility subcommand. The exact algorithm
  723.       for mapping these values to the available levels of intensity is
  724.       left to the implementors. A value of 7 in the intensity field
  725.       indicates that the brightness should be off, and any characters in
  726.       or entered into the field should not be displayed.
  727.  
  728.     If the Modified bit is set, the field is considered to have been
  729.     modified and will be transmitted in response to a TRANSMIT MODIFIED
  730.     subcommand.
  731.  
  732.     If the Pen Selectable bit is set, the field can be selected with the
  733.     light pen. Note: Use of the light pen should be the subject of
  734.     another Telnet option.
  735.  
  736.     <count> is 2 bytes that should be interpreted as a positive 16-bit
  737.     binary integer representing the number of characters following this
  738.     command which are affected by it.
  739.  
  740.     Data sent to the terminal or the Using Host for unwritten areas of
  741.     the screen not in the scope of the count should be displayed with
  742.     the default values of the format map. The default values are No
  743.     Blinking, Normal Video, No Justification, No Protection and Normal
  744.     Intensity. For example, suppose a FORMAT DATA subcommand was sent to
  745.     the terminal with attributes Blinking and Protected and a
  746.  
  747.     count of 5 followed by the string "Name: John Doe". The string
  748.     "Name:" would be protected and blinking, but the string "John Doe"
  749.     would not be.
  750.  
  751.     This subcommand is used to format data to be displayed on the screen
  752.     of the terminal. The <format map> describes the attributes that the
  753.     field <count> bytes wide should have. This field is to start at the
  754.     position of the cursor when the command is acted upon. The next
  755.     <count> displayable characters in the data stream are used to fill
  756.     the field. Subsequent REPEAT subcommands may be used to specify the
  757.     contents of this field. If the sender specifies attributes that have
  758.     not been agreed upon by the use of the Format Facility subcommand,
  759.     the Telnet process should send an Error Subcommand to the sender,
  760.     but format the screen as if the bit had not been set.
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767. John Day                                                       [page 13]
  768.  
  769. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  770. Data Entry Terminal Option
  771.  
  772.  
  773.  
  774.     IAC SB DET REPEAT <count><char> IAC SE           subcommand code: 37
  775.  
  776.     where <count> is a positive 8-bit binary integer. <char> is an 8-bit
  777.     byte containing an ASCII character.
  778.  
  779.     This subcommand is used to perform data compression on data being
  780.     transferred to the terminal by encoding strings of identical
  781.     characters as the character and a count. The repeated characters may
  782.     be part of a field specified
  783.  
  784.     IAC SB DET SUPPRESS PROTECTION <negotiation> IAC SE
  785.                                                      subcommand code: 38
  786.  
  787.     where <negotiation> may have the values of the Telnet option
  788.     negotiation:
  789.  
  790.       251                 WILL
  791.       252                 WONT
  792.       253                 DO
  793.       254                 DONT
  794.  
  795.     This subcommand is used to suppress the field protection in a
  796.     non-destructive manner. Many data entry terminals provide the means
  797.     by which protection may be turned on and off without modifying the
  798.     contents of the screen or the terminal's memory. Thus, the
  799.     protection may be turned off and back on without retransmitting the
  800.     form.
  801.  
  802.     The default setting of the option is that protection is on, in other
  803.     words
  804.  
  805.       IAC SB DET SUPPRESS PROTECTION WONT IAC SE
  806.       IAC SB DET SUPPRESS PROTECTION DONT IAC SE
  807.  
  808.     Negotiation of this subcommand follows the same rules as
  809.     negotiations of the Telnet options.
  810.  
  811.     IAC SB DET FIELD SEPARATOR IAC SE                subcommand code: 39
  812.  
  813.     It is necessary when transmitting only the unprotected portion of
  814.     the screen to provide a means for delimiting the fields. Existing
  815.     DET's use a variety of ASCII characters such as Tab, Group
  816.     Separator, Unit Separator, etc. In order to maintain transparency of
  817.     the NVDET this subcommand is used to separate the fields. Clearly,
  818.     this incurs rather high overhead. This overhead can be avoided by
  819.     using the Byte Macro Option (see Appendix 3).
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826. John Day                                                       [page 14]
  827.  
  828. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  829. Data Entry Terminal Option
  830.  
  831.  
  832.  
  833.   Miscellaneous Commands
  834.  
  835.     IAC SB DET FN <code> IAC SE                      subcommand code: 40
  836.  
  837.     where: <code> is one byte.
  838.  
  839.     Many data-entry terminals provide a set of "function" keys which
  840.     when pressed send a one-character command to the server. This
  841.     subcommand describes such a facility. The values of the <code> field
  842.     are defined by the user and server. The option merely provides the
  843.     means to transfer the information.
  844.  
  845.     IAC SB DET ERROR <cmd> <error code> IAC SE       subcommand code: 41
  846.  
  847.     where:
  848.  
  849.       <cmd> is a byte containing the subcommand code of the subcommand
  850.       in error.
  851.  
  852.       <error code> is a byte containing an error code.
  853.  
  854.       (For a list of the defined error codes see Appendix 2.)
  855.  
  856.     This subcommand is provided to allow DET option implementations to
  857.     report errors they detect to the corresponding Telnet process. At
  858.     this point it is worth reiterating that the philosophy of this
  859.     option is that when an error is detected it should be reported;
  860.     however, the implementation should attempt its best effort to carry
  861.     out the intent of the subcommand or data in error.
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885. John Day                                                       [page 15]
  886.  
  887. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  888. Data Entry Terminal Option
  889.  
  890.  
  891.  
  892. 3. Default and Minimal Implementation Specifications
  893.  
  894.   Default
  895.  
  896.     WON'T DET -- DON'T DET
  897.  
  898.     Neither host wishes to use the Data Entry Terminal option.
  899.  
  900.   Minimal Implementation
  901.  
  902.     DET EDIT FACILITIES
  903.     DET ERASE FACILITIES
  904.     DET TRANSMIT FACILITIES
  905.     DET FORMAT FACILITIES
  906.     DET MOVE CURSOR <x><y>
  907.     DET HOME
  908.     DET ERASE SCREEN
  909.     DET TRANSMIT SCREEN
  910.     DET FORMAT DATA
  911.     DET ERROR <cmd> <error code>
  912.  
  913.     In the case of formatting the data, the minimal implementation
  914.     should be able to support a low and high level of intensity and
  915.     protection for all or no characters in a field. These functions,
  916.     however, are not required.
  917.  
  918.     The minimal implementation also requires that the Output Line Width
  919.     and Output Page Size Telnet options be supported.
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944. John Day                                                       [page 16]
  945.  
  946. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  947. Data Entry Terminal Option
  948.  
  949.  
  950.  
  951. 4. Motivation
  952.  
  953.   The Telnet protocol was originally designed to provide a means for
  954.   scroll-mode terminals, such as the standard teletype, to communicate
  955.   with processes through the network. This was suitable for the vast
  956.   majority of terminals and users at that time. However, as use of the
  957.   network has increased into other areas, especially areas where the
  958.   network is considered to provide a production environment for other
  959.   work, the desires and requirements of the user community have changed.
  960.   Therefore, it is necessary to consider supporting facilities that were
  961.   not initially supported. This Telnet option attempts to do that for
  962.   applications that require data entry terminals.
  963.  
  964.   This option in effect defines the Network Virtual Data Entry Terminal.
  965.   Although the description of this option is quite long, this does not
  966.   imply that the Telnet protocol is a poor vehicle for this facility.
  967.   Data Entry Terminals are rather complex and varied in their abilities.
  968.   This option attempts to support both the minimal set of useful
  969.   functions that are either common to all or can be easily simulated and
  970.   the more sophisticated functions supplied in some terminals.
  971.  
  972.   Unlike most real data entry terminals where the terminal functions are
  973.   encoded into one or more characters of the native character set, this
  974.   option performs all such controls within the Telnet subnegotiation
  975.   mechanism. This allows programs that are intimately familiar with the
  976.   kind of terminal they are communicating with to send commands that may
  977.   not be supported by either the option or the implementation. In other
  978.   words, it is possible to operate in a "raw" or at least "rare" mode
  979.   using as much of the option as necessary.
  980.  
  981.   Although many data entry terminals support a variety of peripheral
  982.   devices such as printers, cassettes, etc. it is beyond the scope of
  983.   this option to entertain such considerations. A separate option should
  984.   be defined to handle this aspect of these devices.
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003. John Day                                                       [page 17]
  1004.  
  1005. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1006. Data Entry Terminal Option
  1007.  
  1008.  
  1009.  
  1010. 5. Description
  1011.  
  1012.   General Notes
  1013.  
  1014.     All implementations of this option are required to support a certain
  1015.     minimal set of the subcommands for this option. Section 3 contains a
  1016.     complete list of the subcommands in this minimal set. In keeping
  1017.     with the Telnet protocol philosophy that an implementation should
  1018.     not have to be able to parse commands it does not implement, every
  1019.     subcommand of this option is either in the minimal set or is covered
  1020.     by one of the facility subcommands. An implementation must
  1021.     "negotiate" with its correspondent for permission to use subcommands
  1022.     not in the minimal set before using them. For details of this
  1023.     negotiation process see the section below on facility subcommands.
  1024.  
  1025.     Most data entry terminals are used in a half duplex mode. (Although
  1026.     most DET's on the market can be used either as data entry terminals
  1027.     or as standard interactive terminals, we are only concerned here
  1028.     with their use as DET's.) When this option is used, it is suggested
  1029.     that the following Telnet options be refused: Echo, Remote
  1030.     Controlled Transmission and Echoing, and Suppress Go-Ahead. However,
  1031.     this option could be used to support a simple full duplex CRT based
  1032.     application using the basic cursor control functions provided here.
  1033.     For these cases, one or more of the above list of options might be
  1034.     required. (Support of sophisticated interactive calligraphic
  1035.     applications is beyond the scope of this option and should be done
  1036.     by another option or the Network Graphics Protocol.)
  1037.  
  1038.     In RFC 728, it was noted that a synch sequence can cause undesired
  1039.     interactions between Telnet Control functions and the data stream. A
  1040.     synch sequence causes data but not control functions to be flushed.
  1041.     If a control function which has an effect on the data immediately
  1042.     following it is present in the data stream when a synch sequence
  1043.     occurs, the control function will have its effect not on the
  1044.     intended data but on the data immediately following the Data Mark.
  1045.     The following DET subcommands are susceptible to this pitfall:
  1046.  
  1047.       CHAR INSERT
  1048.       DATA TRANSMIT
  1049.       FORMAT DATA
  1050.  
  1051.     The undesired interactions are best avoided by the receiver
  1052.  
  1053.     of the synch sequence deleting these subcommands and all data
  1054.     associated with them before continuing to process the control
  1055.     functions. This implies that the Data Mark should not occur in the
  1056.     middle of the data associated with these subcommands.
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062. John Day                                                       [page 18]
  1063.  
  1064. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1065. Data Entry Terminal Option
  1066.  
  1067.  
  1068.  
  1069.   Facility Subcommands
  1070.  
  1071.     These four subcommands are used by the User and Server
  1072.     implementations to negotiate the subcommands and attributes of the
  1073.     terminal that may be utilized. This negotiation can be viewed as the
  1074.     terminal (User Host) indicating what facilities are provided and the
  1075.     Server Host (or application program) indicating what facilities are
  1076.     desired.
  1077.  
  1078.     When Sent: A Server Telnet implementation using the DET option must
  1079.     send a facility subcommand requesting the use of a particular
  1080.     subcommand or terminal attribute not in the minimal implementation
  1081.     before the first use of that subcommand or attribute. The User
  1082.     Telnet implementation should respond as quickly as possible with its
  1083.     reply. Neither the User nor Server are required to negotiate one
  1084.     subcommand at a time. Also, a Telnet implementation responding to a
  1085.     facility subcommand is not required to give permission only for that
  1086.     subcommand. It may send a format map indicating all facilities of
  1087.     that class which it supports. However, a Telnet implementation
  1088.     requesting facilities must send a facility subcommand before its
  1089.     first use of the subcommand regardless of whether earlier
  1090.     negotiations have indicated the facility is provided. The facility
  1091.     cannot be used until a corresponding facility subcommand has been
  1092.     received. There are no other constraints on when the facility
  1093.     subcommands may be sent. In particular, it is not necessary for an
  1094.     application to know at the beginning of a session all facilities
  1095.     that it will use.
  1096.  
  1097.     Action When Recieved: There are two possible actions that may be
  1098.     taken when a facility subcommand is received depending on whether
  1099.     the receiver is a requestor or a provider (User).
  1100.  
  1101.     Requestor: When a facility subcommand is received by a requestor and
  1102.     it is in the state of Waiting for a Reply, it should go into the
  1103.     state of Not Waiting. It should then take the facility map it had
  1104.     sent and form the logical intersection with the facility map
  1105.     received. (For the Intensity attribute, one should take the minimum
  1106.     of the number received and the number requested.) The result
  1107.     indicates the facilities successfully negotiated. Note: if
  1108.  
  1109.     the receiver is not in the Waiting for Reply state, then this is the
  1110.     provider case described next.
  1111.  
  1112.     Provider: When a facility subcommand is received, it should send a
  1113.     facility subcommand with a facility map of the facilities it
  1114.     provides as soon as possible. It should then determine what new
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121. John Day                                                       [page 19]
  1122.  
  1123. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1124. Data Entry Terminal Option
  1125.  
  1126.  
  1127.  
  1128.     facilities it is providing for the Requestor by forming the logical
  1129.     intersection of the facility map received and the one sent.
  1130.  
  1131.     Note: Although in most cases the requestor will be the Server Host
  1132.     and the provider will be the User Host supporting the terminal, this
  1133.     distinction may not always be true.
  1134.  
  1135.   Transmit Subcommands
  1136.  
  1137.     There are two kinds of transmit subcommands: those used to request
  1138.     that data be sent to the requestor, and one to preface data sent to
  1139.     the requestor. The first kind allow the requestor to control when,
  1140.     from where and to some degree how much data is transmitted from the
  1141.     terminal. Their explanation is straightforward and may be found in
  1142.     Section 2.
  1143.  
  1144.     Data may be sent from the terminal as a result of two events: the
  1145.     user of the terminal caused the transmission or in response to a
  1146.     transmit subcommand. Some programs may wish to know from where on
  1147.     the screen the transmission began. (This is reasonable, since the
  1148.     terminal user may move the cursor around considerably before
  1149.     transmitting.) Other programs may not need such information. The
  1150.     DATA TRANSMIT subcommand is provided in case this function is
  1151.     needed. When used this subcommand prefaces data coming from the
  1152.     terminal. The parameters <x> and <y> give the screen coordinates of
  1153.     the beginning of the transmission. <x> must be less than or equal to
  1154.     M-1 and <y> must be less than or equal to N-1. It is assumed that
  1155.     all data between this DATA TRANSMIT and the next one starts at the
  1156.     coordinates given by the first subcommand and continues filling each
  1157.     line thereafter according to the constraints of the screen and the
  1158.     format effectors in the data. Thus an intelligent or sloppy
  1159.     user-host DET implementation (depending on your point of view) need
  1160.     only include a DATA TRANSMIT subcommand when the new starting point
  1161.     is different from the last ending point.
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180. John Day                                                       [page 20]
  1181.  
  1182. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1183. Data Entry Terminal Option
  1184.  
  1185.  
  1186.  
  1187. 6.  Sample Interaction
  1188.  
  1189.   The nomenclature of RFC 726 will be used to describe this example.  To
  1190.   quote that RFC:
  1191.  
  1192.     "S:"  is sent from serving host to using host.
  1193.     "U:"  is sent from using host to serving host.
  1194.     "T:"  is entered by the terminal user.
  1195.     "P:"  is printed on the terminal.
  1196.  
  1197.     Text surrounded by square brackets([]) is commentary. Text
  1198.     surrounded by angle brackets (<>) is to be taken as a single unit.
  1199.     E.g, carriage return is <cr>, and the decimal value 27 is
  1200.     represented <27>.
  1201.  
  1202.     We assume that the user has established the Telnet connection,
  1203.     logged on, and an application program has just been started either
  1204.     by the user directly or through a canned start up  procedure. The
  1205.     presentation on the page is meant to merely group entities together
  1206.     and does not imply the position of message boundaries. One should
  1207.     assume that any part of the dialogue may be sent as one or many
  1208.     messages. The first action of the program  or Telnet is to negotiate
  1209.     the DET option:
  1210.  
  1211.   S: <IAC><DO><DET>
  1212.  
  1213.   U: <IAC><WILL><DET>
  1214.  
  1215.   S:<IAC><DO><OUTPUT PAGE SIZE>              [First negotiate the screen
  1216.                                              size.  In this case we are
  1217.                                              asking the user the size of
  1218.                                              the terminal.  This could
  1219.                                              have been done before the
  1220.                                              DET option was negotiated.]
  1221.  
  1222.   U:<IAC><WILL><NAOP>
  1223.  
  1224.   U:<IAC><SB><NAOP><DR><25><IAC><SE>
  1225.  
  1226.   S:<IAC><SB><NAOP><DS><0><IAC><SE>
  1227.  
  1228.   S:<IAC><DO><OUTPUT LINE WIDTH>
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239. John Day                                                       [page 21]
  1240.  
  1241. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1242. Data Entry Terminal Option
  1243.  
  1244.  
  1245.  
  1246.   U:<IAC><SB><NAOL><DR><80><IAC><SE>         [Defines the screen to be
  1247.                                              25 lines by 80 characters.
  1248.                                              The server may use this
  1249.                                              information when formatting
  1250.                                              the screen.]
  1251.  
  1252.   S:<IAC><SB><NAOL><DS><0><IAC><SE>
  1253.  
  1254.   S:<IAC><SB><DET><FORMAT FACILITIES>
  1255.   <Repeat><Protection, 3 Levels
  1256.   Intensity><IAC><SE>                        [Now set the terminal
  1257.                                              attributes.]
  1258.  
  1259.   U:<IAC><SB><DET><FORMAT FACILITIES>
  1260.   <Repeat, Blinking><Protection, 3
  1261.   Levels Intensity><IAC><SE>
  1262.  
  1263.   S:<IAC><SB><DET><ERASE SCREEN><IAC><SE>    [Erase the screen and start
  1264.                                              sending the form.]
  1265.  
  1266.     <IAC><SB><DET><FORMAT DATA>
  1267.     <Protection=1, Intensity=1><0>
  1268.     <5><IAC><SE>Name:
  1269.  
  1270.     <IAC><SB><DET><MOVE CURSOR><0><1><IAC><SE>
  1271.  
  1272.     <IAC><SB><DET><FORMAT DATA>
  1273.     <Protection=1, Intensity=1><0>
  1274.     <8><IAC><SE>Address:
  1275.  
  1276.     <IAC><SB><MOVE CURSOR><0><4><IAC><SE>
  1277.  
  1278.     <IAC><SB><DET><FORMAT DATA>
  1279.     <Protection=1, Intensity=1><0>
  1280.     <17><IAC><SE>Telephone number:
  1281.  
  1282.     <IAC><SB><DET><MOVE CURSOR><32><4><IAC><SE>
  1283.  
  1284.     <IAC><SB><DET><FORMAT DATA>
  1285.     <Protection=1, Intensity=1><0>
  1286.     <24><IAC><SE>Social Security Number:
  1287.  
  1288.     <IAC><SB><DET><FORMAT DATA>
  1289.     <Protection=1, Intensity=7>
  1290.     <0><11><IAC><SE>                         [Establish a field that
  1291.                                              doesn't display what is
  1292.                                              typed into it.]
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298. John Day                                                       [page 22]
  1299.  
  1300. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1301. Data Entry Terminal Option
  1302.  
  1303.  
  1304.  
  1305.     <IAC><SB><DET><MOVE CURSOR><32><5><IAC><SE>
  1306.  
  1307.     <IAC><SB><DET><FORMAT FACILITIES>
  1308.     <Blinking><0><IAC><SE>                   [Get permission to use
  1309.                                              Blinking Attribute.]
  1310.  
  1311.   U:<IAC><SB><DET><FORMAT FACILITIES>
  1312.   <Repeat, Blinking><Protection,
  1313.   3 Levels Intensity><IAC><SE>
  1314.  
  1315.   S:<IAC><SB><DET><FORMAT DATA>
  1316.   <Blinking=1, Protection=1,
  1317.   Intensity=1><0><29><IAC><SE>
  1318.  
  1319.     Your SSN will not be printed.
  1320.  
  1321.     <IAC><SB><DET><HOME><IAC><SE>
  1322.     <IAC><GA>
  1323.  
  1324.   The previous exchange has placed a form on the screen that looks like:
  1325.  
  1326.   Name:
  1327.   Address:
  1328.   Telephone Number:                       Social Security Number:
  1329.                                      "Your SSN will not be printed."
  1330.  
  1331.   where the quoted string is blinking.
  1332.  
  1333.   The terminal user is now free to fill in the form provided. He
  1334.   positions the cursor at the beginning of the first field (this usually
  1335.   is done by hitting the tab key) and begins typing. We do not show this
  1336.   interaction since it does not generate any interaction with the User
  1337.   Telnet program or the network. After the terminal user has completed
  1338.   filling in the form, he strikes the transmit key to send the
  1339.   unprotected part of the form, but first the User Telnet program
  1340.   negotiates the Byte Macro Option to condense the Field Separator
  1341.   subcommand:
  1342.  
  1343.   U:<IAC><DO><BM>                            [Negotiate Byte Macro
  1344.                                              Option.]
  1345.  
  1346.   S:<IAC><WILL><BM>                          [Define decimal 166 to be
  1347.                                              the Field Separator
  1348.                                              subcommand (see Appendix
  1349.                                              3)]
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357. John Day                                                       [page 23]
  1358.  
  1359. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1360. Data Entry Terminal Option
  1361.  
  1362.  
  1363.  
  1364.   U:<IAC><SB><BM><DEFINE>
  1365.   <166><6><IAC SB DET FIELD
  1366.   SEPARATOR IAC SE><IAC><SE>
  1367.  
  1368.   S:<IAC><SB><BM><ACCEPT><166><IAC><SE>      [The server accepts the
  1369.                                              macro.]
  1370.  
  1371.   U:<IAC><SB><DET><DATA TRANSMIT><0><6><IAC><SE>
  1372.   John Doe <166> 1515 Elm St., Urbana, Il 61801
  1373.   <166> 217-333-9999 <166> 123-45-6789 <166>
  1374.  
  1375.   S:<IAC><SB><DET><ERASE SCREEN><IAC><SE>
  1376.   Thank you.
  1377.  
  1378.   And so on.
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416. John Day                                                       [page 24]
  1417.  
  1418. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1419. Data Entry Terminal Option
  1420.  
  1421.  
  1422.  
  1423. Appendix 1 - Subcommands, opcodes and syntax
  1424.  
  1425.   1         EDIT FACILITIES      <Facilty map>
  1426.   2         ERASE FACILITIES     <Facility map>
  1427.   3         TRANSMIT FACILITIES  <Facility map>
  1428.   4         FORMAT FACILITIES    <Facility map 1> <Facility map 2>
  1429.   5         MOVE CURSOR          <x> <y>
  1430.   6         SKIP TO LINE         <y>
  1431.   7         SKIP TO CHAR         <x>
  1432.   8         UP
  1433.   9         DOWN
  1434.   10        LEFT
  1435.   11        RIGHT
  1436.   12        HOME
  1437.   13        LINE INSERT
  1438.   14        LINE DELETE
  1439.   15        CHAR INSERT
  1440.   16        CHAR DELETE
  1441.   17        READ CURSOR
  1442.   18        CURSOR POSITION      <x><y>
  1443.   19        REVERSE TAB
  1444.   20        TRANSMIT SCREEN
  1445.   21        TRANSMIT UNPROTECTED
  1446.   22        TRANSMIT LINE
  1447.   23        TRANSMIT FIELD
  1448.   24        TRANSMIT REST OF SCREEN
  1449.   25        TRANSMIT REST OF LINE
  1450.   26        TRANSMIT REST OF FIELD
  1451.   27        TRANSMIT MODIFIED
  1452.   28        DATA TRANSMIT <x><y>
  1453.   29        ERASE SCREEN
  1454.   30        ERASE LINE
  1455.   31        ERASE FIELD
  1456.   32        ERASE REST OF SCREEN
  1457.   33        ERASE REST OF LINE
  1458.   34        ERASE REST OF FIELD
  1459.   35        ERASE UNPROTECTED
  1460.   36        FORMAT DATA <format map>
  1461.   37        REPEAT     <count><char>
  1462.   38        SUPPRESS PROTECTION <negotiation>
  1463.   39        FIELD SEPARATOR
  1464.   40        FN <code>
  1465.   41        ERROR  <cmd><error code>
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475. John Day                                                       [page 25]
  1476.  
  1477. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1478. Data Entry Terminal Option
  1479.  
  1480.  
  1481.  
  1482. Appendix 2 - Error Codes
  1483.  
  1484.   1         Facility not previously negotiated.
  1485.  
  1486.   2         Illegal subcommand code.
  1487.  
  1488.   3         Cursor Address Out of Bounds.
  1489.  
  1490.   4         Undefined FN value.
  1491.  
  1492.   5         Can't negotiate acceptable line width.
  1493.  
  1494.   6         Can't negotiate acceptable page length.
  1495.  
  1496.   7         Illegal parameter in subcommand.
  1497.  
  1498.   8         Syntax error in parsing subcommand.
  1499.  
  1500.   9         Too many parameters in subcommand.
  1501.  
  1502.   10        Too few parameters in subcommand.
  1503.  
  1504.   11        Undefined parameter value
  1505.  
  1506.   12        Unsupported combination of Format Attributes
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534. John Day                                                       [page 26]
  1535.  
  1536. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1537. Data Entry Terminal Option
  1538.  
  1539.  
  1540.  
  1541. Appendix 3 - Use of the Byte Macro Option
  1542.  
  1543.   One of the major drawbacks of the DET option is that because the
  1544.   functions are encoded as Telnet option subnegotiations a fairly high
  1545.   overhead is incurred. A function like Character Insert which is
  1546.   encoded as a single byte in most terminals requires six bytes in the
  1547.   DET option. Originally the only other solution that would have
  1548.   accomplished the same transparency that the use of subcommands
  1549.   provides would have been to define additional Telnet control
  1550.   functions. However, since this would entail modification of the Telnet
  1551.   protocol itself, it was felt that this was not a wise solution. Since
  1552.   then the Telnet Byte Macro Option (RFC 729) has been defined. This
  1553.   option allows the user and server Telnets to map an arbitrary
  1554.   character string into a single byte which is then transferred over the
  1555.   net. Thus the Byte Macro Option provides the means for implementations
  1556.   to avoid the overhead for heavily used subcommands. The rest of this
  1557.   appendix suggests how the Byte Macro Option should be applied to the
  1558.   DET option.
  1559.  
  1560.   In keeping with the specification of the Byte Macro Option, macro
  1561.   bytes will be chosen from the range 128 to 239. For the DET option, it
  1562.   is suggested that macro bytes be chosen by adding the subcommand code
  1563.   to 128. In addition, an unofficial DET subcommand might be defined
  1564.   indicating that each side was willing to support macro bytes for all
  1565.   subcommands (but not necessarily support all of the subcommands
  1566.   themselves) according to this algorithm. This subcommand would be:
  1567.  
  1568.     IAC SB DET DET-MACRO <negotiation> IAC SE       subcommand code: 254
  1569.  
  1570.   where <negotiation> may have the values of the Telnet option
  1571.   negotiation:
  1572.  
  1573.     251     WILL
  1574.     252     WONT
  1575.     253     DO
  1576.     254     DONT
  1577.  
  1578.   This subcommand is sent by a Telnet implementation to indicate its
  1579.   willingness to adopt byte macros for all of the DET subcommands
  1580.   according to the following algorithm:
  1581.  
  1582.     The macro byte for subcommand i will be i+128 and will represent the
  1583.     following string for parameterless subcommands:
  1584.  
  1585.     IAC SB DET <subcommand code> IAC SE
  1586.  
  1587.     and the following string for subcommands with parameters:
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593. John Day                                                       [page 27]
  1594.  
  1595. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1596. Data Entry Terminal Option
  1597.  
  1598.  
  1599.  
  1600.     IAC SB DET <subcommand code>
  1601.  
  1602.     The default setting for this subcommand is that the macros are not
  1603.     in effect, in other words,
  1604.  
  1605.       IAC SB DET DET-MACRO WONT IAC SE
  1606.       IAC SB DET DET-MACRO DONT IAC SE
  1607.  
  1608.     Negotiation of this subcommand follows the same rules as
  1609.     negotiations of the Telnet options.
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652. John Day                                                       [page 28]
  1653.  
  1654. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1655. Data Entry Terminal Option
  1656.  
  1657.  
  1658.  
  1659. References
  1660.  
  1661.   1.   ADM-1 Interactive Display Terminal Operator's Handbook
  1662.        Lear-Siegler, Inc. 7410-31.
  1663.  
  1664.   2.   ADM-Interactive Display Terminal Operator's Handbook
  1665.        Lear-Siegler, Inc. EID, 1974.
  1666.  
  1667.   3.   Burroughs TD 700/800 Reference Manual, Burroughs Corp., 1973
  1668.  
  1669.   4.   Burroughs TD 820 Reference Manual, Burroughs Corp. 1975.
  1670.  
  1671.   5.   CC-40 Communications Station: General Information Manual.
  1672.        Computer Communication, Inc. Pub. No. MI-1100. 1974.
  1673.  
  1674.   6.   Crocker, David. "Telnet Byte Macro Option," RFC 729, 1977.
  1675.  
  1676.   7.   Data Entry Virtual Terminal Protocol for Euronet, DRAFT, 1977.
  1677.  
  1678.   8.   Day, John. "A Minor Pitfall in the Telnet Protocol," RFC 728,
  1679.        1977.
  1680.  
  1681.   9.   Hazeltine 2000 Desk Top Display Operating Instructions. Hazeltine
  1682.        IB-1866A, 1870.
  1683.  
  1684.   10.  How to Use the Consul 980: A Terminal Operator's Guide and
  1685.        Interface Manual. Applied Digital Data Systems, Inc. 98-3000.
  1686.  
  1687.   11.  How to Use the Consul 520: A Terminal Operator's Guide and
  1688.        Interface Manual. Applied Digital Data Systems, Inc. 52-3000.
  1689.  
  1690.   12.  Honeywell 7700 Series Visual Information Projection (VIP)
  1691.        Systems: Preliminary Edition. 1973.
  1692.  
  1693.   13.  An Introduction to the IBM 3270 Information Display System. IBM
  1694.        GA27-2739-4. 1973.
  1695.  
  1696.   14.  Naffah, N. "Protocole Appareil Virtuel type Ecran" Reseau
  1697.        Cyclades. TER 536. 1976.
  1698.  
  1699.   15.  Postel, Jon and Crocker, David. "Remote Controlled Transmission
  1700.        and Echoing Telnet Option", RFC 726 NIC 39237, Mar. 1977.
  1701.  
  1702.   16.  Schicker, Peter. "Virtual Terminal Protocol (Proposal 2). INWG
  1703.        Protocol Note #32., 1976.
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711. John Day                                                       [page 29]
  1712.  
  1713. NWG/RFC# 732                                  DAY 13-Sep-77 18:38  41762
  1714. Data Entry Terminal Option
  1715.  
  1716.  
  1717.  
  1718.   17.  UNISCOPE Display Terminal : Programmer Reference . Sperry- Univac
  1719.        UP-7807 Rev. 2, 1975.
  1720.  
  1721.   18.  Universal Terminal System 400: System Description. Sperry- Univac
  1722.        UP-8357, 1976.
  1723.  
  1724.   19.  Walden, David C. "Telnet Output Line Width Option." NIC # 20196,
  1725.        1973, also in ARPANET Protocol Handbook, 1976.
  1726.  
  1727.   20.  Walden, David C. "Telnet Output Page Size" NIC # 20197, 1973,
  1728.        also in ARPANET Protocol Handbook, 1976.
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770. John Day                                                       [page 30]