Skip to content

Instantly share code, notes, and snippets.

View dbzix's full-sized avatar

Siarhei Akhramenia dbzix

View GitHub Profile
@dbzix
dbzix / color-table.sh
Created June 8, 2024 13:43 — forked from fnky/color-table.sh
Display terminal color table
#!/bin/bash
#
# This file echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
#
@dbzix
dbzix / ANSI.md
Created June 7, 2024 22:38 — forked from FullStackAlex/ANSI.md
ANSI Escape Codes

Escape code / character

An Escape code is a command for a string interpretting programm to treat following characters as a command (but not as simple text, as by default).

There are different notations for an ASCII escape code:

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