diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 14:03:12 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 14:03:12 +0100 |
| commit | 91d4a3cffdf983cd0915f4610b4e0a9bd47f31ae (patch) | |
| tree | de37da072d58975cef1057e451cc064c6b7be9b8 /adjbacklight.c | |
| parent | Update e-mail (diff) | |
| download | adjbacklight-8.2.3.tar.gz adjbacklight-8.2.3.tar.bz2 adjbacklight-8.2.3.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | adjbacklight.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/adjbacklight.c b/adjbacklight.c index 57495d8..ba503d5 100644 --- a/adjbacklight.c +++ b/adjbacklight.c @@ -261,8 +261,8 @@ init_terminal(pid_t *pid, struct termios *saved_stty) int i; printf("\n\n"); - printf("If the program is abnormally aborted the may be some residual\n"); - printf("effects on the terminal. the following commands should reset it:\n"); + printf("If the program is abnormally aborted there may be some residual\n"); + printf("effects on the terminal. The following commands should reset it:\n"); printf("\n"); printf(" stty sane\n"); printf(" printf '\\ec'\n"); @@ -428,17 +428,17 @@ main(int argc, char *argv[]) } done: - if (isinteractive && pid) { - /* Show cursor */ - printf("%s", "\033[?25h"); - fflush(stdout); + if (isinteractive && pid) { + /* Show cursor */ + printf("%s", "\033[?25h"); + fflush(stdout); - /* `stty icanon echo` */ - if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &saved_stty)) { - fprintf(stderr, "%s: tcsetattr <stdin>: %s\n", argv0, strerror(errno)); - return 1; - } - } + /* `stty icanon echo` */ + if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &saved_stty)) { + fprintf(stderr, "%s: tcsetattr <stdin>: %s\n", argv0, strerror(errno)); + return 1; + } + } - return 0; + return 0; } |
