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} | 0x08 | Backspace and erase the previous character. |
{0x0D} | 0x0D | Newline: move to the start of the next row. |
{0x0E} | 0x0E | Turn the cursor on. |
{0x0F} | 0x0F | Turn the cursor off. |
{0x12} | 0x12 | Backspace without erasing. |
{0x17} | 0x17 | Switch to double-width (32 character) display mode - recognised as a mode change, no glyph. |
{0x1C} | 0x1C | Cursor home: top-left of the screen. |
{0x1D} | 0x1D | Carriage return to the start of the current row. |
{0x1E} | 0x1E | Clear from the cursor to the end of the row. |
{0x1F} | 0x1F | Clear from the cursor to the end of the screen. |
{0xNN} | any | Any 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} | 0x80 | The 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–0xFF | Space-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