Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/nvim/mod.ts>nvim_get_chan_info

📚 Standard module for denops.vim
Go to Latest
function nvim_get_chan_info
import { nvim_get_chan_info } from "https://deno.land/x/denops_std@v3.6.0/function/nvim/mod.ts";

Get information about a channel. Return: ~ Dictionary describing a channel, with these keys: • "stream" the stream underlying the channel • "stdio" stdin and stdout of this Nvim instance • "stderr" stderr of this Nvim instance • "socket" TCP/IP socket or named pipe • "job" job with communication over its stdio • "mode" how data received on the channel is interpreted • "bytes" send and receive raw bytes • "terminal" a |terminal| instance interprets ASCII sequences • "rpc" |RPC| communication on the channel is active • "pty" Name of pseudoterminal, if one is used (optional). On a POSIX system, this will be a device path like /dev/pts/1. Even if the name is unknown, the key will still be present to indicate a pty is used. This is currently the case when using winpty on windows. • "buffer" buffer with connected |terminal| instance (optional) • "client" information about the client on the other end of the RPC channel, if it has added it using |nvim_set_client_info()|. (optional)

Parameters

denops: Denops
chan: unknown

Returns

Promise<unknown>