mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 11:19:17 +02:00
Make new line return to column 0
This commit is contained in:
parent
e219bb6e67
commit
3a50fe6dc6
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue