summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-18 21:47:55 -0400
committerRay Strode <rstrode@redhat.com>2008-06-18 21:47:55 -0400
commit3a50fe6dc6ea27a5202c1acec6024beaf37ac5ed (patch)
tree459e7a5060a8aba2f0d71e3cc8818dbde602fc73 /src
parente219bb6e673136824bf1fd43eabcc0ed06ad2dd8 (diff)
Make new line return to column 0
Diffstat (limited to 'src')
-rw-r--r--src/libplybootsplash/ply-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libplybootsplash/ply-window.c b/src/libplybootsplash/ply-window.c
index 62dd73c..ae9ca76 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;