Don't add a newline at the end of the size output

This commit is contained in:
Kovid Goyal 2018-05-28 14:19:12 +05:30
parent 5f7bc8bff2
commit daafea7f7e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -256,7 +256,7 @@ def main(args=sys.argv):
screen_size_function.ans = None
with open('/dev/tty') as tty:
ss = screen_size_function(tty)()
print('{}x{}'.format(ss.width, ss.height))
print('{}x{}'.format(ss.width, ss.height), end='')
raise SystemExit(0)
signal.signal(signal.SIGWINCH, lambda signum, frame: setattr(screen_size, 'changed', True))