Skip to content

Instantly share code, notes, and snippets.

View dpengla's full-sized avatar

Dehui Peng dpengla

View GitHub Profile
@dpengla
dpengla / ANSI-escape-sequences.md
Created January 5, 2025 09:12 — forked from ConnerWill/ANSI-escape-sequences.md
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define Employee_LIMIT 20
// enum { Employee_LIMIT_MAX = 20 };
typedef struct {
@dpengla
dpengla / colorscheme-override.md
Created June 25, 2021 09:18 — forked from romainl/colorscheme-override.md
The right way to override any highlighting if you don't want to edit the colorscheme file directly

The right way to override any highlighting if you don't want to edit the colorscheme file directly

Generalities first

Suppose you have weird taste and you absolutely want:

  • your visual selection to always have a green background and black foreground,
  • your active statusline to always have a white background and red foreground,
  • your very own deep blue background.