Open yonizaf opened 5 years ago
I'll consider it. ( In fact, I hate when people say "I'll consider it" - because you never know what they actually mean by that: will they just think about it or will they implement it at some point of time :) ). I think the next version of NppExec will be able to filter the color codes. To do that, however, minimal logic of parsing the colors must be implemented anyway - I mean, at least for detection of the beginning and ending of the color code fragment of the output text.
I have to say I am far from being familiar with ANSI colors, and the (ANSI escape codes) does not look clear to me. Is there any sort of "formula" that describes all the possible ESC-sequences? By this "formula" I mean something like the following:
I mean, I need to completely understand where any possible ESC-sequence begins and where exactly it ends - and only basing on this information I'll be able to do any processing, even simple filtering of the ESC-sequences.
Added ability to remove ANSI escape sequences in https://github.com/d0vgan/nppexec/tree/develop . Please check the latest binaries under https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20v0.6%20RC3-RC4%20%28dev%29/
Included in NppExec v0.6.1: the ability to remove ANSI escape sequences (npe_console e1).
If one day NppExec will be able to colourize even parts of its lines (maybe compatibility with ANSI colours?), it would be very nice.
I'm using ANSI colors (ANSI escape codes) rather heavily in my scripts. Running them in nppexec console results in a lot of unreadable gibberish.
I it's possible to support colors it would be great. If not, at least filter out the codes, maybe?