From 9c62a2326e6e39a5e759830b0b9d91696166fb45 Mon Sep 17 00:00:00 2001 From: Dennis Jensen Date: Thu, 24 Nov 2011 18:55:57 +0100 Subject: agetty: map NL to CR-NL on output in initial termiossettings From: Jacoby Hickerson Signed-off-by: Dennis Jensen --- term-utils/agetty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'term-utils/agetty.c') 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); -- cgit v1.2.3-55-g7522