Navigation Menu

Skip to content

Commit

Permalink
Accept xterm-256color as colorable terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 26, 2018
1 parent eca7faa commit c24e05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/groonga-query-log/command/analyzer/reporter/console.rb
Expand Up @@ -245,7 +245,7 @@ def report_operations(statistic)
def guess_color_availability(output)
return false unless output.tty?
case ENV["TERM"]
when /term(?:-color)?\z/, "screen"
when /term(?:-(?:256)?color)?\z/, "screen"
true
else
return true if ENV["EMACS"] == "t"
Expand Down

0 comments on commit c24e05a

Please sign in to comment.