Skip to content

TRS-80 escape codes ​

Every escape that can be typed in TRS-80 source, and the byte it stores. Escapes are recognised in string literals, REM/' comments and DATA bodies. Block graphics 0x81-0xBF are typed as unicode sextant glyphs rather than escapes; only the listed control, blank-graphics and space-compression bytes need the {0xNN} form. Filters can be prefilled with ?q= and ?cat= query parameters.

See also the TRS-80 Level II BASIC reference and file formats.

Description
{0x08}0x08Backspace and erase the previous character.
{0x0D}0x0DNewline: move to the start of the next row.
{0x0E}0x0ETurn the cursor on.
{0x0F}0x0FTurn the cursor off.
{0x12}0x12Backspace without erasing.
{0x17}0x17Switch to double-width (32 character) display mode - recognised as a mode change, no glyph.
{0x1C}0x1CCursor home: top-left of the screen.
{0x1D}0x1DCarriage return to the start of the current row.
{0x1E}0x1EClear from the cursor to the end of the row.
{0x1F}0x1FClear from the cursor to the end of the screen.
{0xNN}anyAny raw byte as two hex digits - the remaining control codes 0x00–0x1F and delete (0x7F). Recognised in strings, REM and DATA; a { that is not an escape is the literal 0x7B character.
{0x80}0x80The blank block-graphics cell (all six pixels off) - escaped because its glyph would be indistinguishable from a space. The other graphics bytes 0x81–0xBF are typed as their unicode sextant glyphs (🬀…█), not escapes.
{0xC0}…{0xFF}0xC0–0xFFSpace-compression codes: byte 0xC0+n prints n spaces (0xC3 = 3 spaces). Stored on tape by Level II string packing.

Showing 13 of 13 escape codes

Released under GNU GPL v3.0. Some ROM images are third-party copyrighted works, separate to this project, strictly for personal/educational purposes.