Skip to content

How to override one specific color of a scheme ? #6061

Closed Answered by avario-cpu
avario-cpu asked this question in Q&A
Discussion options

You must be logged in to vote

Ok so figured it out. For someone else who would want to do this...

  1. get-PSReadLineOption in pwsh will show you the ansi espace codes for the associated powershell syntax. (Same output as above)
  2. The table below will show matches between ansi sequences and "WezTerm colors"

We can then set cherry picked colors this way:

local scheme_name = "tokyonight_moon"
local scheme = wezterm.color.get_builtin_schemes()[scheme_name]

config.color_scheme = scheme_name
scheme.brights[1] = "#ff69b4" -- Set bright black to bright pink for testing (or if u like pink, its ok to like pink)
config.colors = scheme

And if you want custom tab colors, like I do too, I think we then have to use:

config.colors.tab_bar

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@avario-cpu
Comment options

Answer selected by avario-cpu
Comment options

You must be logged in to vote
3 replies
@avario-cpu
Comment options

@bew
Comment options

@Alien-lv426
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
3 participants