Now screen size is fetched only for output_fd rather than sys.stdout
See https://sw.kovidgoyal.net/kitty/kittens/diff.html