Skip to content

Commit

Permalink
Merging pull request 96
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Doktor <[email protected]>

* github.com:autotest/aexpect:
  astring: Add bracketed paste console codes
  • Loading branch information
ldoktor committed Sep 27, 2022
2 parents 4b16113 + 63c34bf commit d3f01b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aexpect/utils/astring.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def strip_console_codes(output, custom_codes=None):
index = 0
output = f"\x1b[m{output}"
console_codes = "%[G@8]|\\[[@A-HJ-MPXa-hl-nqrsu\\`]"
console_codes += "|\\[[\\d;]+[HJKgqnrm]|#8|\\([B0UK]|\\)"
console_codes += "|\\[[\\d;]+[HJKgqnrm]|#8|\\([B0UK]|\\)|\\[\\?2004[lh]"
if custom_codes is not None and custom_codes not in console_codes:
console_codes += f"|{custom_codes}"
while index < len(output):
Expand Down

0 comments on commit d3f01b1

Please sign in to comment.