From 49a7def10670fb8c96936d0fba09e3ed2c303f6c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 17 Nov 2021 01:01:26 -0500 Subject: position the cursor correctly for running commands it shouldn't always go at the end --- src/readline.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/readline.rs') diff --git a/src/readline.rs b/src/readline.rs index 2040c10..be05533 100644 --- a/src/readline.rs +++ b/src/readline.rs @@ -87,6 +87,9 @@ impl Readline { ); out.reset_attributes(); out.move_to(self.size.0 - 1, self.prompt_width() + self.pos_width()); + if focus { + out.write(b"\x1b[?25h"); + } Ok(()) } -- cgit v1.2.3-54-g00ecf