From 46b955afbce8997c39bda4e83abcaed2e954e65c Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Fri, 27 Mar 2026 09:57:55 -0700 Subject: 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 --- src/terminal.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/terminal.rs') 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 + } } -- cgit 1.4.1