从bash的Cygwin的clearscreen [英] cygwin clearscreen from bash
本文介绍了从bash的Cygwin的clearscreen的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从庆典在Cygwin的终端clearscreen。
我曾尝试
I want to clearscreen from bash in a cygwin terminal. I have tried
cmd /c cls
echo -e "^V^L"
echo -e "\014"
这些工作都没有 - 他们都给予了换行。 pressing CTRL + L没有工作 - 但我想从一个Bash脚本调用它。
None of these work - they all give a "linefeed". Pressing CTRL+L does work - but I want to call it from a Bash script.
任何想法?
推荐答案
如果它包含在你的Cygwin的安装(运行Cygwin的安装程序,并确保你有一个名为ncurses的包),尝试
If it's contained in your cygwin install (run Cygwin's setup and make sure you have the package called "ncurses"), try
tput clear
这篇关于从bash的Cygwin的clearscreen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文