Skip to content

Instantly share code, notes, and snippets.

@tracdi
tracdi / ANSI.md
Created March 31, 2023 04:08 — 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
@tracdi
tracdi / gist:55d6309bda1f70a178b9ba0b18c05aeb
Last active May 14, 2019 07:17 — forked from jtdp/gist:5443498
GIT - Revert file permission
git diff -p \
| grep -E '^(diff|old mode|new mode)' \
| sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
| git apply