Move CRLF input processing into ttywrite