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

Use a better clear console sequence #1211

Merged
merged 1 commit into from
Dec 11, 2016
Merged

Use a better clear console sequence #1211

merged 1 commit into from
Dec 11, 2016

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Dec 8, 2016

Found this in jestjs/jest#2230.

I tried many different options before but this one seems to work most consistently and removes the annoying scrollback both on OS X and Windows.

@gaearon gaearon added this to the 0.8.4 milestone Dec 8, 2016
@gaearon
Copy link
Contributor Author

gaearon commented Dec 8, 2016

I want to get this merged together with the Jest release that includes jestjs/jest#2230.

@ColCh
Copy link

ColCh commented Dec 8, 2016

May I ask - it works for windows 10 powershell, right?

@gaearon
Copy link
Contributor Author

gaearon commented Dec 8, 2016

In my testing yes.

@dbachrach
Copy link

I'll add that this fixes an issue I've seen in my os x terminal: after running an npm start, opening a new terminal window brings me to my home directory instead of the working directory of my project. I hadn't quite tracked it down yet, since I couldn't repro it on a coworker's machine. Thanks 👍

@ColCh
Copy link

ColCh commented Dec 9, 2016

@dbachrach hm.. that change is related only for screen clearing things really.

You may changed this option under terminal settings:
(Sorry for Russian at screenshot - it's Terminal app options, Common tab, setting name is "Open in new tabs" and setting value is "open same working dir")
image

@gaearon
Copy link
Contributor Author

gaearon commented Dec 11, 2016

Going to get this in, I'll remember to update Jest before releasing this.

@gaearon gaearon merged commit 5c551f8 into master Dec 11, 2016
@gaearon gaearon mentioned this pull request Dec 11, 2016
alexdriaguine pushed a commit to alexdriaguine/create-react-app that referenced this pull request Jan 23, 2017
@gaearon gaearon deleted the gaearon-patch-3 branch March 6, 2017 02:40
randycoulman pushed a commit to CodingZeal/create-react-app that referenced this pull request May 8, 2017
@aripollak
Copy link

aripollak commented Sep 1, 2017

I'm confused about this - is it intentional to clear the entire scrollback history, even in tmux? It's super surprising for new users, and seems to assume that you'd never again want to see what was in the terminal history before running start or test.

@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants