home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- import curses
-
- def wrapper(func, *args, **kwds):
- res = None
-
- try:
- stdscr = curses.initscr()
- curses.noecho()
- curses.cbreak()
- stdscr.keypad(1)
-
- try:
- curses.start_color()
- except:
- pass
-
- return func(stdscr, *args, **kwds)
- finally:
- stdscr.keypad(0)
- curses.echo()
- curses.nocbreak()
- curses.endwin()
-
-
-