Skip to content

0.1.0-alpha1 - #4

Merged
synesissoftware merged 4 commits into
masterfrom
full
Nov 17, 2026
Merged

synesissoftware merged 4 commits into
masterfrom
full

Conversation

@synesissoftware

Copy link
Copy Markdown
Owner
  • Added BOLD and BLINKING SGR sequences;
  • Added cached colour_policy() (returning ColourPolicy, discriminants 0, 1, and 2), refresh(), is_tty(), supports_colour(), and seq_for() for the portable half of the woad 0.3.0 colour contract (Unix terminal attachment via std::io::IsTerminal);
  • Windows virtual-terminal mode and mintty PTY recognition are not in this alpha;
  • Documented the colour environment variables and their accepted forms in README.md, including Developer Experience commands that force or suppress colour and that pipe the example to cat;
  • Moved the fixed SGR sequences into private src/sequences.rs, re-exported at the crate root;

- Ship `BOLD`, `BLINKING`, cached `colour_policy()` / `refresh()`, and
  `IsTerminal` queries (`is_tty`, `supports_colour`, `seq_for`) for
  decision rows 1-22;
- document the colour environment variables in **README.md**, including
  Developer Experience commands that force or suppress colour and that pipe
  the example to `cat`;
- move the fixed SGR sequences into private **src/sequences.rs** and
  re-export them at the crate root;
- leave Windows virtual-terminal mode and mintty PTY recognition out of
  this alpha.
Replace the integer policy constants with a `ColourPolicy` enum whose
discriminants stay 0, 1, and 2. Name the cache mutex `CACHE_GATE` and the
thread-local hold flag `CACHE_HELD`, and keep `ClearCacheHeld` inside
`with_environment`. Document the cache and the private helpers.
A foreign `open` is now rejected because it does not match the variadic C
runtime symbol. Open the slave through `OpenOptions` and keep `O_NOCTTY`.
Matrix both jobs across the three runners. Keep rustfmt, the doc checkers,
and the publish dry-run on Ubuntu.
@synesissoftware
synesissoftware merged commit 2cef1c3 into master Nov 17, 2026
6 checks passed
@synesissoftware
synesissoftware deleted the full branch November 17, 2026 01:15
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