<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>Still not working for me. I get:<div class=""><br class=""></div><div class=""><ol class="MailOutline"><li class="">“Password:” overwriting “OVMS>” when I type “enable”.</li><li class="">First line of output overwrites command prompt whenever I type a command.</li><li class="">Pressing ENTER at “OVMS#” prompt seemingly does nothing.</li></ol><div><br class=""></div><div>Looking through the code, we send \n, not \r\n, in multiple places (for example in ovms_command.cpp enableInsert() function that handles password entry. A ‘find in project’ for \n shows 11,350 results! Simple_monitor works just fine.</div><div><br class=""></div><div>Regards, Mark.</div><div><br class=""><blockquote type="cite" class=""><div class="">On 10 Jul 2018, at 4:35 AM, Stephen Casner <<a href="mailto:casner@acm.org" class="">casner@acm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">This problem of no newline is related to the somewhat tricky way I<br class="">implemented alert output being written above the current command input<br class="">line. I truncate the newline from the last or only line of an alert<br class="">message so that when it is followed by microrl putting out a new<br class="">prompt, which is preceded by a newline, we don't get a blank line.<br class=""><br class="">I've just committed a fix. The problem was that the terminal monitor<br class="">discards a newline that does not follow carriage return, and microrl's<br class="">terminal_newline() function was written to output the same string to<br class="">go to the next line as it takes for input to indicate the end of a<br class="">command. We need the input end-of-line to be just a newline<br class="">character, so that is all that terminal_newline() put out before the<br class="">prompt. My fix was to change terminal_newline() to output the<br class="">explicit string "\r\n" rather than the macro ENDL.<br class=""><br class=""> -- Steve<br class="">_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></div></blockquote></div><br class=""></div></body></html>