See https://sw.kovidgoyal.net/kitty/graphics-protocol.html
