From 9a5e271ccfc8cc91377a58344045173add5a75d5 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Fri, 27 Mar 2026 04:12:42 -0700 Subject: 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 --- 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 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 } -- cgit 1.4.1