Skip to content

Color output doesn't get autodetected #971

@ink-splatters

Description

@ink-splatters

What happened?

Observed

TTY doesn't get autodetected and ANSI escape sequences make it to the destination as a result, by default.

Expected

TTY should be autodetected, so ANSI escape sequences don't appear in redirected output even if --no-color is not set

How can we reproduce this?

ipsw dyld symaddr dyld_shared_cache | grep _objc
# Output: ^[[2m0x1234^[[0m ^[[1m_objc_msgSend^[[0m

ipsw macho info /bin/ls > info.txt
# File contains: ^[[1mLoad Commands^[[0m

ipsw version

any recent

Search

  • I did search for other open and closed issues before opening this

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions