Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

ANSI issue with non-default foreground color

Sep
49
2
Apologies if this is a duplicate. I've not noticed it being reported, but could easily have missed it.

I noticed an odd inconsistency that I finally tracked down to something unusual (at least to me) in ANSI control sequence handling. On my home system, where the Take Command foreground color is the default of C0C0C0, I never saw an issue. On my work system, where I'd brightened it up a bit to F0F0F0, I see this:

colors.webp


I would expect CSI 0m to return to the original foreground color, but it seems to instead be left as C0C0C0.

This is with ConPTY enabled.
 
I do have ANSI turned on. And I'm not sure I understand your statement about the escape sequences being displayed literally - they're clearly being interpreted as the CSI 1m sets bold (seen on the second line) and then the CSI 0m reset turns off bold (third line).

I'm using echo to show the effect, using ^e for escape and ^n for newline. No ANSI (or any non-ACSII) character is being displayed literally.
 
Back
Top