terminal: Correctly set K_ON on keyboard enable
This commit is contained in:
parent
eace556aa8
commit
b731b18e0a
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue