home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- __revision__ = '$Id: __init__.py 61064 2008-02-25 16:29:58Z andrew.kuchling $'
- from _curses import *
- from curses.wrapper import wrapper
- import os as _os
- import sys as _sys
-
- def initscr():
- import _curses
- import curses
- setupterm(term = _os.environ.get('TERM', 'unknown'), fd = _sys.__stdout__.fileno())
- stdscr = _curses.initscr()
- for key, value in _curses.__dict__.items():
- if key[0:4] == 'ACS_' or key in ('LINES', 'COLS'):
- setattr(curses, key, value)
- continue
-
- return stdscr
-
-
- def start_color():
- import _curses
- import curses
- retval = _curses.start_color()
- if hasattr(_curses, 'COLORS'):
- curses.COLORS = _curses.COLORS
-
- if hasattr(_curses, 'COLOR_PAIRS'):
- curses.COLOR_PAIRS = _curses.COLOR_PAIRS
-
- return retval
-
-
- try:
- has_key
- except NameError:
- from has_key import has_key
-
-