Skip to content
Myr

Choose to use 256-colors when $TERM includes 256 (related: #18)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Junegunn Choi · committed by Junegunn Choi · parent 4396ab7 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:fzf+1 added-1 removed
512 unmodified lines
513 C.nonl514 C.noecho515516 if @color517 if C.can_change_color? && ENV['TERM'].to_s =~ /256/517 if ENV['TERM'].to_s =~ /256/518 C.init_pair 1, 110, dbg519 C.init_pair 2, 108, dbg520 C.init_pair 3, 254, 236521 C.init_pair 4, 151, 236
502 unmodified lines