mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
[tcell] 24-bit color support
TAGS=tcell make install
printf "\x1b[38;2;100;200;250mTRUECOLOR\x1b[m\n" |
TERM=xterm-truecolor fzf --ansi
This commit is contained in:
@@ -295,6 +295,10 @@ func RefreshWindows(windows []*Window) {
|
||||
}
|
||||
|
||||
func PairFor(fg Color, bg Color) ColorPair {
|
||||
// ncurses does not support 24-bit colors
|
||||
if fg.is24() || bg.is24() {
|
||||
return ColDefault
|
||||
}
|
||||
key := (int(fg) << 8) + int(bg)
|
||||
if found, prs := _colorMap[key]; prs {
|
||||
return found
|
||||
|
||||
Reference in New Issue
Block a user