Skip to main content

RESET_FG

Constant RESET_FG 

Source
pub const RESET_FG: &str = "\u{1b}[39m";
Expand description

Reset the foreground color to the default foreground color.

Equivalent to CSI 3 9 m

This doesn’t affect FAINT mode.

use termal_core::codes;

let mut buf = codes::CLEAR.to_string();

buf += codes::GRAY_BG;
buf += codes::YELLOW_FG;
buf += "fg and bg";
buf += codes::RESET_FG;
buf += " bg only";
buf += codes::RESET;

println!("{buf}");

§Result in terminal