Skip to main content
FLamb.2
Associate II
Jan 24, 2021 1:13 AM UTC
Solved

How to make a new line in Cool Term

I am using Cool Term to print text to the USART.

How can I make a new line?

Now, it looks like this:

TextTextText.....

But I want it like this:

Text

Text

Text

......

This topic has been closed for replies.
Vangelis Fortounas
Associate II
Jan 24, 2021 8:41 AM UTC

Hello

Use CR LF after"Text" string

\n character is LF(line feed) and \r character is CR carriage return. (escape character)

eg: printf("Text\r\n");

1 reply

Vangelis Fortounas
Associate II
Jan 24, 2021 8:41 AM UTC

Hello

Use CR LF after"Text" string

\n character is LF(line feed) and \r character is CR carriage return. (escape character)

eg: printf("Text\r\n");