diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index 0c9f52685b..2106d0db8c 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -43,11 +43,6 @@ #include "time-util.h" #include "utf8.h" -#define ANSI_RESET_CURSOR \ - "\033?25h" /* turn on cursor */ \ - "\033?12l" /* reset cursor blinking */ \ - "\033 1q" /* reset cursor style */ - /* How much to wait for a reply to a terminal sequence */ #define CONSOLE_REPLY_WAIT_USEC (333 * USEC_PER_MSEC) @@ -857,7 +852,6 @@ int vt_disallocate(const char *tty_path) { return fd2; return loop_write_full(fd2, - ANSI_RESET_CURSOR "\033[r" /* clear scrolling region */ "\033[H" /* move home */ "\033[3J" /* clear screen including scrollback, requires Linux 2.6.40 */ @@ -974,7 +968,6 @@ static int terminal_reset_ansi_seq(int fd) { return log_debug_errno(r, "Failed to set terminal to non-blocking mode: %m"); k = loop_write_full(fd, - ANSI_RESET_CURSOR "\033[!p" /* soft terminal reset */ "\033]104\007" /* reset colors */ "\033[?7h" /* enable line-wrapping */