in src/repl_helper.rs [61:77]
fn highlight_prompt<'b, 's: 'b, 'p: 'b>(
&'s self,
prompt: &'p str,
default: bool,
) -> Cow<'b, str> {
if default {
// FIXME: Use ansi crate
// FIXME: Find another way of determining state (than substring matching)
if prompt.contains("*") {
Owned(format!("\x1b[1;32m{}\x1b[0m", prompt))
} else {
Owned(format!("\x1b[1;34m{}\x1b[0m", prompt))
}
} else {
Borrowed(prompt)
}
}