윈도우에서 색상 제거

This commit is contained in:
leedongmyung[desktop] 2023-10-29 20:34:48 +09:00
parent 51bdca733d
commit d2123efbff

View file

@ -103,8 +103,12 @@ class CLI {
static String style(String message,
{Color? color, Color? background, Style? style}) {
return printer.getStyle(message,
color: color, background: background, style: style);
if (Platform.isWindows) {
return message;
} else {
return printer.getStyle(message,
color: color, background: background, style: style);
}
}
static final commandNameSpace = 18;