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

Add colours #1

Open
5 tasks
Sirraide opened this issue Jun 12, 2023 · 0 comments
Open
5 tasks

Add colours #1

Sirraide opened this issue Jun 12, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Sirraide
Copy link
Owner

Sirraide commented Jun 12, 2023

VLC’s --help and -H printouts look pretty nice; perhaps we could ‘take inspiration’ from that. This would entail:

  • Adding some way of specifying colours, probably through a single colo(u)rs<...> type. Also add some default themes because why not.
  • Adding another builtin option type (like help<>) that adds a --colo(u)r option that allows users to disable/enable colours from the command line. This should probably passed in together with the colour configuration. It would probably be a good idea if all of the colour configuration is handled via the colo(u)rs<...> type, possibly w/ subtypes.
  • Actually implementing the option type in question in the printer, as well as precalculating several help messages.
  • By default, it should use isatty() to determine whether or not to print colours.
  • Add support for 3×256-bit colours (yes, there are ANSI escape codes for that).
@Sirraide Sirraide added the feature request Propose or request a new feature label Jun 12, 2023
@Sirraide Sirraide self-assigned this Jun 12, 2023
@Sirraide Sirraide added enhancement New feature or request and removed feature request Propose or request a new feature labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant