Support colorize again
This commit is contained in:
parent
21d0b9b73e
commit
62676cca36
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ require "./spinner/*"
|
||||||
|
|
||||||
class Spin
|
class Spin
|
||||||
property delay
|
property delay
|
||||||
property chars : Array(String)
|
property chars : Array(String) | Array(Colorize::Object(String))
|
||||||
|
|
||||||
CL = STDOUT.tty? ? "\u001b[0G" : "\u000d \u000d"
|
CL = STDOUT.tty? ? "\u001b[0G" : "\u000d \u000d"
|
||||||
CLEAR = STDOUT.tty? ? "\u001b[2K" : "\u000d"
|
CLEAR = STDOUT.tty? ? "\u001b[2K" : "\u000d"
|
||||||
|
|
Loading…
Reference in a new issue