diff options
Diffstat (limited to 'cli/js/colors.ts')
-rw-r--r-- | cli/js/colors.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cli/js/colors.ts b/cli/js/colors.ts index 21539c83e..372e90ba5 100644 --- a/cli/js/colors.ts +++ b/cli/js/colors.ts @@ -31,6 +31,10 @@ export function bold(str: string): string { return run(str, code(1, 22)); } +export function italic(str: string): string { + return run(str, code(3, 23)); +} + export function yellow(str: string): string { return run(str, code(33, 39)); } @@ -38,3 +42,23 @@ export function yellow(str: string): string { export function cyan(str: string): string { return run(str, code(36, 39)); } + +export function red(str: string): string { + return run(str, code(31, 39)); +} + +export function green(str: string): string { + return run(str, code(32, 39)); +} + +export function bgRed(str: string): string { + return run(str, code(41, 49)); +} + +export function white(str: string): string { + return run(str, code(37, 39)); +} + +export function gray(str: string): string { + return run(str, code(90, 39)); +} |