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

Highlight today in colour in calendar's CLI output #128317

Open
hugovk opened this issue Dec 28, 2024 · 0 comments
Open

Highlight today in colour in calendar's CLI output #128317

hugovk opened this issue Dec 28, 2024 · 0 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@hugovk
Copy link
Member

hugovk commented Dec 28, 2024

Feature or enhancement

In Python 3.13 we added colour output to the new REPL, tracebacks and doctest, and in 3.14 to unittest and test.regrtest, which can also be controlled with the PYTHON_COLORS, NO_COLOR and FORCE_COLOR environment variables:

On macOS, the cal utility does something similar, but highlights today.

The calendar module has a CLI to print out a calendar to the terminal, but with no highlighting. Let's add it.

Linked PRs

@hugovk hugovk added the type-feature A feature request or enhancement label Dec 28, 2024
@picnixz picnixz added the stdlib Python modules in the Lib dir label Dec 28, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 30, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 30, 2024
hugovk added a commit that referenced this issue Dec 30, 2024
hugovk added a commit that referenced this issue Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants