Repository navigation
feat(woad.Rust): add the dynamic colour API for 0.1.0-alpha1 - #3
Merged
Merged
Conversation
Match woad's off-Windows dynamic API: environment colour policy, stream-conditional sequences, and the packed version word. - Read `WOAD_COLOUR` / `WOAD_COLOR`, `NO_COLOR`, `CLICOLOR_FORCE`, and `CLICOLOR` once, until `refresh()`; - Gate sequences on `IsTerminal`, with Unix `AsFd` equivalents of the descriptor functions; - Report version 0.1.0-alpha1, packed as **woad** `WOAD_VER` with relstatus `0x41`; - Leave Windows console-mode and handle currencies for a later alpha;
GarthJL1965
approved these changes
Oct 22, 2026
mwsis
approved these changes
Oct 23, 2026
Keep reset_for, bold_for, and blinking_for. Remove fg_for, bg_for, and the stream_ aliases of is_tty, supports_colour, and seq_for. Report 0.1.0-alpha2, with packed relstatus 0x42.
Keep VERSION, the VERSION_* components, version(), and version_string() at the crate root. The private module is crate_version because the name version is the public function.
Move the descriptor, absent-destination, and attribute helpers into the colour-policy module. Keep their crate-root names. Make supports_when_attached private.
Restore the tagged 0.1.0-alpha1 notes in CHANGES.md and NEWS.md. Describe 0.1.0-alpha2 as the packed version word, the attribute helpers, and the descriptor, absent-destination, and console_supports_ansi additions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Match woad's off-Windows dynamic API: environment colour policy, stream-conditional sequences, and the packed version word.
WOAD_COLOUR/WOAD_COLOR,NO_COLOR,CLICOLOR_FORCE, andCLICOLORonce, untilrefresh();IsTerminal, with UnixAsFdequivalents of the descriptor functions;WOAD_VERwith relstatus0x41;