Open
Description
require "colorize"
foo = "foo".colorize.red
str = "hello #{foo} bar".colorize.underline
str => "\e[4mhello \e[31mfoo\e[0m bar\e[0m"
Because coloring/modes are reset via \e[0m
all attributes are turned off, not just the one that is ending. The correct code sequence should be like "\e[4mhello \e[31mfoo\e[39m bar\e[24m"
. I.e. \e[39m
only resets the foreground color and \e[24m
only resets the underline.
Activity