News for hackers. Stuff that matters.
Re:Ask HN: What do you love/hate about terminals? Would you ... by joombaga on Wednesday December 27, 2017 @07:30AM (#16014367)
What long archaic command are you running? 'clear; reset' usually does it for me.
Re:Ask HN: What do you love/hate about terminals? Would you ... by polygot on Wednesday December 27, 2017 @07:33AM (#16014384)
Sometimes clear; reset works but other times I can't see what I'm typing, and so when I type it and hit enter it might clear the screen, sometimes it runs the command but the bash prompt is completely messed up. I use tmux a lot, so I usually use the reset code from this answer: https://unix.stackexchange.com/questions/49886/tmux-status-b...

stty sane; printf '\033k%s\033\\\033]2;%s\007' "`basename "$SHELL"`" "`uname -n`"; tput reset; tmux refresh