Mercurial > vim
comparison runtime/doc/terminal.txt @ 13626:ab89131d30e0 v8.0.1685
patch 8.0.1685: can't set ANSI colors of a terminal window
commit https://github.com/vim/vim/commit/f59c6e8cee092433d325ba21a107654a8d84f776
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 10 15:59:11 2018 +0200
patch 8.0.1685: can't set ANSI colors of a terminal window
Problem: Can't set ANSI colors of a terminal window.
Solution: Add term_setansicolors(), term_getansicolors() and
g:term_ansi_colors. (Andy Massimino, closes #2747)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 10 Apr 2018 16:00:09 +0200 |
parents | a64485061f75 |
children | 6a84e3d2b810 |
comparison
equal
deleted
inserted
replaced
13625:2caac884de74 | 13626:ab89131d30e0 |
---|---|
134 terminal window will start with a white or black background. | 134 terminal window will start with a white or black background. |
135 | 135 |
136 To use a different color the Terminal highlight group can be used, for | 136 To use a different color the Terminal highlight group can be used, for |
137 example: > | 137 example: > |
138 hi Terminal ctermbg=lightgrey ctermfg=blue guibg=lightgrey guifg=blue | 138 hi Terminal ctermbg=lightgrey ctermfg=blue guibg=lightgrey guifg=blue |
139 < | |
140 *g:terminal_ansi_colors* | |
141 In GUI mode or with |termguicolors|, the 16 ANSI colors used by default in new | |
142 terminal windows may be configured using the variable | |
143 `g:terminal_ansi_colors`, which should be a list of 16 color names or | |
144 hexadecimal color codes, similar to those accepted by |highlight-guifg|. When | |
145 not using GUI colors, the terminal window always uses the 16 ANSI colors of | |
146 the underlying terminal. | |
147 The |term_setansicolors()| function can be used to change the colors, and | |
148 |term_getansicolors()| to get the currently used colors. | |
139 | 149 |
140 | 150 |
141 Syntax ~ | 151 Syntax ~ |
142 | 152 |
143 :[range]ter[minal] [options] [command] *:ter* *:terminal* | 153 :[range]ter[minal] [options] [command] *:ter* *:terminal* |