mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 16:05:05 +02:00
Use base64 for args in old rc code as well
This commit is contained in:
@@ -134,9 +134,10 @@ are sent as is, not interpreted for escapes.
|
||||
yield ret
|
||||
|
||||
def chunks(text: str) -> CmdGenerator:
|
||||
data = parse_send_text_bytes(text).decode('utf-8')
|
||||
data = parse_send_text_bytes(text)
|
||||
while data:
|
||||
ret['data'] = f'text:{data[:limit]}'
|
||||
b = base64.standard_b64encode(data[:limit]).decode("ascii")
|
||||
ret['data'] = f'base64:{b}'
|
||||
yield ret
|
||||
data = data[limit:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user