Proper handling of CR/LF in serial monitor [imported] #346
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
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:
to generate this output:
rather than what we get today:
That is
CR
should move to beginning of line andLF
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 theCR
/LF
pair for line endings and so would produce the same output as today. This is also inline with howCR
/LF
is defined and how most serial terminal emulators work.The text was updated successfully, but these errors were encountered: