Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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.9.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>