Mercurial > vim
comparison src/os_unix.c @ 24242:d3cabf12c991 v8.2.2662
patch 8.2.2662: there is no way to avoid some escape sequences
Commit: https://github.com/vim/vim/commit/7007e31bde75b6360a1b54c7572e4f855458f37d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 27 12:11:33 2021 +0100
patch 8.2.2662: there is no way to avoid some escape sequences
Problem: There is no way to avoid some escape sequences.
Solution: Suppress escape sequences when the --not-a-term argument is used.
(Gary Johnson)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Mar 2021 12:15:04 +0100 |
parents | a77ea73f4db5 |
children | bebc295010b8 |
comparison
equal
deleted
inserted
replaced
24241:2caf37eac41b | 24242:d3cabf12c991 |
---|---|
3341 mch_errmsg("\r\n"); | 3341 mch_errmsg("\r\n"); |
3342 } | 3342 } |
3343 else | 3343 else |
3344 out_char('\n'); | 3344 out_char('\n'); |
3345 } | 3345 } |
3346 else | 3346 else if (!is_not_a_term()) |
3347 { | 3347 { |
3348 restore_cterm_colors(); // get original colors back | 3348 restore_cterm_colors(); // get original colors back |
3349 msg_clr_eos_force(); // clear the rest of the display | 3349 msg_clr_eos_force(); // clear the rest of the display |
3350 windgoto((int)Rows - 1, 0); // may have moved the cursor | 3350 windgoto((int)Rows - 1, 0); // may have moved the cursor |
3351 } | 3351 } |
3368 if (!gui.in_use) | 3368 if (!gui.in_use) |
3369 #endif | 3369 #endif |
3370 { | 3370 { |
3371 settmode(TMODE_COOK); | 3371 settmode(TMODE_COOK); |
3372 #ifdef FEAT_TITLE | 3372 #ifdef FEAT_TITLE |
3373 // restore xterm title and icon name | 3373 if (!is_not_a_term()) |
3374 mch_restore_title(SAVE_RESTORE_BOTH); | 3374 { |
3375 term_pop_title(SAVE_RESTORE_BOTH); | 3375 // restore xterm title and icon name |
3376 mch_restore_title(SAVE_RESTORE_BOTH); | |
3377 term_pop_title(SAVE_RESTORE_BOTH); | |
3378 } | |
3376 #endif | 3379 #endif |
3377 /* | 3380 /* |
3378 * When t_ti is not empty but it doesn't cause swapping terminal | 3381 * When t_ti is not empty but it doesn't cause swapping terminal |
3379 * pages, need to output a newline when msg_didout is set. But when | 3382 * pages, need to output a newline when msg_didout is set. But when |
3380 * t_ti does swap pages it should not go to the shell page. Do this | 3383 * t_ti does swap pages it should not go to the shell page. Do this |