GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — gh-128317: Highlight today in colour in calendar CLI output by hugovk · Pull Request #128318 · python/cpython Conversation
|
|
|
Here's the calendar CLI 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_COLOR and NO_COLOR env vars can be used to override terminal colour detection.
📚 Documentation preview 📚: https://cpython-previews--128318.org.readthedocs.build/
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Peter Bierma <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks all for the reviews! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| :meth:`setfirstweekday` method. | ||
|
|
||
| .. versionchanged:: next | ||
| If *highlight_day* is given, this date is highlighted in color. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should this say “using terminal escape sequences”?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think it's more useful to describe the end result rather than the "how".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…thon#128318) Co-authored-by: Peter Bierma <[email protected]>
…thon#128318) Co-authored-by: Peter Bierma <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.