Explicit Description of Control Mechanism
A. Overview of Interaction
(1) Agree to use RCTE option
(2) User holds echo printing until instructed by server to do
otherwise
(3) Server may send output to terminal printer.
(4) Network output is printed up to an RCTE command
(5) Server sends IAC SB RCTE <cmd>
(6) User acts upon the command up to a Break character or until
receipt of output from the server host.
(7) Go to (2)
Note: Output from the server host may occur at any time, in which case, the flow of control switches to (2) and then proceeds to (3), (4), etc.
B. Explanation
(1) Both Hosts agree to use the RCTE option. After that, the using host (IAC DO RCTE) merely acts upon the Controlling (serving) host's commands and does not issue any RCTE commands unless and until it (using host) decides to stop allowing use of the option (by sending IAC DON'T RCTE).
(2) User host begins synchronization between the serving host and itself by suspending terminal echo printing until directed to do otherwise by the controlling host, thru an IAC SB RCTE <cmd>.
(3) The server may send output to the terminal printer, either in response to input from the user (in which case it is already synchronized with the terminal input) or spontaneously. In the latter case, flow of control automatically switches to (2) and continues from there. Output from the server is defined as completed when step (5) occurs. That is, text from the Server to the terminal printer MUST end with an RCTE command.
(4) Any output from the server is printed on the terminal IMMEDIATELY. Again note that the end of such output is defined to be the occurrence of an IAC SB RCTE <cmd> command.
(5) Server sends an RCTE command. The command may redefine Break and Transmission classes, Action to be performed on Break characters, and action to be performed on text. Each of these independent functions is controlled by separate bits in the <cmd> byte.
a. A Transmission character is one which REQUIRES the User Host to transmit all text accumulated up to and including its occurrence. (For Net efficiency, User hosts are DISCOURAGED from sending before the occurrence of a Transmission character).
If the Transmission Classes bit (Bit 4) is on, the two bytes following the two Break Classes bytes (or immediately following the
<cmd>byte, if the Break Classes bit is not on) will indicate what classes are to be enabled.If the Bit is OFF, the Transmission classes remain unchanged. When the RCTE option is first initiated, NO CLASSES are in effect. That is, no character will be considered a Transmission character. (As if both TC1 and TC2 are zero.)
b. A Break character has the effect of a Transmission character, but also causes the User host to stop its print/discard action upon the User's input text, until directed to do otherwise by another IAC SB RCTE <cmd> command from the Serving host. Break characters therefore define printing units. "Break character" as used in this document does NOT mean Telnet Break character.
If the Break Classes bit (Bit 3) is on, the two bytes following
<cmd>will indicate what classes are to be enabled. There are currently nine (9) classes defined, with room for expansion.If the bit is OFF, the Break classes remain unchanged. When the RCTE option is initiated, CLASSES 4, 5, and 9 are to be in effect. That is, Format Effectors, Non-format effector Control Characters and DEL, and Punctuation characters are to be Break characters.
c. The list of the character classes, used to define Break and Transmission classes are listed at the end of this document, in the "Tables" Section.
d. Because Break characters are special, the print/discard action that should be performed upon them is not always the same as should be performed upon the rest of the input text.
For example, while typing a filename to TENEX, I want the text of the filename to be printed (echoed); but I do not want the
<escape>(if I use the name completion feature) to be printed.
If Bit 1 is ON The Break character is NOT to be printed.
e. A separate bit (Bit 2) signals whether or not the text itself should be printed (echoed) to the terminal. If Bit 2 = 0, then the text IS to be printed.
f. Yet another bit (Bit 0 - right-most bit) signals whether or not any of the other bits of the command should be checked. If this bit is OFF, then the command should be interpreted to mean "continue whatever echoing strategy you have been following, using the same Break and Transmission classes."
This is particularly useful for the
<cmd>command that follows spontaneously generated output from the Serving host (such as "System Going Down") which needs to signal End-of-Message, but does not usually want to reset any other conditions.The server may, however, alter user action after a spontaneous message, but it is possible that text will be lost, or printed when it should not be, since there is no guarantee that the RCTE
<cmd>from the serving host will be properly synchronized with the terminal input.
(6) Input from the terminal is (hopefully) buffered up to the occurrence of a Transmission or Break character; and the input text is echoed or not echoed, up to the occurrence of a Break Character. The most recent RCTE command determines the echo, Transmission and Break actions.
(7) When a Break character is typed, the cycle of control is complete and action re-commences at (2). Action also automatically switches to (2) upon receipt of any text from the Server host.