m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 23:03:47 -05:00

Do not use 256-color if not supported (#8)

This commit is contained in:
Junegunn Choi
2013-12-05 12:17:21 +09:00
parent df663c4e41
commit c1d5f7cef7

2
fzf
View File

@@ -446,7 +446,7 @@ class FZF
C.noecho
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 2, 108, dbg
C.init_pair 3, 254, 236