Skip to main content

4. Character Mapping and the ESC Mechanism

The understanding that ASCII be used as a network-wide code has been established for some time. Its use in TELNET provided a problem with respect to the limitation of a maximum character set of 128. Some systems provide for more than this number in their operation, and therefore, as serving sites cannot map on a one for one basis.

Each such serving site could probably provide a reasonably useful character set, including all system control signals, by mapping 128 of its codes and just not provide a network user access to the other codes. However, any character left out might later be used in a major application at that site as a special control signal. This could result in denying network users the facility offered by that application. Serving sites are, therefore, encouraged to provide a full mapping between the ASCII code and the code used on the serving system.

The ASCII code for ESC (known to some as ALT MODE) has been selected as an escape [1]. For each serving site character not mapped on a one for one basis, the serving site can specify an escape character or string of escape characters (preferably a printable graphic) to represent it. Thus, the user could enter the full set of serving site code from any network terminal operating through the Network Virtual Terminal (NVT) ASCII convention. The serving site, in generating output directed at the user's terminal, would be expected to map out such a character and transmit the appropriate ESC character or string of ESC characters.

Example: A serving site, whose normal code is EBCDIC, has specified that cent ([5]) has not been mapped on a one for one basis and that to transmit the character, users must enter ESC followed by C. At a using site, the TELNET implementers have decided to try to print out all ESC characters using \ to indicate ESC. On receipt of the representation for cent, the user would see \C on his print-out.