Skip to content

Instantly share code, notes, and snippets.

View Gweronx's full-sized avatar
🌴

LJ Gweronx

🌴
View GitHub Profile
@deadPix3l
deadPix3l / curses.py
Created March 10, 2017 14:37
Curses cheatsheet
#!/usr/bin/env python
import curses
# see 2/howto/curses.html for info.
# look into curses.textpad, which turns a window into a textbox with bindings
# look into curses.ascii for easier char handing
# the curses magical setup
stdscr = curses.initscr() # setup intial window
curses.noecho() # dont echo keystrokes