fixed ansi-term stuff