aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-02 17:47:34 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-02 17:47:34 +0200
commitb731b18e0a086e65aa25ed2a5e53488076f5ad37 (patch)
treea48e69ca082bc8d5bcc77c78e7a5d205f26a8d0c
parenteace556aa8844e86c525fff9bad3d4cf09bba31b (diff)
terminal: Correctly set K_ON on keyboard enable
-rw-r--r--common/terminal.c2
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));