import { nvim_chan_send } from "https://deno.land/x/denops_std@v4.1.4/function/nvim/mod.ts";
Send data to channel id
. For a job, it writes it to the stdin of the
process. For the stdio channel |channel-stdio|, it writes to Nvim's
stdout. For an internal terminal instance (|nvim_open_term()|) it writes
directly to terminal output. See |channel-bytes| for more information.
This function writes raw data, not RPC messages. If the channel was
created with rpc=true
then the channel expects RPC messages, use
|vim.rpcnotify()| and |vim.rpcrequest()| instead.
Attributes: ~
|RPC| only
|vim.api| only
Parameters: ~
{chan} id of the channel
{data} data to write. 8-bit clean: can contain NUL bytes.