From 653c5d682fb23a57cb39255da0164636ddefb7ab Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 17 Sep 2020 23:57:46 +0200 Subject: rust: Proper authentication data generation --- rust/src/editor.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rust/src/editor.rs') 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(); } }; -- cgit v1.2.3-70-g09d2