polypty 0.1.0

Agent-aware terminal multiplexer with sidebar tabs and nested panes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;

use crate::info::TabInfo;

pub(crate) trait TerminalSession {
    fn id(&self) -> u64;
    fn info(&self) -> &TabInfo;
    fn screen(&self) -> &vt100::Screen;
    fn poll(&mut self) -> Result<bool>;
    fn last_poll_bytes(&self) -> usize;
    fn resize(&mut self, cols: u16, rows: u16) -> Result<()>;
    fn write_all(&mut self, data: &[u8]) -> Result<()>;
    fn try_reap(&mut self) -> bool;
    fn is_alive(&self) -> bool;
    fn kill(&mut self);
    fn is_dirty(&self) -> bool;
    fn mark_rendered(&mut self);
}