]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Make new line return to column 0
authorRay Strode <rstrode@redhat.com>
Thu, 19 Jun 2008 01:47:55 +0000 (21:47 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 19 Jun 2008 01:47:55 +0000 (21:47 -0400)
src/libplybootsplash/ply-window.c

index 62dd73c5ce42af868e8dbbf49d074f6fea1488b9..ae9ca76e8078bad91ad1803472ad046c35f029c8 100644 (file)
@@ -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;