我知道clear
可以“清除”当前屏幕的命令,但是它只是通过打印许多换行符来实现的-清除的内容只是向上滚动。
有没有办法完全清除终端上所有以前的输出,以便即使向上滚动也无法到达?
⌘+K
Command+K适用于较新的键盘
/usr/bin/osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "k" using command down'
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句