diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 22:07:33 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 22:07:52 +0300 |
| commit | 3a9888cd564dc45d23a7bdd0dba29a6ff1ef48a1 (patch) | |
| tree | 19a36f33ee5813220f70d7df7805c71c3b21f591 /src/pane.rs | |
| parent | c6d8d8351e67a183efda3aae4dc0986e9b1e9a48 (diff) | |
feat: add ansi pane read format
Diffstat (limited to 'src/pane.rs')
| -rw-r--r-- | src/pane.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pane.rs b/src/pane.rs index da90420e..c741c04d 100644 --- a/src/pane.rs +++ b/src/pane.rs @@ -761,14 +761,26 @@ impl PaneRuntime { self.terminal.visible_text() } + pub fn visible_ansi(&self) -> String { + self.terminal.visible_ansi() + } + pub fn recent_text(&self, lines: usize) -> String { self.terminal.recent_text(lines) } + pub fn recent_ansi(&self, lines: usize) -> String { + self.terminal.recent_ansi(lines) + } + pub fn recent_unwrapped_text(&self, lines: usize) -> String { self.terminal.recent_unwrapped_text(lines) } + pub fn recent_unwrapped_ansi(&self, lines: usize) -> String { + self.terminal.recent_unwrapped_ansi(lines) + } + pub fn extract_selection(&self, selection: &crate::selection::Selection) -> Option<String> { self.terminal.extract_selection(selection) } |
