summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index ebb107d..3da7c56 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;