-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new box designs 'info', 'warning', and 'critical'
which take advantage of coloring and unicode
- Loading branch information
Showing
3 changed files
with
179 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:DESC | ||
Creates a unicode box which also colors its contents. | ||
|
||
:ARGS | ||
-d critical -i box | ||
:INPUT | ||
Aaargh, let go of me! | ||
:OUTPUT-FILTER | ||
:EXPECTED | ||
[0;31m▄[0m[31m▄[0m[37;41m CRITICAL [0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m | ||
[31m█[37;48;2;128;0;0m [31m█[0m | ||
[31m█[37;48;2;128;0;0m Aaargh, let go of me! [31m█[0m | ||
[31m█[37;48;2;128;0;0m [31m█[0m | ||
[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m | ||
:EOF |
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,15 @@ | ||
:DESC | ||
Removes a unicode box which had colored its contents, restoring the original monochrome text. | ||
|
||
:ARGS | ||
-r | ||
:INPUT | ||
[0;31m▄[0m[31m▀[0m[37;41m CRITICAL [0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m[0;31m▄[0m | ||
[31m█[37;48;2;128;0;0m [31m█[0m | ||
[31m█[37;48;2;128;0;0m Aaargh, let go of me! [31m█[0m | ||
[31m█[37;48;2;128;0;0m [31m█[0m | ||
[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m[31m▀[0m | ||
:OUTPUT-FILTER | ||
:EXPECTED | ||
Aaargh, let go of me! | ||
:EOF |