Skip to content

Ability to report back slices of printable characters #127

@epage

Description

@epage

The trait currently reports a char at a time. While terminal emulators might need to operate on chars, other tools like stripping of ANSI escape codes or converting them, need to work on slices

  • &str -> char conversion is expensive, relatively speaking
  • doing IO per char would be expensive
  • allocating a String to aggregate the chars would also be expensive

To workaround this, anstream exposed the state changes from its fork, anstyle-parse, to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions