Skip to content

Commit

Permalink
Document variable timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jan 17, 2024
1 parent e28ccb3 commit 2df4ac8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,19 @@
//! ```
//!
//! ## Variable Timeout
//! TODO
//! Knowing whether or not a terminal supports querying for the
//! foreground and background colors hard to reliably detect.
//! Employing a fixed timeout is not the best options because the terminal might support the sequence
//! but have a lot of latency (e.g. the user is connected over SSH).
//!
//! This library assumes that the terminal support the [widely supported][terminal-survey] `CSI c` sequence.
//! Using this, it measures the latency. This measurement then informs the timeout enforced on the actual query.
//!
//! ## Comparison with Other Libraries
//! * termbg: TODO
//! * dark-light: TODO
//!
//! [terminal-survey]: https://github.com/bash/term-color/blob/main/doc/terminal-survey.md
use std::io;
use std::time::Duration;
Expand Down

0 comments on commit 2df4ac8

Please sign in to comment.