*** __init__.py 19 Jul 2004 16:48:55 +0100 1.5 --- __init__.py 13 Jun 2005 19:12:46 +0100 *************** *** 14,19 **** --- 14,20 ---- from _curses import * from curses.wrapper import wrapper + import os as _os # Some constants, most notably the ACS_* ones, are only added to the C # _curses module's dictionary after initscr() is called. (Some *************** *** 25,30 **** --- 26,34 ---- def initscr(): import _curses, curses + # we call setupterm() here because it raises an error + # instead of calling exit() in error cases. + setupterm(term=_os.environ.get("TERM", "unknown")) stdscr = _curses.initscr() for key, value in _curses.__dict__.items(): if key[0:4] == 'ACS_' or key in ('LINES', 'COLS'):