how to clear cmd screen in windows 10 code example

Example 1: clear terminal windows

cls
===============================
will clear the windows terminal

Example 2: clear cmd

just type cls and hit enter

Example 3: how to clear my cmd history in windows

//----- The simplest way is to restart the Command Prompt. The command history is cleared automatically every time you close it and start the command prompt again.

Example 4: clear in windows cmd

cls  #this command clears the command window in Windows Command Prompt

Example 5: clear terminal on windows

; -------------------------------------------------------------------------
; Cntr-L should clear screen
; -------------------------------------------------------------------------
#IfWinActive ahk_class ConsoleWindowClass
^L::
Send cls{Enter}
return

#IfWinActive