Ensure short single lines before a prompt are still spoken in terminals (#10219)
* Ensure that characters are suppressed from being spoken in terminals as new text to stop duplication with speak typed characters only if one line has changed.
* Address review comments.