mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
cleanup some local echo artifacts
This commit is contained in:
parent
0463629a0a
commit
101084a822
1 changed files with 3 additions and 3 deletions
|
|
@ -96,10 +96,10 @@ fn uart_handler(_irq_no: usize, _arg: *mut usize) {
|
||||||
}
|
}
|
||||||
if unsafe { KBD_CONN != 0 } {
|
if unsafe { KBD_CONN != 0 } {
|
||||||
let c = char::from_u32(c as u32).unwrap_or('.');
|
let c = char::from_u32(c as u32).unwrap_or('.');
|
||||||
print!("{}", c); // local echo
|
|
||||||
// naked carriage return
|
|
||||||
if c == '\r' {
|
if c == '\r' {
|
||||||
println!(" "); // line feed with carriage return
|
println!(""); // add line feed to carriage return
|
||||||
|
} else {
|
||||||
|
print!("{}", c); // local echo
|
||||||
}
|
}
|
||||||
xous::try_send_message(unsafe { KBD_CONN }, xous::Message::new_scalar(0, c as usize, 0, 0, 0))
|
xous::try_send_message(unsafe { KBD_CONN }, xous::Message::new_scalar(0, c as usize, 0, 0, 0))
|
||||||
.ok();
|
.ok();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue