cygwin clearscreen from bash

前端 未结 7 816
说谎
说谎 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:20

    Using shortcuts (for mitty console users)

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

    Using sh bash adding a command

    If you use console2 or same consoles, you can add this sh code as without extension this location : ..\cygwin64\bin\

    cls and /or clear (without extension)

    #!/bin/sh
    printf "\033c"
    

    Then you can use cls and|or clear in cygwin command.

提交回复
热议问题