Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Proper handling of CR/LF in serial monitor [imported] #346

Copy link
Copy link
Closed
@cmaglie

Description

@cmaglie
Issue body actions

This is Issue 346 moved from a Google Code project.
Added by 2010-09-08T13:16:56.000Z by bflaglie@c2i.net.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Enhancement, Priority-Medium

Original description

What change would you like to see?

I would like this sketch:

void setup()
{
  Serial.begin(57600);
  Serial.print("Hi There!");
  Serial.print("\r...");
  Serial.print("\nThere!");
}

to generate this output:

...There!
   There!

rather than what we get today:

Hi There!
...
There!

That is CR should move to beginning of line and LF should advance to next line.

Why?

This allows for more flexible debug output. A trace value can be rewritten to the same line (Serial.print("\rValue=")) rather than print on a separate line.

Would this cause any incompatibilities with previous versions? If so, how
can these be mitigated?
Not likely. Serial.println uses the CR/LF pair for line endings and so would produce the same output as today. This is also inline with how CR/LF is defined and how most serial terminal emulators work.

Metadata

Metadata

Assignees

Labels

Component: IDE Serial monitorTools > Serial MonitorTools > Serial MonitorType: WontfixArduino has decided that it will not resolve the reported issue or implement the requested featureArduino has decided that it will not resolve the reported issue or implement the requested featurefeature requestA request to make an enhancement (not a bug fix)A request to make an enhancement (not a bug fix)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.