Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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@v3.6.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<unknown>