Skip to content

Is there a list of the accepted colour values for the git icons? #1645

Closed Answered by ibhagwan
hankertrix asked this question in Q&A
Discussion options

You must be logged in to vote

Since this is a terminal the accepted colors are the term ansi colors:

M.ansi_escseq = {
-- the "\x1b" esc sequence causes issues
-- with older Lua versions
-- clear = "\x1b[0m",
clear = "�[0m",
bold = "�[1m",
italic = "�[3m",
underline = "�[4m",
black = "�[0;30m",
red = "�[0;31m",
green = "�[0;32m",
yellow = "�[0;33m",
blue = "�[0;34m",
magenta = "�[0;35m",
cyan = "�[0;36m",
white = "�[0;37m",
grey = "�[0;90m",
dark_grey = "�[0;97m",

Doesn’t mean you’re limited to these, you can use utils.ansi_from_hl to transform any text using …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hankertrix
Comment options

Answer selected by hankertrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants