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
#[derive(Debug, Clone, Copy, Eq, PartialEq)] pub enum PrivateMode { /// Cursor keys ESC 0 prefix instead of ESC [ DECCKM = 1, /// 80/132 col mode switch DECCOLM = 3, /// Set reverse video mode DECSCNM = 5, /// Set cursor addressing relative to upper left corner of scrolling region DECOM = 6, /// Set autowrap on DECAWM = 7, /// Set keyboard autorepeat on DECARM = 8, /// X10 Mouse reporting mode 1 or reset to 0 X10MR1 = 9, /// Make cursor visible DECTECM = 25, /// X11 Mouse reporting mode 2 or reset to 0 X11MR2 = 1000, } impl From<PrivateMode> for u16 { fn from(pm: PrivateMode) -> Self { pm as Self } }