util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] agetty: map NL to CR-NL on output in initial termios settings
@ 2011-11-16  9:54 Dennis Jensen
  2011-11-23 11:08 ` Karel Zak
  0 siblings, 1 reply; 9+ messages in thread
From: Dennis Jensen @ 2011-11-16  9:54 UTC (permalink / raw)
  To: util-linux

This fixes situations where messages "scroll horizontally", making
them unreadable, because agetty has opened and initialized the
terminal.

From: Jacoby Hickerson <hickersonjl@gmail.com>
Signed-off-by: Dennis Jensen <dennis.h.jensen@siemens.com>
---
 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 041e1f7..27edac5 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);
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-01-08 14:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-16  9:54 [PATCH] agetty: map NL to CR-NL on output in initial termios settings Dennis Jensen
2011-11-23 11:08 ` Karel Zak
2011-11-24 17:55   ` [PATCH] agetty: map NL to CR-NL on output in initial termiossettings Dennis Jensen
2011-11-28  9:35     ` Karel Zak
2012-12-10 12:34     ` Dr. Werner Fink
2012-12-19  9:33       ` Karel Zak
2012-12-19 13:29         ` [util-linux] " Dr. Werner Fink
2012-12-19 14:28           ` [PATCH] Move struct chardata and init_chardata to ttyutils Werner Fink
2013-01-08 14:43             ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).