Show More
@@ -66,7 +66,7 b' def termsize(ui):' | |||||
66 | if not os.isatty(fd): |
|
66 | if not os.isatty(fd): | |
67 | continue |
|
67 | continue | |
68 | arri = fcntl.ioctl(fd, TIOCGWINSZ, '\0' * 8) |
|
68 | arri = fcntl.ioctl(fd, TIOCGWINSZ, '\0' * 8) | |
69 | height, width = array.array('h', arri)[:2] |
|
69 | height, width = array.array(r'h', arri)[:2] | |
70 | if width > 0 and height > 0: |
|
70 | if width > 0 and height > 0: | |
71 | return width, height |
|
71 | return width, height | |
72 | except ValueError: |
|
72 | except ValueError: |
General Comments 0
You need to be logged in to leave comments.
Login now