Method: Jekyll::Utils::Ansi#reset
- Defined in:
- lib/ngage/jekyll/utils/ansi.rb
#reset(str = "") ⇒ Object
Reset the color back to the default color so that you do not leak any colors when you move onto the next line. This is probably normally used as part of a wrapper so that we don’t leak colors.
39 40 41 42 |
# File 'lib/ngage/jekyll/utils/ansi.rb', line 39 def reset(str = "") @ansi_reset ||= format("%c[0m", 27) "#{@ansi_reset}#{str}" end |