윈도우에서 색상 제거
This commit is contained in:
parent
51bdca733d
commit
d2123efbff
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue