1- *eval.txt* For Vim version 8.0. Last change: 2017 Aug 01
1+ *eval.txt* For Vim version 8.0. Last change: 2017 Aug 03
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2376,6 +2376,7 @@ term_getline({buf}, {row}) String get a line of text from a terminal
23762376term_getsize({buf} ) List get the size of a terminal
23772377term_getstatus({buf} ) String get the status of a terminal
23782378term_gettitle({buf} ) String get the title of a terminal
2379+ term_gettty({buf} ) String get the tty name of a terminal
23792380term_list() List get the list of terminal buffers
23802381term_scrape({buf} , {row} ) List get row of a terminal screen
23812382term_sendkeys({buf} , {keys} ) none send keystrokes to a terminal
@@ -5192,6 +5193,8 @@ job_info({job}) *job_info()*
51925193 Returns a Dictionary with information about {job} :
51935194 "status" what | job_status() | returns
51945195 "channel" what | job_getchannel() | returns
5196+ "process" process ID
5197+ "tty" controlling terminal name, empty when none
51955198 "exitval" only valid when "status" is "dead"
51965199 "exit_cb" function to be called on exit
51975200 "stoponexit" | job-stoponexit |
@@ -7930,6 +7933,7 @@ term_getcursor({buf}) *term_getcursor()*
79307933term_getjob({buf} ) *term_getjob()*
79317934 Get the Job associated with terminal window {buf} .
79327935 {buf} is used as with | term_getsize() | .
7936+ Returns | v:null | when there is no job.
79337937
79347938term_getline({buf} , {row} ) *term_getline()*
79357939 Get a line of text from the terminal window of {buf} .
@@ -7943,9 +7947,9 @@ term_getsize({buf}) *term_getsize()*
79437947 numbers: [rows, cols]. This is the size of the terminal, not
79447948 the window containing the terminal.
79457949
7946- {buf} must be the buffer number of a terminal window. If the
7947- buffer does not exist or is not a terminal window, an empty
7948- list is returned.
7950+ {buf} must be the buffer number of a terminal window. Use an
7951+ empty string for the current buffer. If the buffer does not
7952+ exist or is not a terminal window, an empty list is returned.
79497953
79507954term_getstatus({buf} ) *term_getstatus()*
79517955 Get the status of terminal {buf} . This returns a comma
@@ -7967,6 +7971,11 @@ term_gettitle({buf}) *term_gettitle()*
79677971 buffer does not exist or is not a terminal window, an empty
79687972 string is returned.
79697973
7974+ term_gettty({buf} ) *term_gettty()*
7975+ Get the name of the controlling terminal associated with
7976+ terminal window {buf} .
7977+ {buf} is used as with | term_getsize() | .
7978+
79707979term_list() *term_list()*
79717980 Return a list with the buffer numbers of all buffers for
79727981 terminal windows.
@@ -7982,7 +7991,7 @@ term_scrape({buf}, {row}) *term_scrape()*
79827991 "chars" character(s) at the cell
79837992 "fg" foreground color as #rrggbb
79847993 "bg" background color as #rrggbb
7985- "attr" attributes of the cell, use term_getattr()
7994+ "attr" attributes of the cell, use | term_getattr() |
79867995 to get the individual flags
79877996 "width" cell width: 1 or 2
79887997
0 commit comments