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>termopen

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

Spawns {cmd} in a new pseudo-terminal session connected to the current buffer. {cmd} is the same as the one passed to |jobstart()|. This function fails if the current buffer is modified (all buffer contents are destroyed). The {opts} dict is similar to the one passed to |jobstart()|, but the pty, width, height, and TERM fields are ignored: height/width are taken from the current window and $TERM is set to "xterm-256color". Returns the same values as |jobstart()|. See |terminal| for more information.

Parameters

denops: Denops
cmd: unknown
optional
opts: unknown

Returns

Promise<unknown>