Skip to content

feat(woad.Rust): add the dynamic colour API for 0.1.0-alpha1 - #3

Merged
synesissoftware merged 12 commits into
masterfrom
v0_1
Nov 19, 2026
Merged

synesissoftware merged 12 commits into
masterfrom
v0_1

Conversation

@synesissoftware

Copy link
Copy Markdown
Owner

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;

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;
Comment thread src/dynamic.rs Resolved
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.
@synesissoftware
synesissoftware merged commit 5047217 into master Nov 19, 2026
6 checks passed
@synesissoftware
synesissoftware deleted the v0_1 branch November 19, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants