diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-03-27 16:59:00 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-03-27 16:59:00 -0700 |
| commit | a80f9a1b97e1be194cb91a3b78717b0824d3bce8 (patch) | |
| tree | a7481653125ce36b7d15a80ee763e87642ae053b /src/terminal.rs | |
| parent | 8d0a78e708dd46aec40d3a06459c86d9c10f1e3b (diff) | |
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
Diffstat (limited to 'src/terminal.rs')
| -rw-r--r-- | src/terminal.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<char> { - 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, |