Allow setting callback for push char

This commit is contained in:
Jianfeng Jiang
2023-07-26 16:27:24 +08:00
committed by Tate, Hongliang Tian
parent a088acd0ec
commit 36281eb1eb
2 changed files with 10 additions and 9 deletions

View File

@ -50,7 +50,7 @@ impl Tty {
}
pub fn receive_char(&self, item: u8) {
self.ldisc.push_char(item);
self.ldisc.push_char(item, |content| print!("{}", content));
}
}