escfilter: remove OSC sequences ESC ]8;;link ESC backslash
This commit is contained in:
parent
63e6f17487
commit
8431e41d51
|
@ -1,5 +1,5 @@
|
|||
import sys
|
||||
f = sys.stdin.read()
|
||||
g = f.replace('\\u001b[','ꍟ⦃')
|
||||
g = f.replace('\\u001b[','ꍟ⦃').replace('\\u001b]8;;','').replace('\\u001b\\\\','')
|
||||
sys.stdout.write(g)
|
||||
|
||||
|
|
Loading…
Reference in New Issue