pub enum TerminalMessage {
Show 48 variants
ProcessBytes(Vec<u8>),
SendInput(String),
ResizeTerminal {
width: usize,
height: usize,
},
SwitchScreenBuffer {
to_alternate: bool,
},
ClearScreen {
mode: ClearMode,
},
ClearLine {
line: usize,
mode: ClearMode,
},
ScrollUp {
lines: usize,
},
ScrollDown {
lines: usize,
},
MoveCursor {
x: usize,
y: usize,
},
MoveCursorRelative {
dx: i32,
dy: i32,
},
SaveCursor,
RestoreCursor,
SetCursorVisibility {
visible: bool,
},
SetCursorStyle {
style: CursorStyle,
},
SetCursorColumn {
col: usize,
},
SetCursorLine {
line: usize,
},
CursorUp {
lines: usize,
},
CursorDown {
lines: usize,
},
CursorLeft {
cols: usize,
},
CursorRight {
cols: usize,
},
CursorToLineStart,
CursorNextLine {
lines: usize,
},
CursorPreviousLine {
lines: usize,
},
SetMode {
mode: TerminalModeType,
enabled: bool,
},
SetAttributes {
attributes: TerminalAttributes,
},
ResetAttributes,
SetScrollingRegion {
top: usize,
bottom: usize,
},
ResetScrollingRegion,
ScrollUpInRegion {
lines: usize,
},
ScrollDownInRegion {
lines: usize,
},
SetTabStop,
ClearTabStop,
ClearAllTabStops,
TabForward {
count: usize,
},
TabBackward {
count: usize,
},
DeviceStatusReport {
report_type: DeviceReportType,
},
DeviceAttributes {
primary: bool,
},
TerminalIdentification,
SetTerminalTitle {
title: String,
},
SetIconName {
name: String,
},
SetColorPalette {
index: u8,
color: String,
},
ClipboardOperation {
operation: ClipboardOp,
},
ContentUpdate {
content: String,
dirty_regions: Vec<DirtyRegion>,
replace_mode: bool,
},
MouseEvent {
event_type: MouseEventType,
x: usize,
y: usize,
button: Option<MouseButton>,
modifiers: MouseModifiers,
},
SetCharacterSet {
set: CharacterSetType,
charset: String,
},
QueryTerminalState,
QueryCursorPosition,
QueryScreenSize,
}Expand description
F0304: Terminal Message Architecture - Comprehensive terminal operation messages
Variants§
ProcessBytes(Vec<u8>)
SendInput(String)
ResizeTerminal
SwitchScreenBuffer
ClearScreen
ClearLine
ScrollUp
ScrollDown
MoveCursor
MoveCursorRelative
SaveCursor
RestoreCursor
SetCursorVisibility
SetCursorStyle
Fields
§
style: CursorStyleSetCursorColumn
SetCursorLine
CursorUp
CursorDown
CursorLeft
CursorRight
CursorToLineStart
CursorNextLine
CursorPreviousLine
SetMode
SetAttributes
Fields
§
attributes: TerminalAttributesResetAttributes
SetScrollingRegion
ResetScrollingRegion
ScrollUpInRegion
ScrollDownInRegion
SetTabStop
ClearTabStop
ClearAllTabStops
TabForward
TabBackward
DeviceStatusReport
Fields
§
report_type: DeviceReportTypeDeviceAttributes
TerminalIdentification
SetTerminalTitle
SetIconName
SetColorPalette
ClipboardOperation
Fields
§
operation: ClipboardOpContentUpdate
MouseEvent
SetCharacterSet
QueryTerminalState
QueryCursorPosition
QueryScreenSize
Trait Implementations§
Source§impl Clone for TerminalMessage
impl Clone for TerminalMessage
Source§impl Debug for TerminalMessage
impl Debug for TerminalMessage
Source§impl PartialEq for TerminalMessage
impl PartialEq for TerminalMessage
impl StructuralPartialEq for TerminalMessage
Auto Trait Implementations§
impl Forget for TerminalMessage
impl Freeze for TerminalMessage
impl Move for TerminalMessage
impl RefUnwindSafe for TerminalMessage
impl Send for TerminalMessage
impl Sync for TerminalMessage
impl Unpin for TerminalMessage
impl UnsafeUnpin for TerminalMessage
impl UnwindSafe for TerminalMessage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.