gustavonihei opened a new pull request #599: URL: https://github.com/apache/incubator-nuttx-apps/pull/599
## Summary As noted by @v01d in [incubator-nuttx#2838](https://github.com/apache/incubator-nuttx/pull/2838#issuecomment-778363299), there was a missing whitespace after the NSH prompt. It seems it was due to a bug in the CLE application, which was miscalculating the initial cursor position. At first, after printing the "nsh> " prompt the Host correctly reports the initial cursor position as `ESC ] 39 ; 6 R`, which means **row:39** and **column:6**. But, next the CLE app calculates an offset of 5 (column - 1) for the initial cursor position. But, this offset is sent to the Host later as if the first column was 0. ``` NuttShell (NSH) NuttX-10.0.1 nsh> Returning: .[1b] Returning: [[5b] Returning: 3[33] Returning: 9[39] Returning: ;[3b] Returning: 6[36] Returning: R[52] row=39 column=6 row=39 column=6 row=39 column=0 offset=5 row=39 column=0 offset=5 ``` According to the [VT100 documentation](https://vt100.net/docs/vt100-ug/chapter3.html), the column for the initial cursor position is 1:  ## Impact ## Testing Tested on: - esp32c3:nsh - esp32:nsh ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
