mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
Sanitize contents of remote print
This commit is contained in:
parent
72635c55c5
commit
08d99967dc
1 changed files with 1 additions and 4 deletions
|
|
@ -451,10 +451,7 @@ def cmd_output(screen: Screen, which: CommandOutput = CommandOutput.last_run, as
|
|||
|
||||
def process_remote_print(msg: memoryview) -> str:
|
||||
from base64 import standard_b64decode
|
||||
|
||||
from .cli import green
|
||||
text = standard_b64decode(msg).decode('utf-8', 'replace')
|
||||
return text.replace('\x1b', green(r'\e')).replace('\a', green(r'\a')).replace('\0', green(r'\0'))
|
||||
return replace_c0_codes_except_nl_space_tab(standard_b64decode(msg)).decode('utf-8', 'replace')
|
||||
|
||||
|
||||
class EdgeWidths:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue