diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-02 02:27:14 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-02 02:31:12 +0300 |
| commit | cc527d45fe4821cb11c484372a9f25c51c02e078 (patch) | |
| tree | 2e3411b39576b0910eba75e2b5b77c5e4e398e74 /src/protocol/wire.rs | |
| parent | f7d315d494b6a3d583574012526d15c1ddc82bfe (diff) | |
perf: retain terminal render updates
Diffstat (limited to 'src/protocol/wire.rs')
| -rw-r--r-- | src/protocol/wire.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol/wire.rs b/src/protocol/wire.rs index 576c4135..a64a06d5 100644 --- a/src/protocol/wire.rs +++ b/src/protocol/wire.rs @@ -401,7 +401,7 @@ pub enum ServerMessage { /// - Named colors (Reset, Black, …, White) → `0x00_00_00_XX` where XX is 0..=16 /// - Indexed palette → `0x01_00_00_XX` where XX is the palette index /// - RGB → `0x02_RR_GG_BB` with components in the lower 3 bytes -fn color_to_u32(color: ratatui::style::Color) -> u32 { +pub(crate) fn color_to_u32(color: ratatui::style::Color) -> u32 { match color { ratatui::style::Color::Reset => 0x00_00_00_00, ratatui::style::Color::Black => 0x00_00_00_01, @@ -463,7 +463,7 @@ fn u32_to_color(val: u32) -> ratatui::style::Color { } /// Converts a ratatui `Modifier` bitmask to a u16 for wire transport. -fn modifier_to_u16(modifier: ratatui::style::Modifier) -> u16 { +pub(crate) fn modifier_to_u16(modifier: ratatui::style::Modifier) -> u16 { modifier.bits() } |
