Skip to content

Commit a4c58f3

Browse files
committed
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 b61f6c7 commit a4c58f3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)