cygwin clearscreen from bash

前端 未结 7 828
说谎
说谎 2021-01-30 21:00

I want to clearscreen from bash in a cygwin terminal. I have tried

cmd /c cls
echo -e \"^V^L\"
echo -e \"\\014\"

None of these work - they all

7条回答
  •  时光取名叫无心
    2021-01-30 21:09

    If it's contained in your cygwin install (run Cygwin's setup and make sure you have the package called "ncurses"), try

    tput clear
    

提交回复
热议问题