Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced non-ANSI.SYS escape sequence in landing reporter, fixes #211 #1386

Merged
merged 1 commit into from
Oct 13, 2014
Merged

replaced non-ANSI.SYS escape sequence in landing reporter, fixes #211 #1386

merged 1 commit into from
Oct 13, 2014

Conversation

dasilvacontin
Copy link
Contributor

The landing reporter breaks in iTerm2. I guessed the cause was using \u001b[4F, the not-ANSI.SYS CPL (Cursor Previous Line) escape sequence. I've replaced it with two ANSI.SYS escape sequences, CUB (Cursor Back) and CUU (Cursor Up).

I've also fixed an issue in which executing mocha using the landing reporter in any terminal line but the first one was erasing one line more than intended. In case of executing the mocha command directly, it was erasing the mocha prompt line. Two images are worth 2000 words:
image
after executing mocha:
(notice the missing mocha -u tdd --reporter landing line)
image

@boneskull boneskull added area: reporters involving a specific reporter type: bug a defect, confirmed by a maintainer labels Oct 8, 2014
@dasilvacontin
Copy link
Contributor Author

Does this PR need anything else in order to be merged?

@boneskull
Copy link
Contributor

I'd like someone else who uses this reporter in another terminal to verify that the patch works.

@boneskull boneskull added the status: waiting for author waiting on response from OP - more information needed label Oct 9, 2014
@dasilvacontin
Copy link
Contributor Author

Fair enough.

@Couto
Copy link

Couto commented Oct 10, 2014

I had this problem in #211

I've just tested this patch and fixes it alright! :)

@dasilvacontin
Copy link
Contributor Author

Great!

travisjeffery pushed a commit that referenced this pull request Oct 13, 2014
replaced non-ANSI.SYS escape sequence in landing reporter, fixes #211
@travisjeffery travisjeffery merged commit 97de6a1 into mochajs:master Oct 13, 2014
@travisjeffery
Copy link
Contributor

thanks!

@boneskull boneskull removed the status: waiting for author waiting on response from OP - more information needed label Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: reporters involving a specific reporter type: bug a defect, confirmed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants