6. Sample Interaction
"S:" is sent from serving (WILL RCTE) host to using host. "U:" is sent from using (DO RCTE) host to serving host. "T:" is entered by the terminal user. "P:" is printed on the terminal.
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>.
The following interaction shows a logon to a Tenex, initiation of the DED editor, insertion of some text and the return to the Exec level.
An attempt has been made to give some flavor of the asynchrony of network I/O and the user's terminal input. Many other possible combinations, using the same set of actions listed below, could be devised. The actual order of events will depend upon network and hosts' load and the user's typing speed.
We assume that the user's Telnet is also in an "insert linefeed" mode. That is, whenever the user types carriage return <cr> the user Telnet sends both carriage return and linefeed <cr><lf> (the Telnet end of line signal). When space character occurs at the end of a line in the example description it is shown explicitly by <sp> to avoid confusion. Other uses of the space character are not so marked to avoid destroying the readability of the example.
A Telnet connection has already been opened, but the TENEX prompt has not yet been issued. The hosts first discuss using the RCTE option:
S: <IAC><WILL><RCTE>
U: <IAC><DO><RCTE>
S: TENEX 1.31.18, TENEX EXEC 1.50.2<cr><lf>@
<IAC><SB><RCTE><11><1><24><IAC><SE>
[Print the herald and echo input text up to a break character, but do not echo the break character. Classes 4 (Format Effectors), 5 (Non-format Effector Controls and <DEL>), and 9 (<sp>) act as break characters.]
P: TENEX 1.31.18, TENEX EXEC 1.50.2<cr><lf>@
T: LOGIN ARPA<cr>
P: LOGIN
U: LOGIN<sp>
U: ARPA<cr><lf>
S: <sp><IAC><SB><RCTE><0><IAC>SE>
P: <sp>ARPA
S: <cr><lf>(PASSWORD): <IAC><SB><RCTE><7><IAC><SE>
P: <cr><lf>(PASSWORD):<sp>
T: WASHINGTON 1000<cr>
[The password "WASHINGTON" is not echoed. Printing of "1000<cr>" is withheld]
U: WASHINGTON<sp>
U: 1000<cr><lf>
S: <sp><IAC><SB><RCTE><3><IAC><SE>
S: <cr><lf>JOB 17 ON TTY41 7-JUN-73 14:13<cr><lf>@
<IAC><SB><RCTE><0><IAC><SE>
P: <sp>1000
[Printing is slow at this point; so the account number is not printed as soon as the server's command for it is received.]
P: <cr><lf>JOB 17 ON TTY41 7-JUN-73 14:13<cr><lf>@
T: DED<esc><cr>
P: DED
U: DED<esc>
S: .SAV;1<IAC><SB><RCTE><0><IAC><SE>
P: .SAV;1
U: <cr><lf>
S: <cr><lf><lf>DED 3/14/73 DRO,KRK<cr><lf>:
<IAC><SB><RCTE><15><1><IAC><255><IAC><SE>
[The program is started and the DED prompt ":" is sent. At the command level, DED responds to every character. The server sets the break classes to all classes.]
P: <cr><lf><lf>DED 3/14/73 DRO,KRK<cr><lf>:
T: IThis is a test line.<cr>This is another test
line.<^Z>Q
["I" means Insert Text. The text follows, terminated by a Control-Z. The "Q" instructs DED to Quit.]
U: I
U: This is a test line.<cr><lf>
S: I<cr><lf>*<IAC><SB><RCTE><11><0><24><IAC><SE>
[DED prompts the user, during text input, with an asterisk at the beginning of every line. The server sets the break classes to classes 4 and 5, the format effectors and the non-format effector controls.]
P: I<cr><lf>*This is a test line.
S: <cr><lf>*<IAC><SB><RCTE><0><IAC><SE>
P: <cr><lf>*This is another test line.
U: This is another test line.<^Z>
U: Q
[Note that the "Q" will not immediately be printed on the terminal, since it must wait for authorization.]
S: ^Z<cr><lf>:<IAC><SB><RCTE><15><1><IAC><255><IAC><SE>
[The returned "^Z" is two characters, not the ASCII Control-Z or <sub>.]
S: Q<cr><lf>@<IAC><SB><RCTE><11><1><24><IAC><SE>
P: Q<cr><lf>@
And the user is returned to the Exec level.