diff options
Diffstat (limited to 'rust/src/editor.rs')
-rw-r--r-- | rust/src/editor.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rust/src/editor.rs b/rust/src/editor.rs index 7d83904..6284570 100644 --- a/rust/src/editor.rs +++ b/rust/src/editor.rs @@ -1,5 +1,5 @@ -use std::io::Write; use termion::event::Key; +use crate::bel; #[derive(Debug, Default)] pub struct Editor { @@ -56,8 +56,7 @@ impl Editor { } _ => { - print!("\x07"); - std::io::stdout().flush().unwrap(); + bel::bel(); } }; |