Show More
@@ -124,10 +124,11 b' def page(strng, start=0, screen_lines=0, pager_cmd=None):' | |||||
124 |
|
124 | |||
125 | # auto-determine screen size |
|
125 | # auto-determine screen size | |
126 | if screen_lines <= 0: |
|
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 | local_use_curses = use_curses |
|
128 | local_use_curses = use_curses | |
129 | else: |
|
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 | local_use_curses = False |
|
132 | local_use_curses = False | |
132 | if local_use_curses: |
|
133 | if local_use_curses: | |
133 | import termios |
|
134 | import termios |
General Comments 0
You need to be logged in to leave comments.
Login now