Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's all fine and dandy until your ssh session dies and then pasting does weird things you don't understand.

iTerm2 can detect this if you install shell integration. I wish there were a more standard way to deal with this scenario, which affects everything in a terminal that has a mode (focus reporting, mouse reporting, application keypad mode, etc.).



Just use a shell alias for ssh that does a reset if the ssh command exits with an error code.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: