Last Updated: February 25, 2016
·
210
· thorsummoner

Bash faster `reset`

I've been using reset as a stapple for really clearing my terminals screen for a long time and I was getting sick of it taking over a second.

I located a SO answer that set me stright, and its a little more to type, but for the time saved, and the simplicity of the command, I'm sold.

printf '\ec'

Simple, expressive; \e generates an escape character, and c is the VTE escape sequence to trigger a buffer clear.