Show More
@@ -124,10 +124,11 def page(strng, start=0, screen_lines=0, pager_cmd=None): | |||
|
124 | 124 | |
|
125 | 125 | # auto-determine screen size |
|
126 | 126 | if screen_lines <= 0: |
|
127 | if TERM=='xterm' or TERM=='xterm-color': | |
|
127 | if (TERM=='xterm' or TERM=='xterm-color') and sys.platform != 'sunos5': | |
|
128 | 128 | local_use_curses = use_curses |
|
129 | 129 | else: |
|
130 |
# curses causes problems on many terminals other than xterm |
|
|
130 | # curses causes problems on many terminals other than xterm, and | |
|
131 | # some termios calls lock up on Sun OS5. | |
|
131 | 132 | local_use_curses = False |
|
132 | 133 | if local_use_curses: |
|
133 | 134 | import termios |
General Comments 0
You need to be logged in to leave comments.
Login now