Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjiezhou committed Nov 21, 2023
1 parent 94ed0b3 commit 42e3ccb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kernel/src/libs/lib_ui/textui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ pub unsafe fn textui_framwork_init() {

send_to_default_serial8250_port("\ntext ui initialized\n\0".as_bytes());
unsafe { TEXTUI_IS_INIT = true };

} else {
panic!("Try to init TEXTUI_FRAMEWORK twice!");
}
Expand Down Expand Up @@ -1359,9 +1360,11 @@ pub fn textui_putstr(
} else {
None
};
// send_to_default_serial8250_port("textui init failedcccccccccccccccc.\n\0".as_bytes());

let mut guard = window.as_ref().map(|w| w.lock());

// send_to_default_serial8250_port("textui init failedeeeeeeeeeeeeeee.\n\0".as_bytes());

for character in string.chars() {
if unsafe { TEXTUI_IS_INIT } {
guard.as_mut().unwrap().textui_putchar_window(
Expand Down

0 comments on commit 42e3ccb

Please sign in to comment.