修改 tty 中resize bug (#383)

This commit is contained in:
hanjiezhou
2023-09-16 20:14:56 +08:00
committed by GitHub
parent 71474bc682
commit 1111099746

View File

@ -258,12 +258,15 @@ impl IndexNode for TtyDevice {
}
// 输出到屏幕
for x in buf {
textui_putchar(x as char, FontColor::WHITE, FontColor::BLACK).ok();
for x in 0..len {
textui_putchar(buf[x] as char, FontColor::WHITE, FontColor::BLACK).ok();
}
}
return Ok(());
}
fn resize(&self, _len: usize) -> Result<(), SystemError> {
return Ok(());
}
}
impl TtyDevicePrivateData {