mirror of https://github.com/rm-dr/daisy
Improved printing
parent
3126b4c616
commit
de8c461a7b
|
@ -107,12 +107,13 @@ fn main() -> Result<(), std::io::Error> {
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
match g {
|
match g {
|
||||||
Ok(Token::Number(v)) => {
|
Ok(q) => {
|
||||||
write!(
|
write!(
|
||||||
stdout, "\n {}{}={} {v}{}\r\n\n",
|
stdout, "\n {}{}={} {}{}\r\n\n",
|
||||||
style::Bold,
|
style::Bold,
|
||||||
color::Fg(color::Green),
|
color::Fg(color::Green),
|
||||||
style::Reset,
|
style::Reset,
|
||||||
|
q.print(),
|
||||||
color::Fg(color::Reset)
|
color::Fg(color::Reset)
|
||||||
)?;
|
)?;
|
||||||
},
|
},
|
||||||
|
@ -126,7 +127,6 @@ fn main() -> Result<(), std::io::Error> {
|
||||||
color::Fg(color::Reset),
|
color::Fg(color::Reset),
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
_ => panic!()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue