Skip to content

Commit 542996c

Browse files
committed
📝 Document windows support
Resolves #27
1 parent 307173d commit 542996c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/terminal-colorsaurus/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! * Background and foreground color detection.
1010
//! * Uses a fast and reliable heuristic to detect if the terminal supports color querying.
1111
//! * *Correct* perceived lightness calculation.
12-
//! * Works on Windows (*soon*).
12+
//! * Works on Windows (starting with Windows Terminal v1.22).
1313
//! * Safely restores the terminal from raw mode even if the library errors or panicks.
1414
//! * Does not send any escape sequences if `TERM=dumb`.
1515
//! * Works even if all of stderr, stdout and stdin are redirected.

readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
[![Docs](https://img.shields.io/docsrs/terminal-colorsaurus/latest)](https://docs.rs/terminal-colorsaurus)
44
[![Crate Version](https://img.shields.io/crates/v/terminal-colorsaurus)](https://crates.io/crates/terminal-colorsaurus)
55

6-
76
Determines the background and foreground color of the terminal
87
using the `OSC 10` and `OSC 11` escape codes.
98

109
This library helps answer the question *«Is this terminal dark or light?»*.
1110

12-
Windows is unfortunately [not supported](./doc/windows.md).
11+
Works in all major terminals including Windows Terminal (starting with v1.22).
1312

1413
## Example
1514
```rust,no_run

0 commit comments

Comments
 (0)