diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-03-27 09:57:55 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-03-27 09:57:55 -0700 |
| commit | 46b955afbce8997c39bda4e83abcaed2e954e65c (patch) | |
| tree | d5ea7bee4a5fab465d9d5d65fecb962afb8f778e /src/terminal.rs | |
| parent | 916bce453c48f10d42eb3744aa4c62d8ca2c4c69 (diff) | |
there is now a concept of a scroll-top
scrolling is handled in the most naive possible way, which is way too much redrawing and also doesn't have the desired centering behavior for longer movements Force-Push: yes Change-Id: I611b02d25553873a93f2c4c17e303356735581f7
Diffstat (limited to 'src/terminal.rs')
| -rw-r--r-- | src/terminal.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/terminal.rs b/src/terminal.rs index 28e83b3..9188c43 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -205,6 +205,11 @@ impl Terminal { Err(std::io::Error::other("Couldn't read terminal size.")) } } + + // vt100 + pub async fn clear(&mut self) -> Result<()> { + self.do_escape(EscapeType::CSI, "J", &[2]).await + } } |