Skip to main content

Module anstyle_utils

Module anstyle_utils 

Source
Expand description

Utilities for working with anstyle types and bridging to ratatui

Functionsยง

ansi_color_to_ratatui_color
Convert anstyle Color to ratatui Color directly
ansi_effects_to_ratatui_modifiers
Convert anstyle Effects to ratatui Modifiers
ansi_style_to_ratatui_style
Convert an style directly to a ratatui Style using manual mapping
anstyle_to_ratatui
Convert an anstyle Style to a ratatui Style using anstyle-crossterm as a bridge
bg_color
Create a ratatui Style with a background color from anstyle
bg_colored_with_effects
Create a ratatui Style with background color and effects
build_ratatui_style
A convenience function that combines color, background, and effects into a single ratatui Style
colored_with_effects
Create a ratatui Style with foreground color and effects
fg_bg_colors
Create a ratatui Style with foreground and background colors
fg_color
Create a ratatui Style with a foreground color from anstyle
full_style
Create a complete ratatui Style from anstyle colors and effects
with_effects
Create a ratatui Style with effects/modifiers