config: default cursor style/blink and visual bell

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ibd512084374fe4723ee267a916187af56a6a6964
This commit is contained in:
raf 2026-06-25 10:59:01 +03:00
commit 0738ce3b6f
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
4 changed files with 90 additions and 1 deletions

View file

@ -138,6 +138,13 @@ impl Theme {
pub fn reset_bg(&mut self) {
self.bg = self.default_bg;
}
/// A copy with foreground and background swapped, for the visual bell flash.
pub fn inverted(&self) -> Self {
let mut t = self.clone();
std::mem::swap(&mut t.fg, &mut t.bg);
t
}
}
/// Foreground/background used for `Color::Default`.