cygwin clearscreen from bash

前端 未结 7 817
说谎
说谎 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:25

    There is two ways:

    Using shortcuts

    Alt+F8 to clear screen and Ctrl-L to skip page

    Using Clear alias

    1. Go to: cygwin\home\USER\.bashrc
    2. Open .bashrc file and put this alias alias clear='printf "\033c"'.
    3. restart your cygwin terminal.
    4. to clear your screen use clear command.

提交回复
热议问题