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

WIP: Update Clear-Host on UNIX to also clear the scrollback buffer #8555

Closed
wants to merge 3 commits into from

Conversation

SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Dec 28, 2018

PR Summary

Clear-Host currently uses the clear command to clear the screen. However, that merely clears what is on the visible screen and not the entire buffer. This is a difference in behavior with Windows which also clears the scrollback buffer. Fix is to output the ESC[3J CSI sequence to clear the scrollback buffer.

cc @mklement0

Fix #8554

PR Checklist

@SteveL-MSFT SteveL-MSFT changed the title Update Clear-Host on UNIX to also clear the scrollback buffer WIP: Update Clear-Host on UNIX to also clear the scrollback buffer Dec 29, 2018
@SteveL-MSFT
Copy link
Member Author

Marking this as WIP waiting on Committee review of the issue

@mklement0
Copy link
Contributor

Thanks, @SteveL-MSFT. What is missing is the proposed removal of the clear alias on Unix-like (non-Windows) platforms.

@SteveL-MSFT
Copy link
Member Author

Closing this due to @PowerShell/powershell-committee decision

@SteveL-MSFT SteveL-MSFT closed this Jan 7, 2019
@iSazonov iSazonov added the CL-NotInBuild Indicates that a PR is reverted and not part of the build. label Jan 17, 2019
@SteveL-MSFT SteveL-MSFT deleted the clear-host branch June 6, 2020 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CL-NotInBuild Indicates that a PR is reverted and not part of the build.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'clear' should leverage tput reset on *nix
3 participants