Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension methods to color strings like in npm.colors for JS #15

Closed
Athari opened this issue Mar 1, 2018 · 0 comments
Closed

Extension methods to color strings like in npm.colors for JS #15

Athari opened this issue Mar 1, 2018 · 0 comments
Assignees
Milestone

Comments

@Athari
Copy link
Owner

Athari commented Mar 1, 2018

Colors module extends string prototype with color properties which generate escape sequences, which creates conscise API for colored console output.

Something like this can be done with CsConsoleFormat. A dirty hacky version can be found in my answer Using colors in console, how to store in a simplified notation, but it doesn't support background colors. Supporting both foreground and background colors would require extension methods for both strings and spans.

Looks like it's a very common use case, so implement this API properly.

@Athari Athari self-assigned this Mar 1, 2018
@Athari Athari added the type:feature Feature label Mar 1, 2018
@Athari Athari added this to the 1.x milestone Mar 1, 2018
@Athari Athari added the resolved:done Done label Mar 6, 2018
@Athari Athari closed this as completed Mar 6, 2018
@Athari Athari modified the milestones: 1.x, 1.0 Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant