Skip to main content
Module

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

📚 Standard module for denops.vim
Go to Latest
function term_gettty
import { term_gettty } from "https://deno.land/x/denops_std@v6.4.0/function/vim/mod.ts";

Get the name of the controlling terminal associated with terminal window {buf}. {buf} is used as with term_getsize().

When {input} is omitted or 0, return the name for writing (stdout). When {input} is 1 return the name for reading (stdin). On UNIX, both return same name.

Can also be used as a method:

GetBufnr()->term_gettty()

Parameters

denops: Denops
buf: unknown
optional
input: unknown

Returns

Promise<string>