4
1
mirror of https://github.com/DragonOS-Community/DragonOS.git synced 2025-07-11 07:03:23 +00:00

修改 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

@ -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 {