diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-03-27 04:12:42 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-03-27 04:12:42 -0700 |
| commit | 9a5e271ccfc8cc91377a58344045173add5a75d5 (patch) | |
| tree | f36e31931db6c484587488f6b93a1a685b0b0c64 /src/terminal.rs | |
| parent | 10327d770eb19764d1e272d2f32a4f0e3edd9062 (diff) | |
the hjkl commands are partly implemented
it's now possible to move the cursor around the screen, but it doesn't interact with the buffer in any way. in particular it isn't forced to stay within the buffer, it just moves wherever. Force-Push: yes Change-Id: If56d044b97c761a2070ffc2cc3f541b35ef9965f
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 d812069..de3ca4f 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -213,7 +213,9 @@ impl Terminal { } // vt220? vt100? - pub async fn do_cursor_position(&mut self, x: u64, y: u64) -> Result<()> { + pub async fn do_cursor_position(&mut self, x: usize, y: usize) + -> Result<()> + { self.do_escape(EscapeType::CSI, "H", &[y + 1, x + 1]).await } |