Sublime Forum

It's probably something that's non-standard Window's behavior

#1

I just recently changed to use Sublime because of it’s support for ANSI color codes which is something Microsoft has pushed in Powershell. I’m not sure of the value as Powershell messages tend to be very long and very verbose but not very good at explaining just telling you what’s wrong.

I’m not sure how much value the color really adds at this point. But here we are. Any output written by Powershell is repleat with potentially thousands of these codes making un-formatted ouput impossible to read and definately impossible to quantify the unique errors.

I noticed that even once I’ve set the Syntax selection to ANSI that it may need to be re-selected even though it says ANSI. I think one of these occurances is if you are viewing a log file that’s still being updated. There is another instance that causes this same thing but I’ve not figured out what the cause is exactly.

i’ve not had a reason to use the various coding syntax so I’m not sure if ANSI might be an exception to how it works or if the other syntax ssettings behave similarly.

0 Likes

#2

Iirc, the ANSI package runs plugin code to remove ANSI codes from the output and calls the ST API to color the region of text which that ANSI code applied to. So it makes sense that if a log file is still being appended to that it could keep ANSI codes in the output.
Most other modern cli software that outputs colors has a switch to disable it, so if the colors are not that useful or could be applied by a syntax definition without relying on ANSI codes, then that could be a viable approach.

0 Likes

#3

lirc? Linux Infared Remote Control?

It seemed like the whole document reverted back to text even though it still said ANSI down in the bottom right. Maybe that was my sense but the errors are many and are very similar in nature. Let me verify what I’m thinking. It should be easy enough to scroll up in an open log and see if older errors are still properly displayed while newer ones will just be text. A plugin I guess runs only when you change the plugin or in my case re-confirm ANSI?

I also see if the other condition shows itself and if I can get a grip on what’s causing it.

0 Likes