Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.8.1/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>