Revert "Don't be smart about ttys"

This reverts commit 647dfa611666f932c119233acdcd8fe7fcee3acf.