* Render blog headers using a patched `ratatui-image` to export internal `Picker` fields which we use to construct our own picker based on guesses for what capabilities a terminal might have based on `$TERM_PROGRAM` values * Move truncate implementation into `content` module and have other modules import it * Add `terminal` module under `tui` for classifying different terminals and storing information regarding them * Update trait `Component::init` to supply a `TerminalInfo`, to help components adapt themselves to terminal emulator capabilities * Move rust toolchain back to stable, now version 1.87 * Increase rustfmt max width and chain width to 95
21 lines
614 B
Diff
21 lines
614 B
Diff
diff --git a/src/picker.rs b/src/picker.rs
|
|
index a8f4889..b5eaf5a 100644
|
|
--- a/src/picker.rs
|
|
+++ b/src/picker.rs
|
|
@@ -44,11 +44,11 @@ const DEFAULT_BACKGROUND: Rgba<u8> = Rgba([0, 0, 0, 0]);
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub struct Picker {
|
|
- font_size: FontSize,
|
|
- protocol_type: ProtocolType,
|
|
- background_color: Rgba<u8>,
|
|
- is_tmux: bool,
|
|
- capabilities: Vec<Capability>,
|
|
+ pub font_size: FontSize,
|
|
+ pub protocol_type: ProtocolType,
|
|
+ pub background_color: Rgba<u8>,
|
|
+ pub is_tmux: bool,
|
|
+ pub capabilities: Vec<Capability>,
|
|
}
|
|
|
|
/// Serde-friendly protocol-type enum for [Picker].
|