So often, I run a command in either Terminal.app or iTerm, press the up arrow to go back to edit it, and the cursor jumps to the line above or somewhere totally in the wrong place. It especially happens when the command is so long that it wraps around to the next line. Sometimes these long commands all appear on one line, and sometimes they display correctly on multiple lines.
This happens in both iTerm and Terminal.app
Also happens in both vi and emacs modes, making them pretty much unusable.
any ideas? thanks!