The history has nothing to do with PuTTY, the program is probably not to blame. Is the shell Bash? What is the output of
declare -p PS1
? Does this help? coloring bash prompt will break carriage return