Skip to content

API ideas #9

@data-man

Description

@data-man
  • implement format fn for Color and FontStyle types
  • with custom specifiers:
    if specifier is empty then write CSI-sequence
    bg & fg specifiers for Color type: treat value as background & foreground respectively
    np: don't write CSI prefix for intelligent updates

As result:

   debug.print("{fg} FG red {bg} BG green {} default", { .Red, .Green, .Reset });

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