mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 22:36:48 +00:00
解决textui framework初始化成功后串口无法正常换行 (#443)
This commit is contained in:
parent
edaf015400
commit
a0c98cd4df
@ -748,6 +748,7 @@ impl TextuiWindow {
|
|||||||
if !self.flags.contains(WindowFlag::TEXTUI_CHROMATIC) {
|
if !self.flags.contains(WindowFlag::TEXTUI_CHROMATIC) {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
send_to_default_serial8250_port(&[character as u8]);
|
||||||
|
|
||||||
//进行换行操作
|
//进行换行操作
|
||||||
if character == '\n' {
|
if character == '\n' {
|
||||||
@ -831,10 +832,6 @@ impl TextuiWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 输出其他字符
|
|
||||||
|
|
||||||
send_to_default_serial8250_port(&[character as u8]);
|
|
||||||
|
|
||||||
if is_enable_window == true {
|
if is_enable_window == true {
|
||||||
if let TextuiVline::Chromatic(vline) =
|
if let TextuiVline::Chromatic(vline) =
|
||||||
&self.vlines[<LineId as Into<usize>>::into(self.vline_operating)]
|
&self.vlines[<LineId as Into<usize>>::into(self.vline_operating)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user