Skip to content

Use a better clear console sequence - #1211

Merged
gaearon merged 1 commit into
masterfrom
gaearon-patch-3
Dec 11, 2016
Merged

Use a better clear console sequence#1211
gaearon merged 1 commit into
masterfrom
gaearon-patch-3

Conversation

@gaearon

@gaearon gaearon commented Dec 8, 2016

Copy link
Copy Markdown
Contributor

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

gaearon commented Dec 8, 2016

Copy link
Copy Markdown
Contributor Author

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

@ColCh

ColCh commented Dec 8, 2016

Copy link
Copy Markdown

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

@gaearon

gaearon commented Dec 8, 2016

Copy link
Copy Markdown
Contributor Author

In my testing yes.

@dbachrach

Copy link
Copy Markdown

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

ColCh commented Dec 9, 2016

Copy link
Copy Markdown

@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

gaearon commented Dec 11, 2016

Copy link
Copy Markdown
Contributor Author

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

aripollak commented Sep 1, 2017

Copy link
Copy Markdown

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