mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0850: MS-Windows Terminal has unstable color control
Problem: MS-Windows Terminal has unstable color control. Solution: Do not try to read the old command prompt colortable, use modern VT sequences. (Christopher Plewright, closes #11450, closes #11373)
This commit is contained in:
committed by
Bram Moolenaar
parent
157241e879
commit
38804d6457
@@ -2987,7 +2987,7 @@ term_rgb_color(char_u *s, guicolor_T rgb)
|
||||
vim_snprintf(buf, MAX_COLOR_STR_LEN,
|
||||
(char *)s, RED(rgb), GREEN(rgb), BLUE(rgb));
|
||||
#ifdef FEAT_VTP
|
||||
if (use_wt())
|
||||
if (has_vtp_working())
|
||||
{
|
||||
out_flush();
|
||||
buf[1] = '[';
|
||||
@@ -3001,7 +3001,8 @@ term_rgb_color(char_u *s, guicolor_T rgb)
|
||||
void
|
||||
term_fg_rgb_color(guicolor_T rgb)
|
||||
{
|
||||
term_rgb_color(T_8F, rgb);
|
||||
if (rgb != INVALCOLOR)
|
||||
term_rgb_color(T_8F, rgb);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user