add comment of struct tty_state