Skip to content

Conversation

@mbrgm
Copy link
Contributor

@mbrgm mbrgm commented Aug 12, 2014

^[[2K is an escape code, which means "erase entire current line" and should not
be included in the output. ^[[0G is another escape code. I could not find out
its meaning, but it clutters up the output as well. See the screenshot for an "before" example.

example

@tpope
Copy link
Owner

tpope commented Aug 13, 2014

The two of these constitute clearing the line plus moving to the first column, which means the most precise behavior would be to strip out .* followed by both of them, similar to how we treat \r. Can you do that instead?

^[[2K^[[0G means "clear line and move to the first column". They clutter up the
output and should be stripped from it.
@mbrgm
Copy link
Contributor Author

mbrgm commented Aug 13, 2014

I updated the pattern. Should now be ready to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants