console_codes/
privmode.rs

1#[derive(Debug, Clone, Copy, Eq, PartialEq)]
2pub enum PrivateMode {
3    /// Cursor keys ESC 0 prefix instead of ESC [
4    DECCKM = 1,
5
6    /// 80/132 col mode switch
7    DECCOLM = 3,
8
9    /// Set reverse video mode
10    DECSCNM = 5,
11
12    /// Set cursor addressing relative to upper left corner of scrolling region
13    DECOM = 6,
14
15    /// Set autowrap on
16    DECAWM = 7,
17
18    /// Set keyboard autorepeat on
19    DECARM = 8,
20
21    /// X10 Mouse reporting mode 1 or reset to 0
22    X10MR1 = 9,
23
24    /// Make cursor visible
25    DECTECM = 25,
26
27    /// X11 Mouse reporting mode 2 or reset to 0
28    X11MR2 = 1000,
29}
30
31impl From<PrivateMode> for u16 {
32    fn from(pm: PrivateMode) -> Self {
33        pm as Self
34    }
35}