How to remove the garbage out of `particle list`?

How to remove the garbage out of particle list?

e[2Ke[1G. Retrieving devices...e[2Ke[1Go Retrieving devices...e[2Ke[1GO Retrieving devices...e[2Ke[1G@ Retrieving devices...e[2Ke[1G* Retrieving devices...e[2Ke[1G. Retrieving devices...e[2Ke[1Go Retrieving devices...e[2Ke[1Ge[2Ke[1G. Retrieving device functions and variables...e[2Ke[1Go Retrieving device functions and variables...e[2Ke[1GO Retrieving device functions and variables...e[2Ke[1G@ Retrieving device functions and variables...e[2Ke[1G* Retrieving device functions and variables...e[2Ke[1G. Retrieving device functions and variables...e[2Ke[1Go Retrieving device functions and variables...e[2Ke[1GO Retrieving device functions and variables...e[2Ke[1GmyCore [xxxxxxxxxxxxxxxxxxxxxxxx] (Core) is online
  Functions:
    int digitalread(String args) 
    int digitalwrite(String args) 
    int analogread(String args) 
    int analogwrite(String args) 

What OS are you using and have you got the most recent version of CLI?

What “Command Line Interpreter” are you using?

The garbage you see comes from the way the “progress indictor” is built when running the command in a command line interpreter like cmd, powershell or bash.

But if you intend to parse the raw text output yourself, you should be able to figure a way (e.g. regex).

I’ve just updated the CLI and I’m running on Mac OS X.

Sure, I can use the usual utilities sed, tr, akw and alike, but previous releases didn’t feature those bells and whistles.

Interestingly, we have thought about this as well–

It’s definitely something I’d like to see on the CLI.