diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-19 14:47:18 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-19 14:47:18 +0300 |
| commit | cc7c696cd0772e466da403eb4e3f00f4e8d8ae1e (patch) | |
| tree | d8325f7f2fb1ac53613ae56e8215042e6d497dd9 /src/terminal | |
| parent | 3f2a6e743f67bc947cfa06be25df106d00b9ee11 (diff) | |
feat: add configurable pane screen and scrollback clearing (#4383)
Diffstat (limited to 'src/terminal')
| -rw-r--r-- | src/terminal/runtime.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs index 46795791..a10bec78 100644 --- a/src/terminal/runtime.rs +++ b/src/terminal/runtime.rs @@ -270,6 +270,10 @@ impl TerminalRuntime { self.0.scroll_reset(); } + pub fn clear_screen(&self) -> Result<(), String> { + self.0.clear_screen() + } + pub fn set_scroll_offset_from_bottom(&self, lines: usize) { self.0.set_scroll_offset_from_bottom(lines); } |
