Skip to main content

Encoding Principles

Commands will have the format : BGC OPCODE DATA EGC where:

  • BGC (Begin Graphics Command) places the telnet connection into a "read graphics command" mode,
  • OPCODE DATA is the specific graphics command and data, and
  • EGC (End Graphics Command) restores the telnet connection to its normal state.

Note: This may all have to be bracketed by telnet Begin-8-bit-transparent-mode and End-8-bit-transparent-mode commands.

Numbers in general will have have 7-bits of significance in each byte -- if the high order of a byte is on, then the significant bits from the next byte should be concatenated onto the low-order end of the bits collected so far, etc..

Subpicture names - shall be 14-bit numbers, assigned by the serving host.

Unit names - shall be 14-bit numbers, assigned by the serving host.

Strings - shall be 8-bit characters, with an escape convention to represent changes of font and mode.

Since the channel is 8-bits wide, there is room for many more than 128 displayable characters. However, the interpretation of codes 200B and above is not standardized!

Coordinates should be as described in RFC 493.

Rectangles - shall be specified by the coordinates of the endpoints of one of the diagonal.