Skip to content

Instantly share code, notes, and snippets.

@burke
Last active April 27, 2017 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burke/24b0c1e8a49f0fd2e84c1ec95a8525ce to your computer and use it in GitHub Desktop.
Save burke/24b0c1e8a49f0fd2e84c1ec95a8525ce to your computer and use it in GitHub Desktop.
ESC = "\x1b"
GREEN = ESC + "[32m"
YELLOW = ESC + "[33m"
RED = ESC + "[31m"
BLUE = ESC + "[34m"
RESET = ESC + "[0m"
STAR_GLYPH = "\u{2b51}" # BLACK SMALL STAR (U+2B51)
INFO_GLYPH = "\u{1d4be}" # MATHEMATICAL SCRIPT SMALL I (U+1D4BE)
CHECK_GLYPH = "\u{2713}" # CHECK MARK (U+2713)
X_GLYPH = "\u{2717}" # BALLOT X (U+2717)
STAR = YELLOW + STAR_GLYPH + RESET
INFO = BLUE + INFO_GLYPH + RESET
CHECK = GREEN + CHECK_GLYPH + RESET
X = RED + X_GLYPH + RESET
puts(STAR + " we didn't need to do the thing")
puts(INFO + " you should know a thing, or we are going to do a thing")
puts(CHECK + " we did the thing successfully")
puts(X + " we failed to do the thing")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment