sindresorhus / ansi-escapes

ANSI escape codes for manipulating the terminal
MIT License
485 stars 44 forks source link

Add `clearTerminal` to clear the whole terminal, not just visible part of it #6

Closed vadimdemedes closed 5 years ago

vadimdemedes commented 5 years ago

Extracted from https://github.com/facebook/jest/blob/1c56fb88f8527e25abffaa9de62c6e2476cdccc9/packages/jest-cli/src/constants.js#L12.

Qix- commented 5 years ago

What's the difference? I can't imagine this clearing the scroll back buffer.

vadimdemedes commented 5 years ago

What's the difference? I can't imagine this clearing the scroll back buffer.

Yep, it's actually clearing everything, the whole session.

vadimdemedes commented 5 years ago

Hey @sindresorhus @Qix-, are there things that prevent this from merging in?