chalk/strip-ansi

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Does not strip `ESC ]0;<TEXT> BEL` #43

msipinski posted onGitHub

According to https://en.wikipedia.org/wiki/ANSI_escape_code#OSC_(Operating_System_Command)_sequences, '\x1B]0;<TEXT>\x07' sequence should be stripped.

Current behavior:

stripAnsi('\x1B[2J\x1B[m\x1B[HABC\r\n\x1B]0;C:\\WINDOWS\\system32\\cmd.exe\x07\x1B[?25h')
//=> 'ABC\r\n:\\WINDOWS\\system32\\cmd.exe\x07'

Expected behavior:

stripAnsi('\x1B[2J\x1B[m\x1B[HABC\r\n\x1B]0;C:\\WINDOWS\\system32\\cmd.exe\x07\x1B[?25h')
//=> 'ABC\r\n'

strip-ansi version: 7.0.1 os: Windows


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests