Mercurial > vim
comparison runtime/doc/eval.txt @ 11882:69e7379f46db v8.0.0821
patch 8.0.0821: cannot get the title and status of a terminal window
commit https://github.com/vim/vim/commit/b000e328efcf859d14454ffd241d44f6d14f300b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 30 19:38:21 2017 +0200
patch 8.0.0821: cannot get the title and status of a terminal window
Problem: Cannot get the title and status of a terminal window.
Solution: Implement term_gettitle() and term_getstatus().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Jul 2017 19:45:03 +0200 |
parents | 3704ca24c9a2 |
children | 40322e8f07e7 |
comparison
equal
deleted
inserted
replaced
11881:660b536de628 | 11882:69e7379f46db |
---|---|
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_getcursor({buf}) List get the cursor position of a terminal |
2374 term_getjob({buf}) Job get the job associated with a terminal | 2374 term_getjob({buf}) Job get the job associated with a terminal |
2375 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 |
2376 term_getsize({buf}) List get the size of a terminal | 2376 term_getsize({buf}) List get the size of a terminal |
2377 term_getstatus({buf}) String get the status of a terminal | |
2378 term_gettitle({buf}) String get the title of a terminal | |
2377 term_list() List get the list of terminal buffers | 2379 term_list() List get the list of terminal buffers |
2378 term_scrape({buf}[, {row}]) List get row of a terminal screen | 2380 term_scrape({buf}[, {row}]) List get row of a terminal screen |
2379 term_sendkeys({buf}, {keys}) none send keystrokes to a terminal | 2381 term_sendkeys({buf}, {keys}) none send keystrokes to a terminal |
2380 term_start({cmd}, {options}) Job open a terminal window and run a job | 2382 term_start({cmd}, {options}) Job open a terminal window and run a job |
2381 term_wait({buf}) Number wait for screen to be updated | 2383 term_wait({buf}) Number wait for screen to be updated |
7942 the window containing the terminal. | 7944 the window containing the terminal. |
7943 | 7945 |
7944 {buf} must be the buffer number of a terminal window. If the | 7946 {buf} must be the buffer number of a terminal window. If the |
7945 buffer does not exist or is not a terminal window, an empty | 7947 buffer does not exist or is not a terminal window, an empty |
7946 list is returned. | 7948 list is returned. |
7949 | |
7950 term_getstatus({buf}) *term_getstatus()* | |
7951 Get the status of terminal {buf}. This returns a comma | |
7952 separated list of these items: | |
7953 running job is running | |
7954 finished job has finished | |
7955 terminal in Terminal-Normal mode | |
7956 One of "running" or "finished" is always present. | |
7957 | |
7958 {buf} must be the buffer number of a terminal window. If the | |
7959 buffer does not exist or is not a terminal window, an empty | |
7960 string is returned. | |
7961 | |
7962 term_gettitle({buf}) *term_gettitle()* | |
7963 Get the title of terminal {buf}. This is the title that the | |
7964 job in the terminal has set. | |
7965 | |
7966 {buf} must be the buffer number of a terminal window. If the | |
7967 buffer does not exist or is not a terminal window, an empty | |
7968 string is returned. | |
7947 | 7969 |
7948 term_list() *term_list()* | 7970 term_list() *term_list()* |
7949 Return a list with the buffer numbers of all buffers for | 7971 Return a list with the buffer numbers of all buffers for |
7950 terminal windows. | 7972 terminal windows. |
7951 | 7973 |