Mercurial > vim
comparison runtime/doc/eval.txt @ 11876:3704ca24c9a2 v8.0.0818
patch 8.0.0818: cannot get the cursor position of a terminal
commit https://github.com/vim/vim/commit/97870002d30a9846374d1ff7d73fbef351046f20
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 30 18:28:38 2017 +0200
patch 8.0.0818: cannot get the cursor position of a terminal
Problem: Cannot get the cursor position of a terminal.
Solution: Add term_getcursor().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Jul 2017 18:30:05 +0200 |
parents | d444e087b8fd |
children | 69e7379f46db |
comparison
equal
deleted
inserted
replaced
11875:6b4752527e9e | 11876:3704ca24c9a2 |
---|---|
2368 tagfiles() List tags files used | 2368 tagfiles() List tags files used |
2369 tan({expr}) Float tangent of {expr} | 2369 tan({expr}) Float tangent of {expr} |
2370 tanh({expr}) Float hyperbolic tangent of {expr} | 2370 tanh({expr}) Float hyperbolic tangent of {expr} |
2371 tempname() String name for a temporary file | 2371 tempname() String name for a temporary file |
2372 term_getattr({attr}, {what} Number get the value of attribute {what} | 2372 term_getattr({attr}, {what} Number get the value of attribute {what} |
2373 term_getcursor({buf}) List get the cursor position of a terminal | |
2373 term_getjob({buf}) Job get the job associated with a terminal | 2374 term_getjob({buf}) Job get the job associated with a terminal |
2374 term_getline({buf}[, {row}]) String get a line of text from a terminal | 2375 term_getline({buf}[, {row}]) String get a line of text from a terminal |
2375 term_getsize({buf}) List get the size of a terminal | 2376 term_getsize({buf}) List get the size of a terminal |
2376 term_list() List get the list of terminal buffers | 2377 term_list() List get the list of terminal buffers |
2377 term_scrape({buf}[, {row}]) List get row of a terminal screen | 2378 term_scrape({buf}[, {row}]) List get row of a terminal screen |
7907 bold | 7908 bold |
7908 italic | 7909 italic |
7909 underline | 7910 underline |
7910 strike | 7911 strike |
7911 reverse | 7912 reverse |
7913 | |
7914 term_getcursor({buf}) *term_getcursor()* | |
7915 Get the cusor position of terminal {buf}. Returns a list with | |
7916 three numbers: [rows, cols, visible]. "rows" and "cols" are | |
7917 zero based. "visible" is one when the cursor is visible, zero | |
7918 when it is hidden. | |
7919 | |
7920 This is the cursor position of the terminal itself, not of the | |
7921 Vim window. | |
7922 | |
7923 {buf} must be the buffer number of a terminal window. If the | |
7924 buffer does not exist or is not a terminal window, an empty | |
7925 list is returned. | |
7912 | 7926 |
7913 term_getjob({buf}) *term_getjob()* | 7927 term_getjob({buf}) *term_getjob()* |
7914 Get the Job associated with terminal window {buf}. | 7928 Get the Job associated with terminal window {buf}. |
7915 {buf} is used as with |term_getsize()|. | 7929 {buf} is used as with |term_getsize()|. |
7916 | 7930 |