@@ -2373,6 +2373,7 @@ term_getattr({attr}, {what}) Number get the value of attribute {what}
23732373term_getcursor({buf} ) List get the cursor position of a terminal
23742374term_getjob({buf} ) Job get the job associated with a terminal
23752375term_getline({buf} , {row} ) String get a line of text from a terminal
2376+ term_getscrolled({buf} ) Number get the scroll count of a terminal
23762377term_getsize({buf} ) List get the size of a terminal
23772378term_getstatus({buf} ) String get the status of a terminal
23782379term_gettitle({buf} ) String get the title of a terminal
@@ -2984,6 +2985,11 @@ ch_logfile({fname} [, {mode}]) *ch_logfile()*
29842985 The file is flushed after every message, on Unix you can use
29852986 "tail -f" to see what is going on in real time.
29862987
2988+ This function is not available in the | sandbox | .
2989+ NOTE: the channel communication is stored in the file, be
2990+ aware that this may contain confidential and privacy sensitive
2991+ information, e.g. a password you type in a terminal window.
2992+
29872993
29882994ch_open({address} [, {options} ]) *ch_open()*
29892995 Open a channel to {address} . See | channel | .
@@ -7948,6 +7954,18 @@ term_getline({buf}, {row}) *term_getline()*
79487954 returned.
79497955 {only available when compiled with the | +terminal | feature}
79507956
7957+ term_getscrolled({buf} ) *term_getscrolled()*
7958+ Return the number of lines that scrolled to above the top of
7959+ terminal {buf} . This is the offset between the row number
7960+ used for | term_getline() | and | getline() | , so that: >
7961+ term_getline(buf, N)
7962+ < is equal to: >
7963+ `getline(N + term_getscrolled(buf))
7964+ < (if that line exists).
7965+
7966+ {buf} is used as with | term_getsize() | .
7967+ {only available when compiled with the | +terminal | feature}
7968+
79517969term_getsize({buf} ) *term_getsize()*
79527970 Get the size of terminal {buf} . Returns a list with two
79537971 numbers: [rows, cols]. This is the size of the terminal, not
0 commit comments