mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 13:16:31 +00:00
修改 tty 中resize bug (#383)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user