Add tty library