From: Ray Strode Date: Thu, 19 Jun 2008 01:47:55 +0000 (-0400) Subject: Make new line return to column 0 X-Git-Tag: 0.4.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a50fe6dc6ea27a5202c1acec6024beaf37ac5ed;p=thirdparty%2Fplymouth.git Make new line return to column 0 --- diff --git a/src/libplybootsplash/ply-window.c b/src/libplybootsplash/ply-window.c index 62dd73c5..ae9ca76e 100644 --- a/src/libplybootsplash/ply-window.c +++ b/src/libplybootsplash/ply-window.c @@ -257,6 +257,9 @@ ply_window_set_unbuffered_input (ply_window_t *window) cfmakeraw (&term_attributes); + /* Make \n return go to the beginning of the next line */ + term_attributes.c_oflag |= ONLCR; + if (tcsetattr (window->tty_fd, TCSAFLUSH, &term_attributes) != 0) return false;