carlos-montiers / enhancedbatch

Enhances your windows command prompt https://www.enhancedbatch.com
Other
5 stars 1 forks source link

Detect console output redirection #57

Open lazna opened 3 years ago

lazna commented 3 years ago

Have batch file printing many lines of output, some ANSI colored. When paging output by more, discovered that ANSI sequences are no more interpreted (same with filtering lines by findstr). Uninterpretered ANSI chars mess my console output so I have idea EB somehow detect if console output is redirected and my batch will suppress printing ANSI sequences for this time. Is it possible?

adoxa commented 3 years ago

%@stdout%==0