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

Add escapes for entering/exiting the alternative screen #33

Merged

Conversation

vadimdemedes
Copy link
Contributor

@vadimdemedes vadimdemedes commented Apr 24, 2023

Fixes #32.

Script to test this with:

import ansiEscapes from './index.js';

console.log(ansiEscapes.enterAlternativeScreen)
console.log('Hello world')
await new Promise(resolve => setTimeout(resolve, 1000))
console.log(ansiEscapes.exitAlternativeScreen)
CleanShot.2023-04-24.at.12.18.14.mp4

@sindresorhus sindresorhus merged commit 2f25a50 into sindresorhus:main Apr 24, 2023
@vadimdemedes vadimdemedes deleted the kryptonian-mike-wheeler branch April 24, 2023 09:56
@sindresorhus
Copy link
Owner

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.

Escapes for entering/exiting alternate screen
2 participants