import { nvim_chan_send } from "https://deno.land/x/denops_std@v3.9.0/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 terimal 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.
Parameters: ~
{chan} id of the channel
{data} data to write. 8-bit clean: can contain NUL bytes.