set TERM correctly when using a terminal in X