summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-05 22:15:22 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-05 22:15:22 +0200
commit9a993e3c09371bb80d71be62fca53cf954a98f72 (patch)
treee16064177b3a1351cbd0efd97b9904ec8caf772e /runtime
parent3aa67fb453373109132b71eeb488595d651dfb7d (diff)
downloadvim-git-9a993e3c09371bb80d71be62fca53cf954a98f72.tar.gz
patch 8.0.1665: when running a terminal from the GUI 'term' is not usefulv8.0.1665
Problem: When running a terminal from the GUI 'term' is not useful. Solution: Use $TERM in the GUI if it starts with "xterm". (closes #2776)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/terminal.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index f575c82d1..8dc19cbf6 100644
--- a/runtime/doc/terminal.txt
+++ b/runtime/doc/terminal.txt
@@ -352,7 +352,9 @@ On Unix a pty is used to make it possible to run all kinds of commands. You
can even run Vim in the terminal! That's used for debugging, see below.
Environment variables are used to pass information to the running job:
- TERM name of the terminal, from the 'term' option
+ TERM the name of the terminal, from the 'term' option or
+ $TERM in the GUI; falls back to "xterm" if it does not
+ start with "xterm"
ROWS number of rows in the terminal initially
LINES same as ROWS
COLUMNS number of columns in the terminal initially