We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6927e3 commit 963e25cCopy full SHA for 963e25c
src/basic/terminal-util.c
@@ -614,6 +614,10 @@ int make_console_stdio(void) {
614
} else
615
(void) terminal_fix_size(fd, fd);
616
617
+ r = terminal_reset_ansi_seq(fd);
618
+ if (r < 0)
619
+ log_warning_errno(r, "Failed to reset terminal using ANSI sequences, ignoring: %m");
620
+
621
r = rearrange_stdio(fd, fd, fd); /* This invalidates 'fd' both on success and on failure. */
622
if (r < 0)
623
return log_error_errno(r, "Failed to make terminal stdin/stdout/stderr: %m");
0 commit comments