add tty_basic example.