aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index e0d9e84..87fcfb4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -315,15 +315,17 @@ fn event_loop() {
use ansi::KeyboardInput as Kb;
match ansi::read(se.debug_keystrokes) {
- Kb::Eof => todo!(),
Kb::CtrlA => se.move_to_begin(),
- Kb::CtrlB => todo!(),
+ Kb::CtrlB => {
+ println!(" Ctrl+B is not yet implemented");
+ se.reprint_prompt();
+ },
Kb::CtrlC => {
se.clear_prompt();
se.history_visit = 0;
}
Kb::CtrlE => se.move_to_end(),
- Kb::CtrlD => break,
+ Kb::Eof | Kb::CtrlD => break,
Kb::CtrlL => {
clear_screen();
print!("{}", se.prompt());
@@ -332,7 +334,7 @@ fn event_loop() {
io::stdout().lock().flush().unwrap();
}
Kb::CtrlR => {
- println!("search is not yet implemented");
+ println!(" search is not yet implemented");
se.reprint_prompt();
}
Kb::Key(b'\r' | b'\n') => {
@@ -400,7 +402,7 @@ fn event_loop() {
Direction::Left => se.move_left_word(),
Direction::Right => se.move_right_word(),
_ => {
- println!("Ctrl+{dir:?} not implemented");
+ println!(" Ctrl+{dir:?} not implemented");
se.reprint_prompt();
}
},