summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-11 16:24:50 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-11 16:24:50 +0200
commite41e3b41f991bd610f889dea57676526704fea5f (patch)
treebfe0901e8daf63928bae6458eb9b4c319c027c05 /runtime
parentf1237f18143d9fe5b2a6ce981dee415736858789 (diff)
downloadvim-git-e41e3b41f991bd610f889dea57676526704fea5f.tar.gz
patch 8.0.0898: can't use the alternate screen in a terminal windowv8.0.0898
Problem: Can't use the alternate screen in a terminal window. Solution: Initialze the alternate screen. (Yasuhiro Matsumoto, closes #1957) Add term_getaltscreen().
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index a98958b15..806f0cd68 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2369,6 +2369,7 @@ tagfiles() List tags files used
tan({expr}) Float tangent of {expr}
tanh({expr}) Float hyperbolic tangent of {expr}
tempname() String name for a temporary file
+term_getaltscreen({buf}) Number get the alternate screen flag
term_getattr({attr}, {what}) Number get the value of attribute {what}
term_getcursor({buf}) List get the cursor position of a terminal
term_getjob({buf}) Job get the job associated with a terminal
@@ -7914,6 +7915,12 @@ tempname() *tempname()* *temp-file-name*
For MS-Windows forward slashes are used when the 'shellslash'
option is set or when 'shellcmdflag' starts with '-'.
+term_getaltscreen({buf}) *term_getaltscreen()*
+ Returns 1 if the terminal of {buf} is using the alternate
+ screen.
+ {buf} is used as with |term_getsize()|.
+ {only available when compiled with the |+terminal| feature}
+
term_getattr({attr}, {what}) *term_getattr()*
Given {attr}, a value returned by term_scrape() in the "attr"
item, return whether {what} is on. {what} can be one of: