Skip to content

How to use indexed colours with colour scheme #1441

Answered by wez
dylan-hoefsloot asked this question in Q&A
Discussion options

You must be logged in to vote

I'd suggest something like this if you're using a TOML file for the color scheme:

[colors]
foreground = "#bbbbbb"
background = "#000000"
cursor_bg = "#bbbbbb"
cursor_border = "#bbbbbb"
cursor_fg = "#ffffff"
selection_bg = "#b5d5ff"
selection_fg = "#000000"

ansi = ["#000000","#bb0000","#00bb00","#bbbb00","#0000bb","#bb00bb","#00bbbb","#bbbbbb"]
brights = ["#555555","#ff5555","#55ff55","#ffff55","#5555ff","#ff55ff","#55ffff","#ffffff"]

[colors.indexed]
136 = "orange"
printf "\x1b[48;5;136mI am 136\x1b[0m"

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dylan-hoefsloot
Comment options

@wez
Comment options

@dylan-hoefsloot
Comment options

@wez
Comment options

Answer selected by dylan-hoefsloot
@dylan-hoefsloot
Comment options

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