Skip to content

On the "clear" command, only clear decorations in the viewport #145816

@rebornix

Description

@rebornix

Testing #145599 on macOS

clear doesn't flush the scrollback, which means, after running clear

  • The decorations are gone, the cursor is now at the top of the terminal
  • Run another command, the decoration shows at the very bottom of the scrollbar, which is different from initial creation of the terminal

Terminal just created, run a command
image

Terminal cleared, run a command
image

It seems this is because the scrollback is not really cleared, instead they are just pushed out of view (you can still scroll up to reveal the previous commands). Considering that the history is still in the buffer, it doesn't make sense to clear the decoration either.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insidersterminal-shell-integrationShell integration infrastructure, command decorations, etc.verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions