Uh oh!
There was an error while loading. Please reload this page.
gh-128317: Highlight today in colour in calendar CLI output - #128318
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
hugovk
commented
Jan 3, 2025
Thanks all for the reviews! |
| :meth:`setfirstweekday` method. | ||
| .. versionchanged:: next | ||
| If *highlight_day* is given, this date is highlighted in color. |
There was a problem hiding this comment.
Should this say “using terminal escape sequences”?
There was a problem hiding this comment.
Hmm, I think it's more useful to describe the end result rather than the "how".
There was a problem hiding this comment.
That was my intention: mention that you need to print the result to a terminal to see the highlight. If you don't, you'll see some garbage bytes.
…thon#128318) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
…thon#128318) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

Here's the macOS
calcommand:Here's the
calendarCLI output in 3.13:And with this PR:
Especially useful for Twixtmas when you're not sure what day it is!
The usual
PYTHON_COLORS,FORCE_COLORandNO_COLORenv vars can be used to override terminal colour detection.📚 Documentation preview 📚: https://cpython-previews--128318.org.readthedocs.build/