Removed tty detection