Open ricksorensen opened 3 years ago
Hi Rick,
Glad you like the package!
I had the morning off today so I finally got to sit down and take a look at this.
I'm guessing from the reading I did that there is no value in trying to keep these escape codes and properly format everything?
If so, I did find a few pages of interest:
--no-ansi
seems to be the cleanest way of dealing with this.
They also provide the PLATFORMIO_NO_ANSI
env var.
To be honest I don't even have platformio installed right now. I'll get everything set up on my end and see how the output looks.
I am running platformio with the current (MELPA installed) platformio-mode.el. When compile errors are generated, the escape characters for cursor motion are causing problems with the error file,line matching in emacs. I can work around this in two ways so far:
Modifying system .bashrc to define
resolves the issue.
Changing command in
platformio-mode.el
in theplatformio--exec
function to run/build on line 81 from(cmd (concat "platformio -f -c emacs " target)))
to(cmd (concat "platformio -f --no-ansi -c emacs " target)))
I was tying to figure out how to add the
--no-ansi
flag to the platformio.ini file, but have had no luck with this yet.I am running emacs 26.3 on Ubuntu20.04
Here is a list of my installed packages:
Thank you for the nice package - Rick Sorensen