os/shell.c: temporary solution to not put ctrl chars on the screen grid

This commit is contained in:
Björn Linse
2017-05-02 19:07:46 +02:00
parent e82cb5de4a
commit 3adcc0c50b

View File

@@ -464,9 +464,10 @@ static void out_data_append_to_screen(char *output, size_t remaining,
continue;
}
// Translate NUL to SOH
if (output[off] == NUL) {
output[off] = 1;
// TODO(bfredl): using msg_puts would be better until
// terminal emulation is implemented.
if (output[off] < 0x20) {
output[off] = ' ';
}
off++;