Welcome!

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

SignUp Now!

Why is unknown_cmd unable to draw ansi if it’s invoked due to a piped command?

Jul
532
10
Finding out about unknown_cmd was a game changer for me, because pausing in response to an unknown_command helps stop runaway errant situation.

But because I used ANSI color in my response, it was a bit long for an alias, so I simply made the alias call a bat file:
1737080254826.webp


(I attached my unknown_cmd.bat to this post, or view it with a single click at https://raw.githubusercontent.com/C...ads/main/BAT-and-UTIL-files-1/unknown_cmd.bat )

My question is... Why does the ansi work for non-piped commands, but doesn’t for piped commands?

This makes me sad
1737080440108.webp
 

Attachments

Well then I guess that begs the question of why does Windows handle ANSI with TCC differently?

Could it possibly be something I’m doing?

CMD.exe:
1737086569781.webp


Powershell:
1737086693620.webp


TCC.exe:
1737086653615.webp
 

Attachments

Very interesting!

I checked, and that is actually already set as 1 for me.
 
Back
Top