Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>term_getline

๐Ÿ“š Standard module for denops.vim
Go to Latest
function term_getline
import { term_getline } from "https://deno.land/x/denops_std@v6.3.0/function/vim/mod.ts";

Get a line of text from the terminal window of {buf}. {buf} is used as with term_getsize().

The first line has {row} one. When {row} is "." the cursor line is used. When {row} is invalid an empty string is returned.

To get attributes of each character use term_scrape().

Can also be used as a method:

GetBufnr()->term_getline(row)

Parameters

denops: Denops
buf: unknown
row: unknown

Returns

Promise<string>