1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! 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.
use ;
/// Reset to Initial State: exact bytes `ESC c` (`b"\x1bc"`).
///
/// This is a terminal-wide hard reset, not just an SGR or screen clear.
pub const RIS: & = b"\x1bc";
/// Write [`RIS`], the `ESC c` Reset to Initial State control.
///
/// Use only when the terminal should discard broad state such as modes, tabs, character sets, and visual attributes.
/// Primary Device Attributes request: exact bytes `ESC [ c` (`b"\x1b[c"`).
///
/// The omitted parameter is the standard DA1 request.
pub const REQUEST_PRIMARY_DA: & = b"\x1b[c";
/// Secondary Device Attributes request: exact bytes `ESC [ > c` (`b"\x1b[>c"`).
pub const REQUEST_SECONDARY_DA: & = b"\x1b[>c";
/// Tertiary Device Attributes request: exact bytes `ESC [ = c` (`b"\x1b[=c"`).
pub const REQUEST_TERTIARY_DA: & = b"\x1b[=c";
/// Terminal name/version request: exact bytes `ESC [ > q` (`b"\x1b[>q"`).
pub const REQUEST_XTVERSION: & = b"\x1b[>q";
/// Write the primary Device Attributes request `ESC [ c`.
/// Write the secondary Device Attributes request `ESC [ > c`.
/// Write the tertiary Device Attributes request `ESC [ = c`.
/// Write the terminal version request `ESC [ > q`.