Mercurial > vim
diff runtime/doc/terminal.txt @ 19797:d73d982499ae v8.2.0455
patch 8.2.0455: cannot set the highlight group for a specific terminal
Commit: https://github.com/vim/vim/commit/83d4790a04780328c9c7ad22d18f404a27c11601
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 26 20:34:00 2020 +0100
patch 8.2.0455: cannot set the highlight group for a specific terminal
Problem: Cannot set the highlight group for a specific terminal.
Solution: Add the "highlight" option to term_start(). (closes https://github.com/vim/vim/issues/5818)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 26 Mar 2020 20:45:03 +0100 |
parents | 51bc26d4a393 |
children | 1908e92b02fd |
line wrap: on
line diff
--- a/runtime/doc/terminal.txt +++ b/runtime/doc/terminal.txt @@ -1,4 +1,4 @@ -*terminal.txt* For Vim version 8.2. Last change: 2020 Jan 30 +*terminal.txt* For Vim version 8.2. Last change: 2020 Mar 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -148,7 +148,12 @@ terminal window will start with a white To use a different color the Terminal highlight group can be used, for example: > hi Terminal ctermbg=lightgrey ctermfg=blue guibg=lightgrey guifg=blue -< +The highlight needs to be defined before the terminal is created. Doing it +later, or setting 'wincolor', will only have effect when the program running +in the terminal displays text or clears the terminal. +Instead of Terminal another group can be specified with the "term_highlight" +option for `term_start()`. + *g:terminal_ansi_colors* In GUI mode or with 'termguicolors', the 16 ANSI colors used by default in new terminal windows may be configured using the variable @@ -857,6 +862,8 @@ term_start({cmd} [, {options}]) *term_ have "%d" where the buffer number goes, e.g. "10split|buffer %d"; when not specified "botright sbuf %d" is used + "term_highlight" highlight group to use instead of + "Terminal" "eof_chars" Text to send after all buffer lines were written to the terminal. When not set CTRL-D is used on MS-Windows. For Python