local echo on cram target for console

This commit is contained in:
bunnie 2024-06-14 18:21:42 +08:00
parent 0967d686cf
commit 2a0b18884b

View file

@ -97,6 +97,7 @@ fn uart_handler(_irq_no: usize, _arg: *mut usize) {
}
}
if unsafe { KBD_CONN != 0 } {
print!("{}", char::from_u32(c as u32).unwrap_or('.')); // local echo
xous::try_send_message(unsafe { KBD_CONN }, xous::Message::new_scalar(0, c as usize, 0, 0, 0))
.ok();
}