diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-27 12:11:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-27 12:11:33 +0100 |
commit | 7007e31bde75b6360a1b54c7572e4f855458f37d (patch) | |
tree | 0119498d79dd4ea241d54d85c1d35ad434ff8fa3 /src/os_unix.c | |
parent | bb5d87c8504588be9c9d2fecc5b6455a2b2f6201 (diff) | |
download | vim-git-7007e31bde75b6360a1b54c7572e4f855458f37d.tar.gz |
patch 8.2.2662: there is no way to avoid some escape sequencesv8.2.2662
Problem: There is no way to avoid some escape sequences.
Solution: Suppress escape sequences when the --not-a-term argument is used.
(Gary Johnson)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 1c8079917..20c61106f 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3343,7 +3343,7 @@ exit_scroll(void) else out_char('\n'); } - else + else if (!is_not_a_term()) { restore_cterm_colors(); // get original colors back msg_clr_eos_force(); // clear the rest of the display @@ -3370,9 +3370,12 @@ mch_exit(int r) { settmode(TMODE_COOK); #ifdef FEAT_TITLE - // restore xterm title and icon name - mch_restore_title(SAVE_RESTORE_BOTH); - term_pop_title(SAVE_RESTORE_BOTH); + if (!is_not_a_term()) + { + // restore xterm title and icon name + mch_restore_title(SAVE_RESTORE_BOTH); + term_pop_title(SAVE_RESTORE_BOTH); + } #endif /* * When t_ti is not empty but it doesn't cause swapping terminal |