terminal: Correctly set K_ON on keyboard enable

This commit is contained in:
Kenny Levinsen 2020-08-02 17:47:34 +02:00
parent eace556aa8
commit b731b18e0a

View file

@ -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));