ColorTermRenderer: print the measurement name, not just the value
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user