aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-26 23:15:17 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-27 09:45:32 +0100
commit944e3c06193f6d10baa9ba3021e01626337dd884 (patch)
tree949c05f0259f1d746f68b932139b4573225e179b /runtime
parenta043899ba255524b7421579b9bd6112801f09247 (diff)
downloadrneovim-944e3c06193f6d10baa9ba3021e01626337dd884.tar.gz
rneovim-944e3c06193f6d10baa9ba3021e01626337dd884.tar.bz2
rneovim-944e3c06193f6d10baa9ba3021e01626337dd884.zip
tui: expose terminal type in 'term' option
Since "builtin" terminfo definitions were implemented (7cbf52db1bdf), the decisions made by tui.c and terminfo.c are more relevant. Exposing that decision in the 'term' option helps with troubleshooting. Also: remove code that allowed setting t_Co. `:set t_Co=…` has never worked; the highlight_spec test asserting that nvim_set_option('t_Co') _does_ work makes no sense, and should not have worked.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim_diff.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 026ff6a0fb..c8155f7a68 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -333,9 +333,11 @@ terminal capabilities. Instead Nvim treats the terminal as any other UI. For
example, 'guicursor' sets the terminal cursor style if possible.
*'term'* *E529* *E530* *E531*
-The 'term' option has a fixed value, present only for script compatibility and
-intentionally not the same as any known terminal type name. It should be a
-rare case in Nvim where one needs |term-dependent-settings|.
+'term' reflects the terminal type derived from |$TERM| and other environment
+checks. For debugging only; not reliable during startup. >
+ :echo &term
+"builtin_x" means one of the |builtin-terms| was chosen, because the expected
+terminfo file was not found on the system.
*termcap*
Nvim never uses the termcap database, only |terminfo| and |builtin-terms|.