From cb3432ebcf3f8c2dafa320df8a08b5b4262fcd62 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Wed, 7 Dec 2022 13:40:55 +0900 Subject: [PATCH] kernel: fix swapped LCUC conversion in tty --- kernel/vfs/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/vfs/tty.c b/kernel/vfs/tty.c index 447cd538..77f03b8e 100644 --- a/kernel/vfs/tty.c +++ b/kernel/vfs/tty.c @@ -77,7 +77,7 @@ void tty_output_process_slave(pty_t * pty, uint8_t c) { } if (c >= 'a' && c <= 'z' && (pty->tios.c_oflag & OLCUC)) { - c = c + 'a' - 'A'; + c = c + 'A' - 'a'; OUT(c); return; }