doc: readline document TTY utils

fix #6933