Add the clearBuffer
action which is in 1.12
#478
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As in microsoft/terminal#10906
Clear Buffer (Preview)
This action can be used to manually clear the Terminal buffer. This is useful for scenarios where you're not sitting at a command-line shell prompt and can't easily run
Clear-Host
/cls
/clear
.Command name:
clearBuffer
Default bindings:
Actions
clear
"screen"
,"scrollback"
,"all"
"screen"
: Clear the terminal viewport content. Leaves the scrollback untouched. Moves the cursor row to the top of the viewport (unmodified)."scrollback"
: Clear the scrollback. Leaves the viewport untouched."all"
(default): Clear the scrollback and the visible viewport. Moves the cursor row to the top of the viewport.relative
opacity
parameter. If false, set the opacity to exactly that value.Important
This feature is only available in Windows Terminal Preview.