Skip to content

Commit d084877

Browse files
ko1st0012
authored andcommitted
Respect NO_COLOR environment variable
irb seems supported `NO_COLOR` so debug.gem also support it. ref: https://no-color.org/ ref: ruby/irb#105
1 parent 3bad805 commit d084877

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/debug/config.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def self.parse_config_value name, valstr
250250
def self.parse_argv argv
251251
config = {
252252
mode: :start,
253+
no_color: (nc = ENV['NO_COLOR']) && !nc.empty?,
253254
}
254255
CONFIG_MAP.each{|key, evname|
255256
if val = ENV[evname]

0 commit comments

Comments
 (0)