Skip to content

Commit

Permalink
we can only do the -256colors trick if COLORTERM is given aka we are …
Browse files Browse the repository at this point in the history
…not in ssh
  • Loading branch information
grosser committed Sep 25, 2011
1 parent 525df9c commit dd0a4d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ruco
Expand Up @@ -51,7 +51,8 @@ options = parse_options
$ruco_colors = (
not options[:no_colors] and
RbConfig::CONFIG['host_os'] !~ /mswin|mingw/ and # windows
ENV['TERM'] != 'rxvt'
ENV['TERM'] != 'rxvt' and
(ENV['TERM'] != 'xterm' or ENV['COLORTERM']) # we can convert xterm to xterm-256colors if COLORTERM is given
# and ENV['TERM'] !~ /-color$/ # it seems many lion users set xterm-color to fix bugs ...
)

Expand Down

0 comments on commit dd0a4d9

Please sign in to comment.