-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
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
MuhammadTaha, micsthepick, ssbarnea, christophbuehler, eSakuras and 1 more
Metadata
Metadata
Assignees
Labels
No labels