From: Sidney Lambe on
I recently installed a new linux and this was driving
me nuts, so I figured someone else might be having
the same problem and would appreciate the solution.

When I'd type or cut&paste a long command on the
commandline, instead of continuing on a new line
it overwrote itself.

The solution is to put this in your ~/.bashrc:

shopt -s checkwinsize

and then source it with:

.. ~/.bashrc


source ~/.bashrc

Better yet, put it in your systemwide bashrc in /etc
and then source that in each open window.

Hope this helps someone, either now or when searching
the Usenet archives at googlegroups in the future.