Skip to content

feature: isatty on stdout  #48

@sitkevij

Description

@sitkevij

Context

hx does not sense if stdout is being sent to a terminal, hence garbled term codes are output:

$ cat Cargo.toml | hx | more                                                                                                                                                                
0x000000: ESC[38;5;91m0x5bESC[0m ESC[38;5;112m0x70ESC[0m ESC[38;5;97m0x61ESC[0m ESC[38;5;99m0x63ESC[0m ESC[38;5;107m0x6bESC[0m ESC[38;5;97m0x61ESC[0m ESC[38;5;103m0x67ESC[0m ESC[38;5;101m0x65ESC[0m ESC[38;5;93m0x5dESC[0m ESC[38;5;10m0x0aESC[0m [package].

Solution

Support sensing of terminal (isatty) on stdout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions