[Groonga-commit] groonga/groonga-query-log at c24e05a [master] Accept xterm-256color as colorable terminal

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Mon Feb 26 10:14:43 JST 2018


Kouhei Sutou	2018-02-26 10:14:43 +0900 (Mon, 26 Feb 2018)

  New Revision: c24e05a1b8c6b5d21582fc1d3256a73e709aaf6b
  https://github.com/groonga/groonga-query-log/commit/c24e05a1b8c6b5d21582fc1d3256a73e709aaf6b

  Message:
    Accept xterm-256color as colorable terminal

  Modified files:
    lib/groonga-query-log/command/analyzer/reporter/console.rb

  Modified: lib/groonga-query-log/command/analyzer/reporter/console.rb (+1 -1)
===================================================================
--- lib/groonga-query-log/command/analyzer/reporter/console.rb    2018-02-15 18:50:14 +0900 (f69b03c)
+++ lib/groonga-query-log/command/analyzer/reporter/console.rb    2018-02-26 10:14:43 +0900 (40cfd6c)
@@ -245,7 +245,7 @@ module GroongaQueryLog
         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"
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180226/fc711f09/attachment.htm 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る