Expand description
Terminal reset, device-attribute, and version requests.
§Category
This module contains terminal-wide control sequences: RIS (ESC c), primary,
secondary, and tertiary Device Attributes, and the XTVERSION query.
§CSI conventions
Device-attribute requests are 7-bit CSI sequences. Private prefixes (> and
=) distinguish secondary and tertiary forms from primary DA.
§Mode interaction
These requests do not require a mode. RIS is destructive: it asks the terminal to reset state such as modes, colors, tabs, and character sets.
Constants§
- REQUEST_
PRIMARY_ DA - Primary Device Attributes request: exact bytes
ESC [ c(b"\x1b[c"). - REQUEST_
SECONDARY_ DA - Secondary Device Attributes request: exact bytes
ESC [ > c(b"\x1b[>c"). - REQUEST_
TERTIARY_ DA - Tertiary Device Attributes request: exact bytes
ESC [ = c(b"\x1b[=c"). - REQUEST_
XTVERSION - Terminal name/version request: exact bytes
ESC [ > q(b"\x1b[>q"). - RIS
- Reset to Initial State: exact bytes
ESC c(b"\x1bc").
Functions§
- write_
request_ primary_ da - Write the primary Device Attributes request
ESC [ c. - write_
request_ secondary_ da - Write the secondary Device Attributes request
ESC [ > c. - write_
request_ tertiary_ da - Write the tertiary Device Attributes request
ESC [ = c. - write_
request_ xtversion - Write the terminal version request
ESC [ > q. - write_
ris - Write
RIS, theESC cReset to Initial State control.