mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Enable gvisor pty test
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
f802ff40c5
commit
40056f0692
@ -130,7 +130,13 @@ impl Device for Tty {
|
||||
Ok(0)
|
||||
}
|
||||
IoctlCmd::TIOCGWINSZ => {
|
||||
// TODO:get window size
|
||||
let winsize = self.ldisc.window_size();
|
||||
write_val_to_user(arg, &winsize)?;
|
||||
Ok(0)
|
||||
}
|
||||
IoctlCmd::TIOCSWINSZ => {
|
||||
let winsize = read_val_from_user(arg)?;
|
||||
self.ldisc.set_window_size(winsize);
|
||||
Ok(0)
|
||||
}
|
||||
_ => todo!(),
|
||||
|
Reference in New Issue
Block a user