(original) (raw)

import curses def main(stdscr): y, x = curses.LINES//3, curses.COLS//3 # size is arbitrary box = '\n'.join('+'*x for _ in range(y)) w = stdscr.subwin(y, x+1, y, x) while True: stdscr.clear() w.addstr(0, 0, box) stdscr.getkey() # not required, just avoids a hot loop curses.wrapper(main)