Serial monitor doesn't print tabs or multiple spaces

Arduino IDE 2.0.0-rc5

I'm trying to space some data for ease of quick viewing. I've tried multiple spaces and tabs (\t) in the print "strings". Regardless the serial monitor only adds a single space.

Is there a way to accomplish this that I'm missing?

Thanks

CODE:

// Read MAX31855
    rawData = myMAX31855.readRawData();

    Serial.print(F("CJ:"));
    Serial.print("\t");
    Serial.print(myMAX31855.getColdJunctionTemperature(rawData));

    Serial.print(F("      TC: "));
    Serial.print(myMAX31855.getTemperature(rawData));

// Read DS18B20
    sensors.requestTemperatures(); // Send the command to get temperatures
    float tempC = sensors.getTempCByIndex(0);
    // Check if reading was successful
    if(tempC != DEVICE_DISCONNECTED_C){
        Serial.print(F("       1_Wire: "));
        Serial.print(tempC);
        Serial.print("  Δ ");
        Serial.println(myMAX31855.getTemperature(rawData)-tempC);
    }
    else{
        Serial.println("One wire error...");
    }
  delay(5000);
}

RESULTS:
image

I find that the Serial monitor and the whole serial line handling is pretty poor in IDE 2 (wit hfrequent issues with uploading, annoying disappearance of the monitor when you compile, indeed could not get tabs to work etc...).

Until this is fixed I stay with 1.8.x

the bug is already reported by the way

and overall

1 Like

Good news everyone! This bug has now been fixed:

It is now available for testing via the nightly builds. The download links are listed here:

https://github.com/arduino/arduino-ide#nightly-builds

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.