From a80f9a1b97e1be194cb91a3b78717b0824d3bce8 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Fri, 27 Mar 2026 16:59:00 -0700 Subject: fully implement the first-nonblank-column thing for H and L surprisingly intricate, but although it looks messy now, this approach will clean up nicely Force-Push: yes Change-Id: Ic9c90982787a58110ec0a189844742a1e6c2216f --- src/terminal.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/terminal.rs') diff --git a/src/terminal.rs b/src/terminal.rs index 1ba2b01..300fcfb 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -100,7 +100,9 @@ impl Terminal { } pub async fn read_char(&mut self) -> Result { - encoding::read_utf8_char(&mut self.stdin).await + let decode = encoding::read_utf8_char(&mut self.stdin).await?; + + Ok(decode.c) } pub async fn do_escape(&mut self, escape_type: EscapeType, code: &str, -- cgit 1.4.1