From b731b18e0a086e65aa25ed2a5e53488076f5ad37 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 2 Aug 2020 17:47:34 +0200 Subject: terminal: Correctly set K_ON on keyboard enable --- common/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/terminal.c b/common/terminal.c index a46ff14..bcd843d 100644 --- a/common/terminal.c +++ b/common/terminal.c @@ -201,7 +201,7 @@ int terminal_set_keyboard(int vt, bool enable) { log_errorf("could not generate tty path: %s", strerror(errno)); return -1; } - int res = ioctl(fd, KDSKBMODE, enable ? K_OFF : K_OFF); + int res = ioctl(fd, KDSKBMODE, enable ? K_ON : K_OFF); close(fd); if (res == -1) { log_errorf("could not set KD keyboard mode: %s", strerror(errno)); -- cgit v1.2.3