pub enum TerminalQuery {
DeviceStatus,
CursorPosition,
ExtendedCursorPosition,
PrimaryDeviceAttributes,
SecondaryDeviceAttributes,
DecModeReport {
mode: u16,
},
}Expand description
Decoded terminal query extracted from an escape sequence.
Variants§
DeviceStatus
DSR operating-status query (CSI 5 n).
CursorPosition
DSR cursor-position query (CSI 6 n).
ExtendedCursorPosition
DECXCPR cursor-position query (CSI ? 6 n).
PrimaryDeviceAttributes
DA1 primary device attributes (CSI c / CSI 0 c).
SecondaryDeviceAttributes
DA2 secondary device attributes (CSI > c / CSI >0 c).
DecModeReport
DECRPM mode status query (CSI ? Ps $ p).
Implementations§
Source§impl TerminalQuery
impl TerminalQuery
Sourcepub fn parse_escape(seq: &[u8]) -> Option<Self>
pub fn parse_escape(seq: &[u8]) -> Option<Self>
Attempt to decode a query from a raw escape payload.
The sequence must be complete and start with ESC [.
Trait Implementations§
Source§impl Clone for TerminalQuery
impl Clone for TerminalQuery
Source§fn clone(&self) -> TerminalQuery
fn clone(&self) -> TerminalQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalQuery
impl Debug for TerminalQuery
Source§impl PartialEq for TerminalQuery
impl PartialEq for TerminalQuery
impl Copy for TerminalQuery
impl Eq for TerminalQuery
impl StructuralPartialEq for TerminalQuery
Auto Trait Implementations§
impl Freeze for TerminalQuery
impl RefUnwindSafe for TerminalQuery
impl Send for TerminalQuery
impl Sync for TerminalQuery
impl Unpin for TerminalQuery
impl UnwindSafe for TerminalQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more