diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-02 17:47:34 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-02 17:47:34 +0200 |
commit | b731b18e0a086e65aa25ed2a5e53488076f5ad37 (patch) | |
tree | a48e69ca082bc8d5bcc77c78e7a5d205f26a8d0c | |
parent | eace556aa8844e86c525fff9bad3d4cf09bba31b (diff) |
terminal: Correctly set K_ON on keyboard enable
-rw-r--r-- | common/terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |