Skip to content

Instantly share code, notes, and snippets.

@claymcleod
claymcleod / pycurses.py
Last active Oct 26, 2021
Python curses example
View pycurses.py
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()