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?
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 byfindstr
). 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?