mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 23:54:20 +02:00
Don't add a newline at the end of the size output
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user