|
1 | | -*eval.txt* For Vim version 8.0. Last change: 2018 Mar 09 |
| 1 | +*eval.txt* For Vim version 8.0. Last change: 2018 Mar 10 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -2435,6 +2435,7 @@ term_gettty({buf}, [{input}]) String get the tty name of a terminal |
2435 | 2435 | term_list() List get the list of terminal buffers |
2436 | 2436 | term_scrape({buf}, {row}) List get row of a terminal screen |
2437 | 2437 | term_sendkeys({buf}, {keys}) none send keystrokes to a terminal |
| 2438 | +term_setkill({buf}, {how}) none set signal to stop job in terminal |
2438 | 2439 | term_setrestore({buf}, {command}) none set command to restore terminal |
2439 | 2440 | term_start({cmd}, {options}) Job open a terminal window and run a job |
2440 | 2441 | term_wait({buf} [, {time}]) Number wait for screen to be updated |
@@ -8276,6 +8277,8 @@ term_getline({buf}, {row}) *term_getline()* |
8276 | 8277 | The first line has {row} one. When {row} is "." the cursor |
8277 | 8278 | line is used. When {row} is invalid an empty string is |
8278 | 8279 | returned. |
| 8280 | + |
| 8281 | + To get attributes of each character use |term_scrape()|. |
8279 | 8282 | {only available when compiled with the |+terminal| feature} |
8280 | 8283 |
|
8281 | 8284 | term_getscrolled({buf}) *term_getscrolled()* |
@@ -8361,6 +8364,18 @@ term_sendkeys({buf}, {keys}) *term_sendkeys()* |
8361 | 8364 | means the character CTRL-X. |
8362 | 8365 | {only available when compiled with the |+terminal| feature} |
8363 | 8366 |
|
| 8367 | +term_setkill({buf}, {how}) *term_setkill()* |
| 8368 | + When exiting Vim or trying to close the terminal window in |
| 8369 | + another way, {how} defines whether the job in the terminal can |
| 8370 | + be stopped. |
| 8371 | + When {how} is empty (the default), the job will not be |
| 8372 | + stopped, trying to exit will result in |E947|. |
| 8373 | + Otherwise, {how} specifies what signal to send to the job. |
| 8374 | + See |job_stop()| for the values. |
| 8375 | + |
| 8376 | + After sending the signal Vim will wait for up to a second to |
| 8377 | + check that the job actually stopped. |
| 8378 | + |
8364 | 8379 | term_setrestore({buf}, {command}) *term_setrestore()* |
8365 | 8380 | Set the command to write in a session file to restore the job |
8366 | 8381 | in this terminal. The line written in the session file is: > |
@@ -8416,6 +8431,8 @@ term_start({cmd}, {options}) *term_start()* |
8416 | 8431 | "hidden" do not open a window |
8417 | 8432 | "norestore" do not add the terminal window to a |
8418 | 8433 | session file |
| 8434 | + "term_kill" what to do when trying to close the |
| 8435 | + terminal window, see |term_setkill()| |
8419 | 8436 | "term_finish" What to do when the job is finished: |
8420 | 8437 | "close": close any windows |
8421 | 8438 | "open": open window if needed |
|
0 commit comments