WIP fixing deadlocks in kernel

This commit is contained in:
2025-09-11 17:36:38 -06:00
parent 70ecbcafc3
commit 718bcd6b5b
7 changed files with 124 additions and 78 deletions

View File

@@ -27,29 +27,29 @@ pub async fn main() {
let mut text = vec!['H', 'E', 'L', 'L', 'O'];
loop {
Text::with_alignment(
&text.iter().cloned().collect::<String>(),
display.bounding_box().center() + Point::new(0, 15),
character_style,
Alignment::Center,
)
.draw(&mut display)
.unwrap();
// loop {
Text::with_alignment(
&text.iter().cloned().collect::<String>(),
display.bounding_box().center() + Point::new(0, 15),
character_style,
Alignment::Center,
)
.draw(&mut display)
.unwrap();
if let Some(event) = get_key() {
print("User got event");
match event.key {
KeyCode::Char(ch) => {
text.push(ch);
}
KeyCode::Backspace => {
text.pop();
}
_ => (),
if let Some(event) = get_key() {
print("User got event");
match event.key {
KeyCode::Char(ch) => {
text.push(ch);
}
KeyCode::Backspace => {
text.pop();
}
_ => (),
}
}
// }
}
#[unsafe(no_mangle)]