Never ever, export TERM! Thanks Mikachu.