Skip to content

Commit

Permalink
kern: console: Print default caret notation output for more chars
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Mar 1, 2025
1 parent 285392c commit f30fb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/modules/dev/console/console.v
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ fn add_to_buf_char(_c u8, echo bool) {
if echo && console_termios.c_lflag & termios.echo != 0 {
if is_printable(c) {
print('${c:c}')
} else if c >= 0x01 && c <= 0x1a {
} else if c >= 0x01 && c <= 0x1f {
print('^${c + 0x40:c}')
}
}
Expand Down

0 comments on commit f30fb34

Please sign in to comment.