Sending `\u001Bc` escape sequence clears scrollback buffer
See original GitHub issueDetails
- Browser and browser version: Google Chrome | 90.0.4430.93 (Official Build) (x86_64)
- OS version: macOS Big Sur
- xterm.js version: 4.9.0
Steps to reproduce
- Use a regular macOS Terminal (or iTerm if you prefer) and execute
ls
a couple of times and then executeprintf '\u001Bc'
. You will notice that the scrollback buffer is not cleared. - Open Visual Studio Code and do the same thing, you will now notice that the scrollback buffer is cleared.
I noticed the difference in behaviour because I was using ansi-escapes#clearscreen which shouldn’t clear the buffer but it does in xterm.js.
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
The easiest way to clear scrollback buffer of terminal + some ...
And another question is how to just type such escape sequence into terminal, to perform desired action? Then do not have to think...
Read more >Clear a terminal screen for real [closed] - Stack Overflow
Here is some more information on terminal escape codes. ... following sequence of commands to clear the screen and the scroll-back buffer.
Read more >Iterm2 fully clear scrollback within ssh - terminal - Super User
To clear the scrollback buffer using escape codes, refer to this page of iTerm2 special escape ... You can send it with a...
Read more >C clear screen cross platform - f-static.net
Clean the terminal window. ... This program uses cp/m system calls to send a form feed character to ... terminal with support for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Created an issue for this 🔝
Thanks for all the information. Really love the hard work you guys put into this 🙏 .
Already checking this with @sindresorhus and @Qix-. Thanks for creating the issue and for the feedback @jerch @Tyriar!