summaryrefslogtreecommitdiffstats
path: root/include/ttyutils.h
diff options
context:
space:
mode:
authorKarel Zak2013-06-03 14:06:18 +0200
committerKarel Zak2013-06-03 14:06:18 +0200
commitb8b8e76806387f4a8f1b8913159d690258a43c86 (patch)
treed8d3e655439efefe9169a23bb63061319360f90e /include/ttyutils.h
parentagetty: update man page and usage() (diff)
downloadkernel-qcow2-util-linux-b8b8e76806387f4a8f1b8913159d690258a43c86.tar.gz
kernel-qcow2-util-linux-b8b8e76806387f4a8f1b8913159d690258a43c86.tar.xz
kernel-qcow2-util-linux-b8b8e76806387f4a8f1b8913159d690258a43c86.zip
agetty: don't remove ECHOCTL from c_lflag
It's really unexpected that arrows keys move cursor when agetty/login asks for login name or password. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=969458 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/ttyutils.h')
-rw-r--r--include/ttyutils.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/ttyutils.h b/include/ttyutils.h
index 8882af2cb..13495ba96 100644
--- a/include/ttyutils.h
+++ b/include/ttyutils.h
@@ -76,8 +76,8 @@ static inline void reset_virtual_console(struct termios *tp, int flags)
tp->c_oflag |= (OPOST | ONLCR | NL0 | CR0 | TAB0 | BS0 | VT0 | FF0);
tp->c_oflag &= ~(OLCUC | OCRNL | ONOCR | ONLRET | OFILL | \
NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
- tp->c_lflag |= (ISIG | ICANON | IEXTEN | ECHO|ECHOE|ECHOK|ECHOKE);
- tp->c_lflag &= ~(ECHONL|ECHOCTL|ECHOPRT | NOFLSH | TOSTOP);
+ tp->c_lflag |= (ISIG | ICANON | IEXTEN | ECHO|ECHOE|ECHOK|ECHOKE|ECHOCTL);
+ tp->c_lflag &= ~(ECHONL|ECHOPRT | NOFLSH | TOSTOP);
if ((flags & UL_TTY_KEEPCFLAGS) == 0) {
tp->c_cflag |= (CREAD | CS8 | HUPCL);
@@ -122,6 +122,4 @@ static inline void reset_virtual_console(struct termios *tp, int flags)
tp->c_cc[VEOL2] = _POSIX_VDISABLE;
}
-
-
#endif /* UTIL_LINUX_TTYUTILS_H */