mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 06:07:42 +00:00
Do not use 256-color if not supported (#8)
This commit is contained in:
parent
df663c4e41
commit
c1d5f7cef7
2
fzf
2
fzf
@ -446,7 +446,7 @@ class FZF
|
|||||||
C.noecho
|
C.noecho
|
||||||
|
|
||||||
if @color
|
if @color
|
||||||
if C.can_change_color?
|
if C.can_change_color? && ENV['TERM'].to_s =~ /256/
|
||||||
C.init_pair 1, 110, dbg
|
C.init_pair 1, 110, dbg
|
||||||
C.init_pair 2, 108, dbg
|
C.init_pair 2, 108, dbg
|
||||||
C.init_pair 3, 254, 236
|
C.init_pair 3, 254, 236
|
||||||
|
Loading…
Reference in New Issue
Block a user