chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
autogen.sh: diet and sync with udev and kmod
[elogind.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index 1cff54708bde44711f7402711e0044e75351bf3f..b4c5e2e65aaaef18d3c3212a39d7f20e440e7601 100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-2465,6
+2465,9
@@
int reset_terminal_fd(int fd) {
/* Disable exclusive mode, just in case */
ioctl(fd, TIOCNXCL);
+ /* Switch to text mode */
+ ioctl(fd, KDSETMODE, KD_TEXT);
+
/* Enable console unicode mode */
ioctl(fd, KDSKBMODE, K_UNICODE);