From ed31f8283ca62f550da28456bc190250d6495815 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 18 May 2024 22:54:14 -0400 Subject: kernel: tty: Handle input processing better - Fix copying logic in tty_read() - Handle ICANON correctly - Add ECHO c_lflag bit - Add TTY_SOURCE_DEV and TTY_SOURCE_RAW defines Signed-off-by: Ian Moffett --- sys/arch/amd64/isa/i8042.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/arch/amd64/isa/i8042.c') diff --git a/sys/arch/amd64/isa/i8042.c b/sys/arch/amd64/isa/i8042.c index 0f160d3..41b74ef 100644 --- a/sys/arch/amd64/isa/i8042.c +++ b/sys/arch/amd64/isa/i8042.c @@ -234,7 +234,7 @@ kb_isr(void *sf) while (__TEST(inb(I8042_STATUS), I8042_OBUF_FULL)) { data = inb(I8042_DATA); if (scancode_to_chr(data, &c) == 0) { - tty_putc(&g_root_tty, c); + tty_putc(&g_root_tty, c, TTY_SOURCE_DEV); } } spinlock_release(&data_lock); -- cgit v1.2.3