From c1d5f7cef7f998411a35fac430e9ea4f99fb7df3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 5 Dec 2013 12:17:21 +0900 Subject: [PATCH] Do not use 256-color if not supported (#8) --- fzf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fzf b/fzf index 2e53d98..95afd99 100755 --- a/fzf +++ b/fzf @@ -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