Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update `Clear-Host` to simply call `[Console]::Clear()` on all platforms and remove `clear` alias on Unix systems #8603
Based on @PowerShell/powershell-committee decision, standardizing on
@SteveL-MSFT, while we're at it, perhaps we can make the function an advanced one so that it doesn't quietly accept and ignore arbitrary arguments (even though none of the common parameters make sense).
E.g, the following is currently quietly accepted:
referenced this pull request
Jan 8, 2019
In general I would think it best practice for any "official" functions be thoroughly implemented, as @mklement0 says. It sets a bad example if we go around including low-quality code in official distributions, and it goes against years of best practices to widely distribute a function that quietly ignores arbitrary parameters.
@iSazonov not sure what you mean by "restoring on Windows" since prior to this PR, the
@mklement0 personally, I think we can consider extending