skeleton continues
This commit is contained in:
parent
bcd11513ef
commit
e5d0bdf0c0
5 changed files with 161 additions and 101 deletions
12
src/color.rs
12
src/color.rs
|
|
@ -34,10 +34,16 @@ impl Display for _LazyLockDisplay {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) const ANSI_GREEN: _LazyLockDisplay = _LazyLockDisplay(LazyLock::new(|| {
|
||||
SHOULD_COLOR.then_some("\x1b[32m").unwrap_or_default()
|
||||
}));
|
||||
|
||||
pub(crate) const ANSI_MAGENTA: _LazyLockDisplay = _LazyLockDisplay(LazyLock::new(|| {
|
||||
SHOULD_COLOR.then_some("\x1b[35m").unwrap_or_default()
|
||||
}));
|
||||
|
||||
pub(crate) const ANSI_CYAN: _LazyLockDisplay = _LazyLockDisplay(LazyLock::new(|| {
|
||||
SHOULD_COLOR
|
||||
.then_some("\x1b[36m")
|
||||
.unwrap_or_default()
|
||||
SHOULD_COLOR.then_some("\x1b[36m").unwrap_or_default()
|
||||
}));
|
||||
|
||||
pub(crate) const ANSI_RESET: _LazyLockDisplay = _LazyLockDisplay(LazyLock::new(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue