Skip to content

Instantly share code, notes, and snippets.

View grymmjack's full-sized avatar

Rick Christy grymmjack

View GitHub Profile
@grymmjack
grymmjack / ANSI-color-codes.h
Created October 25, 2022 03:56 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@grymmjack
grymmjack / ANSI.md
Created September 13, 2022 22:00 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27