Add tty support