mirror of
https://github.com/vim/vim
synced 2025-03-16 14:57:52 +01:00
Problem: Vim doesn't work well with TERM=xterm-direct (Andrea Pappacoda) Solution: detect if a terminal supports true-colors and enable termguicolors The terminfo database for xterm-direct contains both the (non-standard) termcap RGB capability and a number of colors == 0x1000000 so it seems either of those two options can be used to detect a terminal capable of displaying true colors. So set the termguicolor option automatically, when either of the two options is detected. (for some reasons, my debian xterm (v393) does not respond to XTGETTCAP query attempts, so falling back to the number of colors seems like a good compromize) fixes: #16327 closes: #16490 Signed-off-by: Christian Brabandt <cb@256bit.org> |
||
---|---|---|
.. | ||
autoload | ||
bitmaps | ||
colors | ||
compiler | ||
doc | ||
ftplugin | ||
icons | ||
import/dist | ||
indent | ||
keymap | ||
lang | ||
macros | ||
pack/dist/opt | ||
plugin | ||
spell | ||
syntax | ||
tools | ||
tutor | ||
bugreport.vim | ||
defaults.vim | ||
delmenu.vim | ||
doc.info | ||
evim.vim | ||
filetype.vim | ||
ftoff.vim | ||
ftplugin.vim | ||
ftplugof.vim | ||
gvim.desktop | ||
gvimrc_example.vim | ||
hi16-action-make.png | ||
hi22-action-make.png | ||
icons.info | ||
indent.vim | ||
indoff.vim | ||
macmap.vim | ||
macros.info | ||
makemenu.vim | ||
menu.vim | ||
mswin.vim | ||
optwin.vim | ||
scripts.vim | ||
synmenu.vim | ||
termcap | ||
tools.info | ||
tutor.info | ||
vim.desktop | ||
vim16x16.gif | ||
vim16x16.png | ||
vim16x16.xpm | ||
vim32x32.gif | ||
vim32x32.png | ||
vim32x32.xpm | ||
vim48x48.gif | ||
vim48x48.png | ||
vim48x48.xpm | ||
vimlogo.cdr | ||
vimlogo.eps | ||
vimlogo.gif | ||
vimlogo.pdf | ||
vimlogo.svg | ||
vimlogo.xpm | ||
vimrc_example.vim |