Files
systemd/src/basic
Ray Strode 9fe26523a1 terminal-util: Set OPOST when setting ONLCR
reset_terminal_fd sets certain minimum required terminal attributes
that systemd relies on.

One of those attributes is `ONLCR` which ensures that when a new line
is sent to the terminal, that the cursor not only moves to the next
line, but also moves to the very beginning of that line.

In order for `ONLCR` to work, the terminal needs to perform output
post-processing. That requires an additional attribute, `OPOST`,
which reset_terminal_fd currently fails to ensure is set.

In most cases `OPOST` (and `ONLCR` actually) are both set anyway, so
it's not an issue, but it could be a problem if, e.g., the terminal was
put in raw mode by a program and the program unexpectedly died before
restoring settings.

This commit ensures when `ONLCR` is set `OPOST` is set too, which is
the only thing that really makes sense to do.
2022-12-01 11:29:21 +01:00
..
…
…
2022-11-08 18:21:10 +01:00
…
2022-11-08 13:41:14 +01:00
2022-11-08 18:21:10 +01:00
2022-11-08 18:21:10 +01:00
2022-11-08 18:21:10 +01:00
2022-11-08 18:21:10 +01:00
2022-11-08 18:21:10 +01:00
…
2022-09-13 08:13:27 +02:00
2022-11-09 11:14:10 +01:00
2022-11-09 11:14:10 +01:00
2022-11-08 18:21:10 +01:00
2022-11-08 18:21:10 +01:00
…
2022-07-02 12:46:16 +02:00
2022-11-17 22:16:18 +09:00
2022-11-08 18:21:10 +01:00
2022-08-02 02:43:38 +09:00
2022-11-08 18:21:10 +01:00
2022-07-26 23:41:48 +09:00
2022-01-31 11:50:15 +09:00
2022-11-09 11:14:10 +01:00
2022-11-09 11:14:10 +01:00
2022-11-08 18:21:10 +01:00
…
…
2022-11-08 18:21:10 +01:00
…
2022-09-13 08:13:27 +02:00
2022-03-18 09:42:38 +01:00
…
2022-06-01 03:12:33 +09:00
…
…
2022-09-13 08:13:27 +02:00