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

Fix cursor in terminal app #21

Merged
merged 2 commits into from
Jan 22, 2019
Merged

Fix cursor in terminal app #21

merged 2 commits into from
Jan 22, 2019

Conversation

rogeliog
Copy link
Member

@rogeliog rogeliog commented Oct 5, 2018

Fixes: #20

This PR fixes an issue with terminals like Terminal.app in MacOS... We've seen similar issues in the past, when the typeahead was inside Jest core (i.e. jestjs/jest#3392 and jestjs/jest#2594) but I still want to further investigate the issue.

By reseting the cursor to the position x=0 of the current line(the leftmost position) we ensure the text starts in the correct position. Although this fixes it, I still want to have a better understanding of why this regression happened and how to prevent similar issues in the future.

screen shot 2018-10-04 at 10 50 30 pm

This gif shows be behavior in master vs this PR
jest-watch-bug

@rogeliog rogeliog changed the title Fix cursor terminal app Fix cursor in terminal app Oct 5, 2018
@SimenB
Copy link
Member

SimenB commented Nov 4, 2018

@rogeliog is this ready?

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.

First character(s) not rendering correctly in some terminals.
3 participants