mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 19:49:32 +02:00
Opening for reading is sufficient
This commit is contained in:
@@ -254,7 +254,7 @@ def main(args=sys.argv):
|
||||
|
||||
if args.print_window_size:
|
||||
screen_size_function.ans = None
|
||||
with open('/dev/tty', 'w') as tty:
|
||||
with open('/dev/tty') as tty:
|
||||
ss = screen_size_function(tty)()
|
||||
print('{}x{}'.format(ss.width, ss.height))
|
||||
raise SystemExit(0)
|
||||
|
||||
Reference in New Issue
Block a user