Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/termlens/src/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ pub enum Color {
///
/// Inspect them per cell via [`Cell::style`], or snapshot them wholesale
/// with [`Screen::with_styles`] (plain snapshots stay text-only).
/// More terminal attributes may be added in future releases. To construct a
/// style for comparison, start from `Style::default()` and assign the fields
/// relevant to the assertion rather than using a struct literal.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[non_exhaustive]
pub struct Style {
/// Foreground color.
pub fg: Color,
Expand Down