Support clearing of buffer lines with command /c or /clear
Catch DOMException
Change the connect button text based on connection status