Using Curses with Python

Python’s curses module provides “terminal handling for character-cell displays”.

import curses
from curses import wrapper


def main(stdscr):
    stdscr.clear()
    stdscr.addstr(11, 32, "Hello CSC 221!")
    stdscr.refresh()
    stdscr.getch()


wrapper(main)