Show More
@@ -66,7 +66,7 b' def termsize(ui):' | |||
|
66 | 66 | if not os.isatty(fd): |
|
67 | 67 | continue |
|
68 | 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 | 70 | if width > 0 and height > 0: |
|
71 | 71 | return width, height |
|
72 | 72 | except ValueError: |
General Comments 0
You need to be logged in to leave comments.
Login now