Skip to content

'\t' sent to Serial Monitor are converted to single space #675

Closed
@ermtl

Description

@ermtl

In previous versions (up to Arduino 1.8x), sending a /t tab character to the serial monitor resulted in an aligned output (8 character tab spacing)

Exemple

int value1=11;
int value2=22;
int value3=33;
Serial.print("\tParameter 1\tParameter 2\tParameter 3\n");
Serial.print("\t");
Serial.print(value1);
Serial.print("\t\t");
Serial.print(value2);
Serial.print("\t\t");
Serial.println(value3);

in previous versions, the output would look like this

        Parameter 1     Parameter 2     Parameter 3
        11              22              33

In Arduino 2, it looks like this :

Parameter 1 Parameter 2 Parameter 3
11 22 33

The \t character is replaced by a space (except as the first character of a line where it produces no output).

This makes tables and aligned data difficult to read as proper formatting is lost.

I tested this on Linux Mint 20.2

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions