1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
use enumset::EnumSetType;
/// Text effect
#[allow(clippy::derive_hash_xor_eq)] // We do derive it through EnumSetType
#[derive(EnumSetType, Debug, Hash)]
pub enum Effect {
/// No effect
Simple,
/// Reverses foreground and background colors
Reverse,
/// Prints foreground as "dim" or "faint" (has no effect for ncurses/pancurses/blt backends)
Dim,
/// Prints foreground in bold
Bold,
/// Prints foreground in italic
Italic,
/// Prints foreground with strikethrough (has no effect for ncurses and blt backends)
Strikethrough,
/// Prints foreground with underline
Underline,
/// Foreground text blinks (background color is static).
Blink,
}