summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-02-20 13:38:04 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-02-20 13:38:04 +0900
commitb711d76b8eeffd1c02167f70e857759e99628bf9 (patch)
tree58987617241795948d4a4d86f314c888e7660138
parent4396ab75487676f9d6281599a7392c922da62fa0 (diff)
Choose to use 256-colors when $TERM includes 256 (related: #18)
It turned out that Curses.can_change_color? returns false when $TERM is set to screen-256color, which is perfectly capable of rendering 256 colors.
-rwxr-xr-xfzf2
1 files changed, 1 insertions, 1 deletions
diff --git a/fzf b/fzf
index 2922e4cf..c457566f 100755
--- a/fzf
+++ b/fzf
@@ -514,7 +514,7 @@ class FZF
C.noecho
if @color
- if C.can_change_color? && ENV['TERM'].to_s =~ /256/
+ if ENV['TERM'].to_s =~ /256/
C.init_pair 1, 110, dbg
C.init_pair 2, 108, dbg
C.init_pair 3, 254, 236