Skip to main content

Reverse Break

The code for Break is defined as a 129th ASCII data code. It is usually transmitted from a user's network virtual terminal to a server when a corresponding key (break key or attention key) is typed on the TELNET terminal and is interpreted by serving systems as that special key. Since a common function of this key is to interrupt a running process the server must be alerted to the fact that this code has been transmitted no matter when it is sent. Thus, the TELNET SYNC (TELNET data mark together with a network interrupt on the TELNET send socket) must also be transmitted to cause the serving process to examine the received characters. The ASCII control code EOT (Octal 4) could have been chosen for the break function but his code is not interpreted by all systems. Thus, it was decided that an NVT TELNET control code should be used for this purpose.

The use of the Break Code from server to user TELNET has not previously been defined and, thus, could be used to solve the following problems which occur with line at a time and half duplex systems. Line at a time systems do not output characters to the terminal a character at a time but, instead, wait until a line is ready for output. If a CR-LF sequence (TELNET protocol for end of line) is received it is interpreted as an end of line and the characters received are output. If characters are received which do not end with CR-LF the user TELNET does not know whether or not other characters will follow which are part of the current line. Thus, the characters received thus far must be output, without a CR-LF (new line). If an end of message code were transmitted, the user TELNET would know whether or not other characters would be received for output. The user TELNET would then print characters either when the TELNET Break control is received or when the CR-LF newline sequence is received.

If the user TELNET is being run from a half duplex terminal, the terminal cannot receive input and type output at the same time. Thus, if output is received while the terminal is being used for input the TELNET program must either buffer the received characters or abort the input mode of operation to write out the received characters. If characters received are written out as they are received, the terminal operation would be very similar to a full duplex terminal. This mode of operation requires that the terminal have a reverse break capability to allow the input mode to be aborted by program control.

In some systems it is only desirable to abort the input mode of operation when a complete line is ready for output. If a string of characters received does not end with an end of line code, the characters received will not be output until after the input line is entered, i. e., the mode of operation changed from input to output. If an end of message code were transmitted, the user TELNET could abort the input mode of operation even though the end of line code was not received.