From ace515b3f9e4ea956271cad281855f3d9a168da7 Mon Sep 17 00:00:00 2001 From: Yuxuan Zhang Date: Sat, 30 Dec 2023 19:10:58 -0500 Subject: [PATCH] use picocolors instead of terminal control sequence for color marks --- src/node/utils/task.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/node/utils/task.ts b/src/node/utils/task.ts index cd77d4fd..9ceb247a 100644 --- a/src/node/utils/task.ts +++ b/src/node/utils/task.ts @@ -1,8 +1,9 @@ import ora from 'ora' import humanizeDuration from 'humanize-duration' +import c from 'picocolors' -export const okMark = '\x1b[32m✓\x1b[0m' -export const failMark = '\x1b[31m✖\x1b[0m' +export const okMark = c.green('✓') +export const failMark = c.red('✖') export type UpdateHandle = (done: number, total?: number) => any