degesch: make sure newlines are output correctly
This commit is contained in:
parent
2a180ee084
commit
79f46752d4
|
@ -2094,6 +2094,14 @@ init_terminal (void)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure newlines are output correctly
|
||||||
|
struct termios termios;
|
||||||
|
if (!tcgetattr (tty_fd, &termios))
|
||||||
|
{
|
||||||
|
termios.c_oflag |= ONLCR;
|
||||||
|
(void) tcsetattr (tty_fd, TCSADRAIN, &termios);
|
||||||
|
}
|
||||||
|
|
||||||
g_terminal.lines = tigetnum ("lines");
|
g_terminal.lines = tigetnum ("lines");
|
||||||
g_terminal.columns = tigetnum ("cols");
|
g_terminal.columns = tigetnum ("cols");
|
||||||
update_screen_size ();
|
update_screen_size ();
|
||||||
|
|
Loading…
Reference in New Issue