Changeset 388 for python/vendor/current/Lib/curses
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- Location:
- python/vendor/current/Lib/curses
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Lib/curses/__init__.py
r2 r388 6 6 import curses 7 7 from curses import textpad 8 curses.init win()8 curses.initscr() 9 9 ... 10 10 11 11 """ 12 12 13 __revision__ = "$Id : __init__.py 61064 2008-02-25 16:29:58Z andrew.kuchling$"13 __revision__ = "$Id$" 14 14 15 15 from _curses import * -
python/vendor/current/Lib/curses/has_key.py
r2 r388 183 183 _curses.initscr() 184 184 for key in _capability_names.keys(): 185 system = _curses.has_key(key)185 system = key in _curses 186 186 python = has_key(key) 187 187 if system != python: -
python/vendor/current/Lib/curses/panel.py
r2 r388 4 4 """ 5 5 6 __revision__ = "$Id : panel.py 36560 2004-07-18 06:16:08Z tim_one$"6 __revision__ = "$Id$" 7 7 8 8 from _curses_panel import * -
python/vendor/current/Lib/curses/wrapper.py
r2 r388 18 18 """ 19 19 20 res = None21 20 try: 22 21 # Initialize curses 23 stdscr =curses.initscr()22 stdscr = curses.initscr() 24 23 25 24 # Turn off echoing of keys, and enter cbreak mode, … … 45 44 finally: 46 45 # Set everything back to normal 47 stdscr.keypad(0) 48 curses.echo() 49 curses.nocbreak() 50 curses.endwin() 46 if 'stdscr' in locals(): 47 stdscr.keypad(0) 48 curses.echo() 49 curses.nocbreak() 50 curses.endwin()
Note:
See TracChangeset
for help on using the changeset viewer.