agent-tui-usecases 1.1.0

Use cases and ports for agent-tui terminal automation
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Terminal engine port.

use crate::domain::core::ScreenSnapshot;
use crate::domain::session_types::TerminalSize;

pub trait TerminalEngine: Send {
    fn process_bytes(&mut self, bytes: &[u8]);
    fn resize(&mut self, size: TerminalSize);
    fn snapshot(&self) -> ScreenSnapshot;
    fn plain_text(&self) -> String;
}