no1wudi commented on code in PR #1650: URL: https://github.com/apache/nuttx-apps/pull/1650#discussion_r1131927901
########## system/cle/cle.c: ########## @@ -1124,11 +1149,20 @@ int cle_fd(FAR char *line, FAR const char *prompt, uint16_t linelen, /* Get the current cursor position */ - ret = cle_getcursor(&priv, &priv.row, &column); - - if (ret < 0) + for (; ; ) { - return ret; + ret = cle_getcursor(&priv, &priv.row, &column); Review Comment: I think usb driver should be fixed, but this patch is also needed since nsh shold not hang here if can't read vt100 command response, should raise some error info atleast. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org