pub struct Grid {Show 25 fields
pub changed_colors: Option<[Option<AnsiCode>; 256]>,
pub should_render: bool,
pub lock_renders: bool,
pub cursor_key_mode: bool,
pub bracketed_paste_mode: bool,
pub erasure_mode: bool,
pub sixel_scrolling: bool,
pub insert_mode: bool,
pub disable_linewrap: bool,
pub new_line_mode: bool,
pub clear_viewport_before_rendering: bool,
pub width: usize,
pub height: usize,
pub pending_messages_to_pty: Vec<Vec<u8>>,
pub selection: Selection,
pub title: Option<String>,
pub is_scrolled: bool,
pub link_handler: Rc<RefCell<LinkHandler>>,
pub ring_bell: bool,
pub mouse_mode: MouseMode,
pub mouse_tracking: MouseTracking,
pub focus_event_tracking: bool,
pub search_results: SearchResult,
pub pending_clipboard_update: Option<String>,
pub supports_kitty_keyboard_protocol: bool,
/* private fields */
}Fields§
§changed_colors: Option<[Option<AnsiCode>; 256]>§should_render: bool§lock_renders: bool§cursor_key_mode: bool§bracketed_paste_mode: bool§erasure_mode: bool§sixel_scrolling: bool§insert_mode: bool§disable_linewrap: bool§new_line_mode: bool§clear_viewport_before_rendering: bool§width: usize§height: usize§pending_messages_to_pty: Vec<Vec<u8>>§selection: Selection§title: Option<String>§is_scrolled: bool§link_handler: Rc<RefCell<LinkHandler>>§ring_bell: bool§mouse_mode: MouseMode§mouse_tracking: MouseTracking§focus_event_tracking: bool§search_results: SearchResult§pending_clipboard_update: Option<String>§supports_kitty_keyboard_protocol: boolImplementations§
Source§impl Grid
impl Grid
pub fn new( rows: usize, columns: usize, terminal_emulator_colors: Rc<RefCell<Palette>>, terminal_emulator_color_codes: Rc<RefCell<HashMap<usize, String>>>, link_handler: Rc<RefCell<LinkHandler>>, character_cell_size: Rc<RefCell<Option<SizeInPixels>>>, sixel_image_store: Rc<RefCell<SixelImageStore>>, style: Style, debug: bool, arrow_fonts: bool, styled_underlines: bool, explicitly_disable_kitty_keyboard_protocol: bool, ) -> Self
pub fn render_full_viewport(&mut self)
pub fn update_line_for_rendering(&mut self, line_index: usize)
pub fn advance_to_next_tabstop(&mut self, styles: RcCharacterStyles)
pub fn move_to_previous_tabstop(&mut self)
pub fn cursor_shape(&self) -> CursorShape
pub fn scrollback_position_and_length(&self) -> (usize, usize)
pub fn scroll_up_one_line(&mut self) -> bool
pub fn scroll_down_one_line(&mut self) -> bool
pub fn force_change_size(&mut self, new_rows: usize, new_columns: usize)
pub fn change_size(&mut self, new_rows: usize, new_columns: usize)
pub fn as_character_lines(&self) -> Vec<Vec<TerminalCharacter>>
pub fn read_changes( &mut self, x_offset: usize, y_offset: usize, ) -> (Vec<CharacterChunk>, Vec<SixelImageChunk>)
pub fn serialize( &self, scrollback_lines_to_serialize: Option<usize>, ) -> Option<String>
pub fn render( &mut self, content_x: usize, content_y: usize, style: &Style, ) -> Result<Option<(Vec<CharacterChunk>, Option<String>, Vec<SixelImageChunk>)>>
pub fn cursor_coordinates(&self) -> Option<(usize, usize)>
pub fn is_mid_frame(&self) -> bool
Sourcepub fn clear_screen(&mut self)
pub fn clear_screen(&mut self)
Clears all buffers with text for a current screen
Sourcepub fn dump_screen(&self, full: bool) -> String
pub fn dump_screen(&self, full: bool) -> String
Dumps all lines above terminal vieport and the viewport itself to a string
pub fn move_viewport_up(&mut self, count: usize)
pub fn move_viewport_down(&mut self, count: usize)
pub fn reset_viewport(&mut self)
pub fn rotate_scroll_region_up(&mut self, count: usize)
pub fn rotate_scroll_region_down(&mut self, count: usize)
pub fn fill_viewport(&mut self, character: TerminalCharacter)
pub fn add_canonical_line(&mut self)
pub fn move_cursor_to_beginning_of_line(&mut self)
pub fn add_character_at_cursor_position( &mut self, terminal_character: TerminalCharacter, should_insert_character: bool, )
pub fn add_character(&mut self, terminal_character: TerminalCharacter)
pub fn get_character_under_cursor(&self) -> Option<TerminalCharacter>
pub fn get_absolute_character_index(&self, x: usize, y: usize) -> Option<usize>
pub fn move_cursor_forward_until_edge(&mut self, count: usize)
pub fn replace_characters_in_line_after_cursor( &mut self, replace_with: TerminalCharacter, )
pub fn replace_characters_in_line_before_cursor( &mut self, replace_with: TerminalCharacter, )
pub fn clear_all_after_cursor(&mut self, replace_with: TerminalCharacter)
pub fn clear_all_before_cursor(&mut self, replace_with: TerminalCharacter)
pub fn clear_cursor_line(&mut self)
pub fn clear_all(&mut self, replace_with: TerminalCharacter)
pub fn move_cursor_to( &mut self, x: usize, y: usize, pad_character: TerminalCharacter, )
pub fn move_cursor_up(&mut self, count: usize)
pub fn move_cursor_up_with_scrolling(&mut self, count: usize)
pub fn move_cursor_down_until_edge_of_screen( &mut self, count: usize, pad_character: TerminalCharacter, )
pub fn move_cursor_back(&mut self, count: usize)
pub fn hide_cursor(&mut self)
pub fn show_cursor(&mut self)
pub fn set_scroll_region( &mut self, top_line_index: usize, bottom_line_index: Option<usize>, )
pub fn set_scroll_region_to_viewport_size(&mut self)
pub fn delete_lines_in_scroll_region( &mut self, count: usize, pad_character: TerminalCharacter, )
pub fn add_empty_lines_in_scroll_region( &mut self, count: usize, pad_character: TerminalCharacter, )
pub fn move_cursor_to_column(&mut self, column: usize)
pub fn move_cursor_to_line( &mut self, line: usize, pad_character: TerminalCharacter, )
pub fn replace_with_empty_chars( &mut self, count: usize, empty_char_style: RcCharacterStyles, )
pub fn mark_for_rerender(&mut self)
pub fn reset_terminal_state(&mut self)
pub fn start_selection(&mut self, start: &Position)
pub fn update_selection(&mut self, to: &Position)
pub fn end_selection(&mut self, end: &Position)
pub fn reset_selection(&mut self)
pub fn get_selected_text(&self) -> Option<String>
pub fn absolute_position_in_scrollback(&self) -> usize
pub fn last_index_in_line(&self, position: &Position) -> Option<usize>
pub fn word_around_position( &self, position: &Position, ) -> Option<(Position, Position)>
pub fn canonical_line_around_position( &self, position: &Position, ) -> Option<(Position, Position)>
pub fn mouse_event_signal(&self, event: &MouseEvent) -> Option<String>
pub fn mouse_left_click_signal( &self, position: &Position, is_held: bool, ) -> Option<String>
pub fn mouse_left_click_release_signal( &self, position: &Position, ) -> Option<String>
pub fn mouse_right_click_signal( &self, position: &Position, is_held: bool, ) -> Option<String>
pub fn mouse_right_click_release_signal( &self, position: &Position, ) -> Option<String>
pub fn mouse_middle_click_signal( &self, position: &Position, is_held: bool, ) -> Option<String>
pub fn mouse_middle_click_release_signal( &self, position: &Position, ) -> Option<String>
pub fn mouse_scroll_up_signal(&self, position: &Position) -> Option<String>
pub fn mouse_scroll_down_signal(&self, position: &Position) -> Option<String>
pub fn is_alternate_mode_active(&self) -> bool
pub fn focus_event(&self) -> Option<String>
pub fn unfocus_event(&self) -> Option<String>
pub fn delete_viewport_and_scroll(&mut self)
pub fn reset_cursor_position(&mut self)
pub fn lock_renders(&mut self)
pub fn unlock_renders(&mut self)
pub fn update_theme(&mut self, theme: Styling)
pub fn update_arrow_fonts(&mut self, should_support_arrow_fonts: bool)
pub fn has_selection(&self) -> bool
Source§impl Grid
impl Grid
pub fn search_down(&mut self)
pub fn search_up(&mut self)
pub fn clear_search(&mut self)
pub fn set_search_string(&mut self, needle: &str)
pub fn search_viewport(&mut self)
pub fn toggle_search_case_sensitivity(&mut self)
pub fn toggle_search_wrap(&mut self)
pub fn toggle_search_whole_words(&mut self)
Trait Implementations§
Source§impl Perform for Grid
impl Perform for Grid
Source§fn hook(
&mut self,
params: &Params,
intermediates: &[u8],
_ignore: bool,
c: char,
)
fn hook( &mut self, params: &Params, intermediates: &[u8], _ignore: bool, c: char, )
Invoked when a final character arrives in first part of device control string. Read more
Source§fn put(&mut self, byte: u8)
fn put(&mut self, byte: u8)
Pass bytes as part of a device control string to the handle chosen in
hook. C0 controls
will also be passed to the handler.Source§fn osc_dispatch(&mut self, params: &[&[u8]], bell_terminated: bool)
fn osc_dispatch(&mut self, params: &[&[u8]], bell_terminated: bool)
Dispatch an operating system command.
Auto Trait Implementations§
impl Freeze for Grid
impl !RefUnwindSafe for Grid
impl !Send for Grid
impl !Sync for Grid
impl Unpin for Grid
impl !UnwindSafe for Grid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
Source§fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>
fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>
Change the foreground color to black
Source§fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>
fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>
Change the background color to black
Source§fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>
fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>
Change the foreground color to red
Source§fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>
fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>
Change the background color to red
Source§fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>
fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>
Change the foreground color to green
Source§fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>
fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>
Change the background color to green
Source§fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>
fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>
Change the foreground color to yellow
Source§fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
Change the background color to yellow
Source§fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>
fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>
Change the foreground color to blue
Source§fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>
fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>
Change the background color to blue
Source§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
Change the foreground color to magenta
Source§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
Change the background color to magenta
Source§fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
Change the foreground color to purple
Source§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
Change the background color to purple
Source§fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>
fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>
Change the foreground color to cyan
Source§fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>
fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>
Change the background color to cyan
Source§fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>
fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>
Change the foreground color to white
Source§fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>
fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>
Change the background color to white
Source§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
Change the foreground color to the terminal default
Source§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
Change the background color to the terminal default
Source§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
Change the foreground color to bright black
Source§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
Change the background color to bright black
Source§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
Change the foreground color to bright red
Source§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
Change the background color to bright red
Source§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
Change the foreground color to bright green
Source§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
Change the background color to bright green
Source§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
Change the foreground color to bright yellow
Source§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
Change the background color to bright yellow
Source§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
Change the foreground color to bright blue
Source§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
Change the background color to bright blue
Source§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright magenta
Source§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
Change the background color to bright magenta
Source§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright purple
Source§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
Change the background color to bright purple
Source§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
Change the foreground color to bright cyan
Source§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
Change the background color to bright cyan
Source§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
Change the foreground color to bright white
Source§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
Change the background color to bright white
Source§fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>
fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>
Make the text bold
Source§fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>
fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>
Make the text dim
Source§fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>
fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>
Make the text italicized
Source§fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>
fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>
Make the text italicized
Source§fn blink<'a>(&'a self) -> BlinkDisplay<'a, Self>
fn blink<'a>(&'a self) -> BlinkDisplay<'a, Self>
Make the text blink
Source§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
Make the text blink (but fast!)
Source§fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>
fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>
Swap the foreground and background colors
Hide the text
Source§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
Cross out the text
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.