Correctly sends the prompt in the telnet handler and also sends it after any other text