Whenever I type in a bash command longer than about half the width of the shell window I'm in, the command breaks like it would if I filled the whole screen

- 3rd command in image - typed a few
xs and got the expected result. - 4th command - typed a load more
xs, and the command broke back to the start as though it had filled the whole line.
I'm connecting through Putty.
I'm running Raspbian (a distro based on Debian)
If I'm not being clear enough please say, it's not easy to explain.

$PS1variable? – Random832 Aug 1 '12 at 14:51