Skip to content

Instantly share code, notes, and snippets.

@signalwerk
Forked from shanimal/ANSIColors.js
Last active April 26, 2024 14:54
Show Gist options
  • Save signalwerk/60bde0af9cf45e8426b64692cb8858c2 to your computer and use it in GitHub Desktop.
Save signalwerk/60bde0af9cf45e8426b64692cb8858c2 to your computer and use it in GitHub Desktop.
ANSIColors
export const ANSIColors = {
reset: "\033[0m",
hicolor: "\033[1m",
underline: "\033[4m",
inverse: "\033[7m",
// foreground colors
black: "\033[30m",
red: "\033[31m",
green: "\033[32m",
yellow: "\033[33m",
blue: "\033[34m",
magenta: "\033[35m",
cyan: "\033[36m",
white: "\033[37m",
// background colors
bg_black: "\033[40m",
bg_red: "\033[41m",
bg_green: "\033[42m",
bg_yellow: "\033[43m",
bg_blue: "\033[44m",
bg_magenta: "\033[45m",
bg_cyan: "\033[46m",
bg_white: "\033[47m",
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment