How do I get the 'clear' command in Cygwin?
Use cygcheck
command to check what package it is in (adding .exe
to your cmd string, in this example: clear.exe
)
> cygcheck -p 'clear.exe'
Found 4 matches for clear.exe
ncurses-debuginfo-5.9-20150307-1 - ncurses-debuginfo: Debug info for ncurses (installed binaries and support files)
ncurses-debuginfo-5.9-20150404-1 - ncurses-debuginfo: Debug info for ncurses (installed binaries and support files)
ncurses-5.9-20150307-1 - ncurses: Terminal display utilities (installed binaries and support files)
ncurses-5.9-20150404-1 - ncurses: Terminal display utilities (installed binaries and support files)
and you know you have to install ncurses
package using cygwin installer.
Install the Cygwin package ncurses
; it is in the Utils category.
This should do:
alias clear='printf "\033c"'
just use this shortcut: Alt+F8
and Ctrl-L
to skip page