Changeset 391 for python/trunk/Lib/curses
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/curses/__init__.py
r2 r391 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/trunk/Lib/curses/has_key.py
r2 r391 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/trunk/Lib/curses/panel.py
r2 r391 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/trunk/Lib/curses/wrapper.py
r2 r391 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.