-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
bf8480f
commit e59ba42
Showing
3 changed files
with
16 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//! [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) | ||
//! | ||
//! These codes allow command line applications to show colored or styled text in most terminals. | ||
//! Advanced commands can move the cursor or clear the screen. | ||
|
||
pub const RESET: &str = "\x1b[0m"; | ||
pub const BOLD: &str = "\x1b[1m"; | ||
pub const RED: &str = "\x1b[31m"; | ||
pub const GREEN: &str = "\x1b[32m"; | ||
pub const YELLOW: &str = "\x1b[33m"; | ||
pub const BLUE: &str = "\x1b[94m"; | ||
pub const WHITE: &str = "\x1b[97m"; | ||
pub const HOME: &str = "\x1b[H"; | ||
pub const CLEAR: &str = "\x1b[J"; |