Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 991b1b6

Browse files
authoredFeb 10, 2023
Add SuperDiff::Configuration#color_enabled= (#138)
Currently, you need to use merge!(), which doesn't look pretty.
1 parent 124fbe9 commit 991b1b6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 

‎README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ end
184184
See [eight_bit_color.rb](lib/super_diff/csi/eight_bit_color.rb)
185185
for the list of available colors.
186186

187+
You can also completely disable colorized output.
188+
189+
``` ruby
190+
SuperDiff.configure do |config|
191+
config.color_enabled = false
192+
end
193+
```
194+
187195
### Disabling the key
188196

189197
You can disable the key by changing the following config (default: true):

‎lib/super_diff/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Configuration
1010
attr_accessor(
1111
:actual_color,
1212
:border_color,
13+
:color_enabled,
1314
:diff_elision_enabled,
1415
:diff_elision_maximum,
1516
:elision_marker_color,

0 commit comments

Comments
 (0)
Please sign in to comment.