Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>term_getstatus

๐Ÿ“š Standard module for denops.vim
Go to Latest
function term_getstatus
import { term_getstatus } from "https://deno.land/x/denops_std@v6.3.0/function/vim/mod.ts";

Get the status of terminal {buf}. This returns a String with a comma-separated list of these items: running job is running finished job has finished normal in Terminal-Normal mode One of "running" or "finished" is always present.

{buf} must be the buffer number of a terminal window. If the buffer does not exist or is not a terminal window, an empty string is returned.

Can also be used as a method:

GetBufnr()->term_getstatus()

Parameters

denops: Denops
buf: unknown

Returns

Promise<string>