diff options
author | Dennis Jensen | 2011-11-24 18:55:57 +0100 |
---|---|---|
committer | Karel Zak | 2011-11-28 10:34:39 +0100 |
commit | 9c62a2326e6e39a5e759830b0b9d91696166fb45 (patch) | |
tree | e145fc26e86569046ece79c0317606e53bd359b1 /term-utils/agetty.c | |
parent | Merge branch 'master' of https://github.com/maurizio-lombardi/util-linux (diff) | |
download | kernel-qcow2-util-linux-9c62a2326e6e39a5e759830b0b9d91696166fb45.tar.gz kernel-qcow2-util-linux-9c62a2326e6e39a5e759830b0b9d91696166fb45.tar.xz kernel-qcow2-util-linux-9c62a2326e6e39a5e759830b0b9d91696166fb45.zip |
agetty: map NL to CR-NL on output in initial termiossettings
From: Jacoby Hickerson <hickersonjl@gmail.com>
Signed-off-by: Dennis Jensen <dennis.h.jensen@siemens.com>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r-- | term-utils/agetty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 041e1f7a6..079a737f9 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1091,7 +1091,8 @@ static void termio_init(struct options *op, struct termios *tp) #else tp->c_iflag = 0; #endif - tp->c_lflag = tp->c_oflag = 0; + tp->c_lflag = 0; + tp->c_oflag &= OPOST | ONLCR; if ((op->flags & F_KEEPCFLAGS) == 0) tp->c_cflag = CS8 | HUPCL | CREAD | (tp->c_cflag & CLOCAL); |