pub struct ScreenView<'a> {
pub visible_text: &'a str,
pub cursor_row: usize,
pub cursor_col: usize,
pub osc_title: Option<&'a str>,
pub osc_progress: Option<&'a str>,
}Expand description
A read-only view of the terminal screen the detector inspects. It is built
from the terminal grid in crate::screen after feeding it the PTY output
stream; the trait depends only on this shape so the substrate stays
decoupled from the terminal-emulator crate.
Fields§
§visible_text: &'a strThe visible screen contents, rows joined by \n, trailing blanks
trimmed. What a human would see.
cursor_row: usizeCursor position (0-based). Some prompts are only distinguishable by where the cursor rests.
cursor_col: usize§osc_title: Option<&'a str>Latest OSC window title (OSC 0/2), captured from the PTY byte stream
(E6.1). The manifest engine’s osc_title region reads this; it survives
scrollback/wrap/resize where grid text does not. None if no title OSC
has been seen (e.g. the grid-pane scanner, which does not capture OSC).
osc_progress: Option<&'a str>Latest OSC 9;4 progress payload (E6.1); the engine’s osc_progress
region. None if none seen.
Trait Implementations§
Source§impl<'a> Clone for ScreenView<'a>
impl<'a> Clone for ScreenView<'a>
Source§fn clone(&self) -> ScreenView<'a>
fn clone(&self) -> ScreenView<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more