8. Break and Interrupt Handling
There is a special control signal on some terminals that has no corresponding bit pattern in ASCII, but is transmitted by a special electrical signal. This control signal is ATTN on a 2741 and BREAK on a teletype. The ASCII DATA TYPE in TELNET will use the code X'81' to represent BREAK. (There is a corresponding control signal for use from serving sites to using sites for reverse break, and it is assigned the code X'82').
Some systems treat the break as an extra code available for use in conjunction with the data stream. For example, one system uses break as a special editing code meaning "delete the current line to this point". In these cases, the code may simply be inserted in the data stream with no special additional action by the user.
Other systems use BREAK or ATTN in a special interrupt fashion, to mean stop processing the application and give me the supervisor, or cancel the present job, etc. (Other systems use normal characters for this purpose, such as "Control C".) In these cases, because of differences in the ways both serving and using sites operate, it is necessary to take a route in addition to the normal TELNET data stream to signal that the special control signal is imbedded in the data stream.
Examples - Problem
The PDP-10 normally will, when it fills its input buffer, continue to accept characters from a terminal examining each to see if it is a control character, then act on it if it is or throw it away if it is not.
Since the TELNET server at the serving site is at the mercy of the NCP with respect to controlling the bunching, and therefore, arrival at the TELNET of bursts of characters, TELNET implementations might be expected to choke off flow to the buffers until they are ready to accept characters without throwing them away.
Under this condition, the serving process might be outputting to the using terminal, the input buffers fill up, and a control C get stuck in the data stream that has been choked off.
A similar problem could occur with the Multics or some IBM system as a server. The user at a using site gets into an output loop at the serving site and wants to break the process without having to release his TELNET connection. The buffers clog the connection, transmission is choked off, and the control C break, or other user control signal gets stuck in the pipeline.
Example - Solution
The user at the using site knows he is entering a special control signal (break, ATTN, control C, etc.) and follows it with an X'80'. (The local instructions at using sites for accomplishing this may differ from site to site.)
Using Site TELNET to Serving Site
Insert X'80' in Data Stream
Using Site TELNET to Using Site NCP
Send an INS
Sending Site NCP to TELNET Server
Look out, here she come
Serving Site TELNET
Does its special thing until it sees X'80' then resumes
normal handling
Thus, depending on the server's local implementation to provide adequate service, a special handling of the data stream can be invoked whenever an INS is received in order to get the special character. When it sees X'80', it recognizes it as a SYNC character and knowing that the special character has been passed on, strips the X'80' from the data stream and returns to normal mode.
If the X'80' arrives before the INS, a counting scheme can keep the activity appropriate to the serving site conditions.