Rename --print-screen-size to --print-window-size

We are reporting the size (inner area) of the terminal window, not the
full screen.
This commit is contained in:
Kovid Goyal 2018-05-28 13:14:42 +05:30
parent 345b3437f4
commit 6570565e2d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -76,10 +76,10 @@ The amount of time (in seconds) to wait for a response form the terminal, when
detecting image display support.
--print-screen-size
--print-window-size
type=bool-set
Print out the screen size as |_ widthxheight| (in pixels) and quit. This is a
convenience method to query the screen size if using kitty icat from a
Print out the window size as |_ widthxheight| (in pixels) and quit. This is a
convenience method to query the window size if using kitty icat from a
scripting language that cannot make termios calls.
'''
@ -252,7 +252,7 @@ def main(args=sys.argv):
' Directories are scanned recursively for image files.')
args, items = parse_args(args[1:], options_spec, 'image-file ...', msg, '{} icat'.format(appname))
if args.print_screen_size:
if args.print_window_size:
print('{}x{}'.format(screen_size().width, screen_size().height))
raise SystemExit(0)