Use CLS
no prompt de comando e no PowerShell.
Nota: No PowerShell, CLS
é tecnicamente um alias do comando Clear-Host
.
CLS Clear the screen - Windows CMD - SS64
Syntax:
CLS
If CLS is redirected to file, console or executed through FOR /F it will print a line feed character (ASCII 10).
Errorlevels:
If the screen is successfully cleared %ERRORLEVEL% = unchanged (this is a bug) If a bad switch is given = 1
Clear-Host - PowerShell - SS64 Clear-Host
Clear the screen.
Syntax:
Clear-Host
Standard Aliases for Clear-Host:
clear
,cls