summaryrefslogtreecommitdiffstats
path: root/src/readline.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-16 14:10:24 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-16 14:10:24 -0500
commit9edb92d2715a7d0bd67a977454f1c648367dad40 (patch)
treea70d8851de516e81da696991a865e4de2f72d7b7 /src/readline.rs
parent0e102f53da61de230de8b4c4879c046b8c6baf4d (diff)
downloadnbsh-9edb92d2715a7d0bd67a977454f1c648367dad40.tar.gz
nbsh-9edb92d2715a7d0bd67a977454f1c648367dad40.zip
add ^L (or ^E^L) to force-redraw the screen
Diffstat (limited to 'src/readline.rs')
-rw-r--r--src/readline.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/readline.rs b/src/readline.rs
index ceaff0e..2040c10 100644
--- a/src/readline.rs
+++ b/src/readline.rs
@@ -32,6 +32,12 @@ impl Readline {
textmode::Key::Ctrl(b'd') => {
return true;
}
+ textmode::Key::Ctrl(b'l') => {
+ self.action
+ .send(crate::action::Action::ForceRedraw)
+ .await
+ .unwrap();
+ }
textmode::Key::Ctrl(b'm') => {
self.action
.send(crate::action::Action::Run(self.input()))