Function unwind_context::set_default_color_scheme
source · pub fn set_default_color_scheme(color_scheme: &'static AnsiColorScheme)
Available on crate feature
custom-default-colors
only.Expand description
Sets default ANSI color scheme for all threads.
This function uses atomic_ref
crate to modify a static AtomicRef
with
a default ANSI color scheme.
§Examples
unwind_context::set_default_color_scheme(&unwind_context::AnsiColorScheme {
default: "\u{1b}[0m",
location: "\u{1b}[31m",
fn_keyword: "\u{1b}[32m",
func_name: "\u{1b}[33m",
func_braces: "\u{1b}[34m",
value_braces: "\u{1b}[35m",
ident: "\u{1b}[36m",
item: "\u{1b}[37m",
boolean: "\u{1b}[91m",
number: "\u{1b}[92m",
quoted: "\u{1b}[93m",
escaped: "\u{1b}[94m",
});