mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 05:56:32 +00:00
修改 tty 中resize bug (#383)
This commit is contained in:
@ -258,12 +258,15 @@ impl IndexNode for TtyDevice {
|
|||||||
}
|
}
|
||||||
// 输出到屏幕
|
// 输出到屏幕
|
||||||
|
|
||||||
for x in buf {
|
for x in 0..len {
|
||||||
textui_putchar(x as char, FontColor::WHITE, FontColor::BLACK).ok();
|
textui_putchar(buf[x] as char, FontColor::WHITE, FontColor::BLACK).ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
fn resize(&self, _len: usize) -> Result<(), SystemError> {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TtyDevicePrivateData {
|
impl TtyDevicePrivateData {
|
||||||
|
Reference in New Issue
Block a user