Expand description
Git Interactive Rebase Tool - Display Module
Description
This module is used to handle working with the terminal display.
use config::Theme;
use display::{CrossTerm, Display, DisplayColor};
let theme = Theme::new();
let tui = CrossTerm::new();
let mut display = Display::new(tui, &theme);
display.start();
display.clear();
display.draw_str("Hello world!");
display.color(DisplayColor::IndicatorColor, false);
display.set_style(false, true, false);
display.draw_str("Hello colorful, underlined world!");
display.refresh();
display.end();
Test Utilities
To facilitate testing the usages of this crate, a set of testing utilities are provided. Since these utilities are not tested, and often are optimized for developer experience than performance should only be used in test code.
Modules
- Utilities for writing tests that interact with the display.
Structs
- A thin wrapper over the Crossterm library.
- A high level interface to the terminal display.
- Represents a terminal window size.
Enums
- Represents the color mode of a terminal interface.
- An abstraction of colors to display.
- A display error.
Traits
- An interface that describes interactions with a terminal interface.