<s> """<STR_LIT>""" <EOL> import curses <EOL> def wrapper ( func , * args , ** kwds ) : <EOL> """<STR_LIT>""" <EOL> res = None <EOL> try : <EOL> stdscr = curses . initscr ( ) <EOL> curses . noecho ( ) <EOL> curses . cbreak ( ) <EOL> stdscr . keypad ( <NUM_LIT:1> ) <EOL> try : <EOL> curses . start_color ( ) <EOL> except : <EOL> pass <EOL> return func ( stdscr , * args , ** kwds ) <EOL> finally : <EOL> stdscr . keypad ( <NUM_LIT:0> ) <EOL> curses . echo ( ) <EOL> curses . nocbreak ( ) <EOL> curses . endwin ( ) </s>
