This repository has been archived on 2025-05-11. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
FastWave2.0/shared/src/term.rs

25 lines
594 B
Rust

use moonlight::*;
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(crate = "serde")]
pub enum TerminalUpMsg {
RequestFullTermState,
RequestIncrementalTermStateUpdate,
SendCharacter(char),
}
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(crate = "serde")]
pub enum TerminalDownMsg {
FullTermUpdate(TerminalScreen),
BackendTermStartFailure(String),
TermNotStarted
}
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
#[serde(crate = "serde")]
pub struct TerminalScreen {
pub cols : u16,
pub rows : u16,
pub content : String,
}