mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
Use base64 for args in old rc code as well
This commit is contained in:
parent
15a7aeff4d
commit
5d3a9f2628
1 changed files with 3 additions and 2 deletions
|
|
@ -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:]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue