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

API: ANSI/Terminal library in batteries #92

Open
bjcscat opened this issue Feb 27, 2025 · 2 comments
Open

API: ANSI/Terminal library in batteries #92

bjcscat opened this issue Feb 27, 2025 · 2 comments
Labels
batteries Work in the additional Luau batteries library portion of the code bikeshed Debating the best name or API for something. enhancement New feature or request

Comments

@bjcscat
Copy link
Contributor

bjcscat commented Feb 27, 2025

I think we should have a library for formatting strings with ANSI escape codes included as part of batteries

@aatxe aatxe added enhancement New feature or request bikeshed Debating the best name or API for something. labels Feb 27, 2025
@aatxe
Copy link
Owner

aatxe commented Feb 27, 2025

Yeah, this would be useful for sure, and meets the bar for batteries IMO.

@bjcscat
Copy link
Contributor Author

bjcscat commented Feb 27, 2025

I was thinking a functional library is basically the default for this kind but maybe some other API design would be better?

Functional

print(`{ansi.bold(ansi.red("ERROR"))} - {err}`)

@aatxe aatxe added the batteries Work in the additional Luau batteries library portion of the code label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
batteries Work in the additional Luau batteries library portion of the code bikeshed Debating the best name or API for something. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants