Skip to content

Instantly share code, notes, and snippets.

View WolsYang's full-sized avatar

WolsYang WolsYang

  • Tainwan-Taipei
View GitHub Profile
@fnky
fnky / ANSI.md
Last active June 14, 2024 21:10
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@claymcleod
claymcleod / pycurses.py
Last active June 15, 2024 04:21
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()