remember if the tty setup failed... Also trim the input line of trailing \r's.
editline first appeared in 4.4BSD not NetBSD1.0