##// END OF EJS Templates
Catch termios.error in pager...
Volker Braun -
Show More
@@ -100,7 +100,10 b' def _detect_screen_size(screen_lines_def):'
100 # flags each time), we just save the initial terminal state and
100 # flags each time), we just save the initial terminal state and
101 # unconditionally reset it every time. It's cheaper than making
101 # unconditionally reset it every time. It's cheaper than making
102 # the checks.
102 # the checks.
103 term_flags = termios.tcgetattr(sys.stdout)
103 try:
104 term_flags = termios.tcgetattr(sys.stdout)
105 except termios.error as err:
106 raise TypeError
104
107
105 # Curses modifies the stdout buffer size by default, which messes
108 # Curses modifies the stdout buffer size by default, which messes
106 # up Python's normal stdout buffering. This would manifest itself
109 # up Python's normal stdout buffering. This would manifest itself
General Comments 0
You need to be logged in to leave comments. Login now