8000 'clear' should leverage tput reset on *nix · Issue #8554 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

'clear' should leverage tput reset on *nix #8554

@ghost

Description

Summary of the new feature/enhancement

As as user, I want the same 'clear' experience in PowerShell on *nix, as I have in Windows. Currently, if I use 'clear' in Windows, this clears the buffer. Currently, in *nix, it appears to create a gap of blank lines and leaves the buffer mostly intact; so, I can scroll up to see the history.

I believe that this is because pwsh is leveraging terminal and when clear is input by the user, it is passed to the terminal. However, the behaviour one would expect should be the equivalent of 'tput reset' in the terminal window - as this would be the same experience seen in PowerShell in Windows.

Proposed technical implementation details (optional)

Instead of allowing 'clear' to pass to the terminal, translate the command to 'tput reset' and pass that to the terminal.

Metadata

Metadata

Assignees

Labels

Committee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Cmdlets-Corecmdlets in the Microsoft.PowerShell.Core module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0