From: Rob Landley Date: Thu, 24 Aug 2006 20:00:44 +0000 (-0000) Subject: Antti Seppala (with dots over the last two a's) wants our getty to initialize X-Git-Tag: 1_4_0~790 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f78ab5396d57512fdada5c7ad6fc917d9a88c52a;p=oweals%2Fbusybox.git Antti Seppala (with dots over the last two a's) wants our getty to initialize the terminal the way mingetty does instead of the way agetty does. It's a bit ugly for somebody else to be writing to a console sitting at a login: prompt, but it's uglier when newline doesn't work as expected if they do. --- diff --git a/loginutils/getty.c b/loginutils/getty.c index ebb107d4b..3da7c560a 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -474,7 +474,8 @@ static void termio_init(struct termio *tp, int speed, struct options *op) tp->c_cflag |= CLOCAL; } - tp->c_iflag = tp->c_lflag = tp->c_oflag = tp->c_line = 0; + tp->c_iflag = tp->c_lflag = tp->c_line = 0; + tp->c_oflag = OPOST | ONLCR; tp->c_cc[VMIN] = 1; tp->c_cc[VTIME] = 0;