[pypy-svn] r73158 - pypy/trunk/pypy/tool
fijal at codespeak.net
fijal at codespeak.net
Tue Mar 30 06:47:44 CEST 2010
Author: fijal
Date: Tue Mar 30 06:47:42 2010
New Revision: 73158
Modified:
pypy/trunk/pypy/tool/terminal.py
Log:
Provide some defaults if curses is not there
Modified: pypy/trunk/pypy/tool/terminal.py
==============================================================================
--- pypy/trunk/pypy/tool/terminal.py (original)
+++ pypy/trunk/pypy/tool/terminal.py Tue Mar 30 06:47:42 2010
@@ -25,8 +25,8 @@
# List of numeric capabilities
VALUES = {
- 'COLUMNS':'cols', # Width of the terminal (None for unknown)
- 'LINES':'lines', # Height of the terminal (None for unknown)
+ 'COLUMNS':'cols', # Width of the terminal (80 for unknown)
+ 'LINES':'lines', # Height of the terminal (25 for unknown)
'MAX_COLORS': 'colors',
}
@@ -37,8 +37,9 @@
setattr(MODULE, 'BG_%s' % color, '')
for control in CONTROLS:
setattr(MODULE, control, '')
- for value in VALUES:
- setattr(MODULE, value, None)
+ MODULE.COLUMNS = 80
+ MODULE.LINES = 25
+ MODULE.MAX_COLORS = 1
def setup():
"""Set the terminal control strings"""
More information about the Pypy-commit
mailing list