Skip to main content

rl_lang/interpreter/stdlib/terminal/
reset_color.rs

1use crate::interpreter::{
2    evaluator::Evaluator,
3    stdlib::common::{try_fn, verr, vnl, vok, vs},
4    values::Value,
5};
6use crossterm::{execute, style::ResetColor};
7use std::io::stdout;
8
9pub fn func(_: &mut Evaluator) -> Value {
10    try_fn!("term_reset_color", execute!(stdout(), ResetColor));
11    vok!(vnl!())
12}