diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-11-17 01:01:26 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-11-17 01:01:26 -0500 |
commit | 49a7def10670fb8c96936d0fba09e3ed2c303f6c (patch) | |
tree | bf0a9d033921cc7123bc5b1d119ddf2b06c6b81b /src/readline.rs | |
parent | e8c3b3537fee65813cb914077234aaa46e68916e (diff) | |
download | nbsh-49a7def10670fb8c96936d0fba09e3ed2c303f6c.tar.gz nbsh-49a7def10670fb8c96936d0fba09e3ed2c303f6c.zip |
position the cursor correctly for running commands
it shouldn't always go at the end
Diffstat (limited to 'src/readline.rs')
-rw-r--r-- | src/readline.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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(()) } |