home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_408 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  579 b   |  28 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import curses
  5.  
  6. def wrapper(func, *args, **kwds):
  7.     res = None
  8.     
  9.     try:
  10.         stdscr = curses.initscr()
  11.         curses.noecho()
  12.         curses.cbreak()
  13.         stdscr.keypad(1)
  14.         
  15.         try:
  16.             curses.start_color()
  17.         except:
  18.             pass
  19.  
  20.         return func(stdscr, *args, **kwds)
  21.     finally:
  22.         stdscr.keypad(0)
  23.         curses.echo()
  24.         curses.nocbreak()
  25.         curses.endwin()
  26.  
  27.  
  28.