From daafea7f7e795b6544697a16b2181022829e2b9e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 28 May 2018 14:19:12 +0530 Subject: [PATCH] Don't add a newline at the end of the size output --- kittens/icat/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/icat/main.py b/kittens/icat/main.py index ff6759373..4c877e011 100755 --- a/kittens/icat/main.py +++ b/kittens/icat/main.py @@ -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))