ardublock icon indicating copy to clipboard operation
ardublock copied to clipboard

Unable to Serial.print '\t' character

Open bri-huang opened this issue 12 years ago • 2 comments

Is there a way to print a TAB character? Placing a \t inside the the Serial.print block results in a Serial.print("\t");

bri-huang avatar Dec 09 '13 20:12 bri-huang

I don't understand what would be wrong with that?

From the Arduino reference...
Serial.print("\t"); // prints a tab

TonyCallear avatar Jan 03 '14 19:01 TonyCallear

Ah. OK. I see what you mean. In fact it adds Serial.print("\t"); ---- with an extra ****.

It would be easy to add something like ret = ret.replaceAll("<&tab>", "\t"); to MessageBlock.java but it starts to look a bit clunky with all the <&tab>, <&nothing>, <&space> "special characters".

Hopefully someone has a better idea?

TonyCallear avatar Jan 03 '14 20:01 TonyCallear