From 3a50fe6dc6ea27a5202c1acec6024beaf37ac5ed Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 18 Jun 2008 21:47:55 -0400 Subject: [PATCH] Make new line return to column 0 --- src/libplybootsplash/ply-window.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.3