Koromix / tytools

Collection of tools to manage Teensy boards
https://koromix.dev/tytools
The Unlicense
214 stars 27 forks source link

Backspace character '\b' in Serial output #94

Open bigguiness opened 2 years ago

bigguiness commented 2 years ago

I'm trying to run a "spinner" in the serial output when my sketch is idle. This should output one of the '|' '/' '-' '\' characters on each loop with a backspace '\b' after the character.

When I try this with my sketch and TyCommander 0.9.7-2-g2475490 I get, what I assume is, a notofu symbol between the characters instead of the backspace.

Is the backspace character in the serial output a problem with TyCommander or a problem with the Serial print stuff in Arduino?

If it matters I'm doing this with a Teensy 4.0 board, Arduino 1.8.13, and Teensyduino 1.53. I'm trying this on an Ubuntu 18.04.6 LTS system.

Koromix commented 1 year ago

Most GUI apps do not support the backspace control character, unlike terminal emulators (I guess).

But it could be useful so I'll look into it over the weekend ;)