summaryrefslogtreecommitdiffstats
path: root/src/tui/ncurses.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/ncurses.go')
-rw-r--r--src/tui/ncurses.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tui/ncurses.go b/src/tui/ncurses.go
index 051a042c..6a09b24d 100644
--- a/src/tui/ncurses.go
+++ b/src/tui/ncurses.go
@@ -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