Error line appears when using drush 7.x.5.9 -- 32-bit executable?
Try running tput cols from your shell.  Drush is running this command to determine how many columns wide your terminal is.  You could convince Drush not to call TPUT if you instead export COLUMNS 80 (e.g. in bashrc), but it's probably better to figure out what's wrong with your tput executable.  This is possibly related to an installation problem that is independent of Drush.