Closed gdupras closed 2 years ago
t_Co
s)PS, I haven't spotted it cause I forcefully set t_Co=256 in my configuration for win32
red bg... I am not sure if we can fix this in vim/colorschemes sub-project:
@chrisbra what do you think about red/blue inversion of colors in console vim with 16c ?
Should we think about workarounds or believe it might be fixed sometimes in the future in vim (if this is bug at all)?
I would guess this is clearly a bug
does it change with 256colors?
interesting :hi Terminal
shows the correct colors.
does it change with 256colors?
It doesn't at all if I use ctermbg
but does change if I use guibg
:
@chrisbra it is not only red/blue, but also cyan/yellow
that is interesting. especially if you throw in https://github.com/vim/vim/issues/9498 (e.g. after :set termguicolors
, :set notermguicolors
) you would need to start specifying the gui
attributes for the terminal 🤦♂️
Wow, how brocken...
FWIW, the red/blue-cyan/yellow switches in the windows console is the reason why we use color names for 16c cterm*g
.
With the default palette, using 1 gives you a dark blue instead of the expected dark red but using darkred
gives you the expected dark red.
That screenshot with the red background makes me think that we may have a conflict of hacks.
@habamax I only have access to an older W10 machine where I can't install the Window console, sorry.
I only have access to an older W10 machine where I can't install the Window console, sorry.
The issue is with regular cmd.exe
not new windows terminal. Although I have changed palette colors for it:
But they are essentially the same (red id reddish, cyan is cyanish etc)
set t_Co=256
or set termguicolors
in their vimrcs (???)I've reported the issue upstream.
Users should be suggested to use
set t_Co=256
orset termguicolors
in their vimrcs
Where would that suggestion be? I suspect most people will never see it.
@gdupras this is not an option now, we're removing bold from tui versions of the colorschemes
The following screenshots were obtained on Windows 10 in cmd.exe.
Steps:
vim --clean colors\blue.vim
:source colors\blue.vim
(or some other colorscheme):terminal
blue.vim
delek.vim
morning.vim
peachpuff.vim
shine.vim