pub struct TerminalManager { /* private fields */ }Expand description
Terminal manager for multiple terminals
Implementations§
Source§impl TerminalManager
impl TerminalManager
Sourcepub fn create_terminal(
&self,
width: u32,
height: u32,
) -> Result<usize, KernelError>
pub fn create_terminal( &self, width: u32, height: u32, ) -> Result<usize, KernelError>
Create a new terminal
Sourcepub fn process_input(
&self,
terminal_id: usize,
event: InputEvent,
) -> Result<(), KernelError>
pub fn process_input( &self, terminal_id: usize, event: InputEvent, ) -> Result<(), KernelError>
Process input for a terminal
Sourcepub fn update_all(&self) -> Result<(), KernelError>
pub fn update_all(&self) -> Result<(), KernelError>
Update all terminals (read PTY output).
Sourcepub fn get_window_id(&self, terminal_id: usize) -> Option<WindowId>
pub fn get_window_id(&self, terminal_id: usize) -> Option<WindowId>
Get the window ID of a terminal by index.
Sourcepub fn get_surface_id(&self, terminal_id: usize) -> Option<u32>
pub fn get_surface_id(&self, terminal_id: usize) -> Option<u32>
Get the compositor surface ID of a terminal by index.
Sourcepub fn write_welcome(&self, terminal_id: usize)
pub fn write_welcome(&self, terminal_id: usize)
Write a welcome message to a terminal’s screen buffer.
Sourcepub fn render_all_surfaces(&self)
pub fn render_all_surfaces(&self)
Render all terminal surfaces to the compositor.