Support colorize again

This commit is contained in:
kojix2 2023-03-08 13:20:46 +09:00 committed by GitHub
parent 21d0b9b73e
commit 62676cca36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ require "./spinner/*"
class Spin
property delay
property chars : Array(String)
property chars : Array(String) | Array(Colorize::Object(String))
CL = STDOUT.tty? ? "\u001b[0G" : "\u000d \u000d"
CLEAR = STDOUT.tty? ? "\u001b[2K" : "\u000d"