module BBS::Terminal

The first question of a call on a board with two faces: which one the terminal gets. The board guesses first from the telnet answers: a window wider than 40 columns is a modern terminal; 40 columns, or no answer at all (a C64 behind a WiFi modem talks plain TCP), most likely a Commodore. The question is plain ASCII in capitals, which an ANSI terminal and a C64 in either character set print alike, and each line names what goes on the wire: ANSI with xterm’s 256 colours and mouse, or PETSCII.

A key only picks, RETURN takes it: a line-mode telnet sends the digit and the RETURN together, and a RETURN left on the line would land in the first screen. A changed pick prints the prompt again on a new line, since the two machines go back a character differently. A caller who does not answer gets what is picked, or the guess.