mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Allow setting callback for push char
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
a088acd0ec
commit
36281eb1eb
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user