Skip to content

Instantly share code, notes, and snippets.

@jim-ec
Last active June 21, 2023 10:37
Show Gist options
  • Save jim-ec/36f73ebb62d9b04cc78f3ee2a604efa2 to your computer and use it in GitHub Desktop.
Save jim-ec/36f73ebb62d9b04cc78f3ee2a604efa2 to your computer and use it in GitHub Desktop.
Terminal Colors

Normal

\033[0m / \u{001B}[0m

Regular Colors

  • Black: \033[0;30m
  • Red: \033[0;31m
  • Green: \033[0;32m
  • Yellow: \033[0;33m
  • Blue: \033[0;34m
  • Purple: \033[0;35m
  • Cyan: \033[0;36m
  • White: \033[0;37m

Bold

\033[1;{30-37}m

Dim

\033[2;{30-37}m

Italic

\033[3;{30-37}m

Underline

\033[4;{30-37}m

Blinking

\033[5;{30-37}m

Background

\033[{40-47}m

High Intensity

\033[0;{90-97}m

Bold High Intensity

\033[1;{90-97}m

High Intensity backgrounds

\033[1;{100-107}m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment