summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-26 20:34:00 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-26 20:34:00 +0100
commit83d4790a04780328c9c7ad22d18f404a27c11601 (patch)
treea8ba50932310b660b95073237ceb1c4fb104e6cf /runtime
parent3ed9efc2b15b624268bcce4e4d312fb35840a12b (diff)
downloadvim-git-83d4790a04780328c9c7ad22d18f404a27c11601.tar.gz
patch 8.2.0455: cannot set the highlight group for a specific terminalv8.2.0455
Problem: Cannot set the highlight group for a specific terminal. Solution: Add the "highlight" option to term_start(). (closes #5818)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/terminal.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index 5c44cd182..ac9d65841 100644
--- 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 or black background.
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_start()*
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