Hacker News new | ask | show | jobs
by katzeilla 1707 days ago
... and in case you messed up your console, typing `reset` followed by enter will fix it.
2 comments

I had to do it quite a few time when implementing this one ;)

I often type "C-c" or "enter" before typing reset to ensure I have nothing before it in the buffer.

A bit like I often do "Enter Enter ~ .` instead of just `~.` to kill a dying SSH session (I don't know why I hit enter twice here... a single time is enough.) to ensure the ~ is at the beginning of the buffer (if it's not, it won't work).

Or, if you managed to mess up the terminal modes and enter doesn't work, try pressing ctrl-j instead.