Check for 'dumb' terminals so that TRAMP mode works in emacs