mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Opening for reading is sufficient
This commit is contained in:
parent
8809b8db56
commit
5f7bc8bff2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue