import { term_gettty } from "https://deno.land/x/denops_std@v5.2.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()