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
Can't clear the terminal programmatically #950
Comments
Using |
What if I don't have access to the xterm instance? I basically want to clear the terminal when my CLI app starts, how am I supposed to do that if it gets launched from xterm? |
@fabiospampinato it looks like That translates into:
See http://invisible-island.net/xterm/ctlseqs/ctlseqs.html for more info |
That works, thank you! |
Running
node -e "process.stdout.write ( '\u001Bc' );"
should clear the terminal, but this is what I get if I run it in xterm:If I try to clear it with a
node -e "process.stdout.write ( '\033[2J\033[0f' );"
the whole thing becomes black.Is there a way it can be cleared properly?
The text was updated successfully, but these errors were encountered: