I noticed that sometimes when trying to edit a line in the history to re-run a command, that ksh would garble the line and move the cursor up a line. It was really bizarre.
- first found that it was only long lines where the problem occurred
- debugging, found that the
COLUMNSvariable was unset (pretty sureTerminaluse to set it)
I could set it by hand to some big number, but then other problems appeared.
I cannot find any way to force Terminal to update the COLUMNS value as the window resizes - how can I do this?