ColorTermRenderer: print the measurement name, not just the value

This commit is contained in:
2022-09-01 21:44:38 -07:00
parent e868f493fb
commit ea3ea63488

View File

@@ -454,7 +454,7 @@ impl<S: AbstractSim> Renderer<S> for ColorTermRenderer {
for m in measurements {
// Measurements can be slow to compute
stdout.flush().unwrap();
let meas_string = m.pretty_print();
let meas_string = format!("{}: \t{}", m.name(), m.pretty_print());
stdout.queue(cursor::MoveDown(1)).unwrap();
stdout.queue(cursor::MoveToColumn(1)).unwrap();
stdout.queue(PrintStyledContent(style(meas_string))).unwrap();