New line + Carriage return on RTT-Terminal of VS Code

Hello
I have a custom board with the nRF52840, using nRF Connect + VS-Code.

By some reason, the '\n' on printk() does not make also a carriage return, thus making an indenting on the VS-Code integrated RTT-Terminal View.

On external Segger-RTT-Viewer it works fine.

Where can I find the setting that "new line" should also make a "carriage return" on the integrated RTT / printk?

On other projects it works fine, therefore it should be a setting or CONFIG_x, I guess...

Many thanks in advance!

Best Regards

Gerardo

  • Hi,

    Just wanted to add something here, in case other users come across this case with similar questions:

    It seems that VS Code's built-in terminal interprets \n differently than for instance the Segger RTT Viewer, so the extension team is going to look at interfering here to modify the behaviour. So hopefully this will stop being an issue, with a future update of the extension.

    Best regards,

    Raoul

Related