3 stable releases

2.3.0 Jul 19, 2023
2.2.0 Apr 29, 2022
1.0.0 Jul 5, 2021

#3 in #rebase


Used in 2 crates

GPL-3.0-or-later

145KB
4K SLoC

GIRT Display Crate

This crate is part of the larger Git Interactive Rebase Tool. The version is pinned to the root project, and this crate does not follow SemVer.


lib.rs:

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.

Dependencies

~13–27MB
~411K SLoC