Implement tty