Skip to content

Provide API for implicit conversions #5

@epage

Description

@epage

Most term styling crates require the format-site to know the capabilities of the intended output stream. This complicates things when the the format-site and outputting are decoupled.

The idea for this is that people choose the ansi styling crate of their choice and either generate a string and print it as needed (required for clap) or construct a set of stream wrappers around stdout/stderr and write their styled Display types directly to it.

This issue is for a crate that can convert strings or be used in a custom stream to handle

Conversions

  • Graceful degradation to no colors (required for clap)
  • Graceful degradation to lower colors or no colors
  • Convert to wincon api (required for clap)
    • As most of termcolor would likely not be used, we'd probably want to make the calls ourself

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Raise on the bar on expectations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions