comparison runtime/doc/eval.txt @ 18170:4ac8161e92e0 v8.1.2080

patch 8.1.2080: the terminal API is limited and can't be disabled Commit: https://github.com/vim/vim/commit/d2842ea60bd608b7f9ec93c77d3f36a8e3bf5fe9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 26 23:08:54 2019 +0200 patch 8.1.2080: the terminal API is limited and can't be disabled Problem: The terminal API is limited and can't be disabled. Solution: Add term_setapi() to set the function prefix. (Ozaki Kiichi, closes #2907)
author Bram Moolenaar <Bram@vim.org>
date Thu, 26 Sep 2019 23:15:05 +0200
parents 1e5672da6a69
children 03b854983b14
comparison
equal deleted inserted replaced
18169:6ad8949a205d 18170:4ac8161e92e0
1 *eval.txt* For Vim version 8.1. Last change: 2019 Sep 19 1 *eval.txt* For Vim version 8.1. Last change: 2019 Sep 26
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
2817 term_gettitle({buf}) String get the title of a terminal 2817 term_gettitle({buf}) String get the title of a terminal
2818 term_gettty({buf}, [{input}]) String get the tty name of a terminal 2818 term_gettty({buf}, [{input}]) String get the tty name of a terminal
2819 term_list() List get the list of terminal buffers 2819 term_list() List get the list of terminal buffers
2820 term_scrape({buf}, {row}) List get row of a terminal screen 2820 term_scrape({buf}, {row}) List get row of a terminal screen
2821 term_sendkeys({buf}, {keys}) none send keystrokes to a terminal 2821 term_sendkeys({buf}, {keys}) none send keystrokes to a terminal
2822 term_setapi({buf}, {expr}) none set |terminal-api| function name prefix
2822 term_setansicolors({buf}, {colors}) 2823 term_setansicolors({buf}, {colors})
2823 none set ANSI palette in GUI color mode 2824 none set ANSI palette in GUI color mode
2824 term_setkill({buf}, {how}) none set signal to stop job in terminal 2825 term_setkill({buf}, {how}) none set signal to stop job in terminal
2825 term_setrestore({buf}, {command}) none set command to restore terminal 2826 term_setrestore({buf}, {command}) none set command to restore terminal
2826 term_setsize({buf}, {rows}, {cols}) 2827 term_setsize({buf}, {rows}, {cols})
3260 *bufnr()* 3261 *bufnr()*
3261 bufnr([{expr} [, {create}]]) 3262 bufnr([{expr} [, {create}]])
3262 The result is the number of a buffer, as it is displayed by 3263 The result is the number of a buffer, as it is displayed by
3263 the ":ls" command. For the use of {expr}, see |bufname()| 3264 the ":ls" command. For the use of {expr}, see |bufname()|
3264 above. 3265 above.
3266
3265 If the buffer doesn't exist, -1 is returned. Or, if the 3267 If the buffer doesn't exist, -1 is returned. Or, if the
3266 {create} argument is present and not zero, a new, unlisted, 3268 {create} argument is present and not zero, a new, unlisted,
3267 buffer is created and its number is returned. 3269 buffer is created and its number is returned. Example: >
3270 let newbuf = bufnr('Scratch001', 1)
3271 < Using an empty name uses the current buffer. To create a new
3272 buffer with an empty name use |bufadd()|.
3273
3268 bufnr("$") is the last buffer: > 3274 bufnr("$") is the last buffer: >
3269 :let last_buffer = bufnr("$") 3275 :let last_buffer = bufnr("$")
3270 < The result is a Number, which is the highest buffer number 3276 < The result is a Number, which is the highest buffer number
3271 of existing buffers. Note that not all buffers with a smaller 3277 of existing buffers. Note that not all buffers with a smaller
3272 number necessarily exist, because ":bwipeout" may have removed 3278 number necessarily exist, because ":bwipeout" may have removed