using tput for colors, line wrapping works correctly now