Ensure that we put a newline after any code we put in, and handle received characters more sensibly - display text a maximum of 50ms after it arrives