-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class AnsiCodes { | ||
/// This is the Unicode escape sequence for the ASCII escape character (ESC). | ||
static const String escape = '\u001b'; | ||
|
||
/// `[0m` - Reset all styles. | ||
static const String reset = '$escape[0m'; | ||
|
||
/// `[30m` - Set text color to gray. | ||
static const String gray = '$escape[30m'; | ||
|
||
/// `[38;5;87m` - Set text color to light blue. Used for native actions. | ||
static const String lightBlue = '$escape[38;5;87m'; | ||
|
||
static String custom(String color) => '$escape[${color}m'; | ||
|
||
static String get green => custom('32'); | ||
static String get yellow => custom('33'); | ||
static String get blue => custom('34'); | ||
static String get magenta => custom('35'); | ||
static String get cyan => custom('36'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters