Hacker News new | ask | show | jobs
by tedunangst 1863 days ago
If you enable all key events there's going to be a "key release" event between the r and e and all subsequent letters of reset.
2 comments

Some terminals can issue a reset from "the outside", e.g., iTerm2 has this under ⌘K. (In fact, `reset` inside iTerm2 fails to completely reset the terminal…)

Every now and they I'll want to do ^K in Vim and inadvertently hit ⌘K instead, which is fun. (`:redraw!` sorts things back out. Though weirdly it occurs to me that now that the terminal seems to somehow remain in alternate mode…)

If the terminal is in a completely invalid state, closing it is always an option