Félix Saparelli

(about me)

a.k.a. passcod

How to avoid ISO 2022 locking escape drudgery

Posted on Sep 21 ‘14

This protip is also tagged as

Ever encountered this?


  1. Install mosh
  2. Run $ ssh-copy-id localhost
  3. Prepend your terminal’s starting command with mosh localhost
  4. Profit!


If running tmux, you’re out of luck, though. You can modify the inner tmux starting command, but I’m not quite sure how mosh handles multiple connections. Also, if you prefer Tmux<1.8 behaviour when creating new panes/windows (keep the same current directory) like I do, that will kill it.