1. Configure Putty
In Settings -> Windows -> Colours there is a check box for "Allow terminal to use xterm 256-colour mode".
2. Let the app know
You'll probably have to change Settings -> Connection > Data > Terminal-type string to "xterm-256color".