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

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

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

Get the ANSI color palette in use by terminal {buf}. Returns a List of length 16 where each element is a String representing a color in hexadecimal "#rrggbb" format. Also see |term_setansicolors()| and |g:terminal_ansi_colors|. If neither was used returns the default colors. {buf} is used as with |term_getsize()|. If the buffer does not exist or is not a terminal window, an empty list is returned. Can also be used as a |method|: GetBufnr()->term_getansicolors() {only available when compiled with GUI enabled and/or the |+termguicolors| feature}

Parameters

denops: Denops
buf: unknown

Returns

Promise<unknown>