From 62676cca369d51771c014bb24e39224249fccb59 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Wed, 8 Mar 2023 13:20:46 +0900 Subject: [PATCH] Support colorize again --- src/spinner.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spinner.cr b/src/spinner.cr index 9c3031d..653817e 100644 --- a/src/spinner.cr +++ b/src/spinner.cr @@ -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"