Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmaglie opened this issue Nov 15, 2012 · 1 comment
Closed

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

cmaglie opened this issue Nov 15, 2012 · 1 comment
Assignees
Labels
Component: IDE Serial monitor Tools > Serial Monitor feature request A request to make an enhancement (not a bug fix) Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Milestone

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 346 moved from a Google Code project.
Added by 2010-09-08T13:16:56.000Z by [email protected].
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.

@ffissore ffissore added the New label Feb 27, 2014
@ffissore ffissore self-assigned this Jul 1, 2015
@ffissore
Copy link
Contributor

ffissore commented Jul 3, 2015

Closing as wontfix. Use an external program like putty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE Serial monitor Tools > Serial Monitor feature request A request to make an enhancement (not a bug fix) Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Projects
None yet
Development

No branches or pull requests

4 participants