Minor tweaks to stop wasting horizontal space in the trace.
This commit is contained in:
Kartik Agaram 2019-12-22 07:48:53 -08:00
parent c357b103d1
commit c69f33143c
3 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ string unescape_newline(string& s) {
}
void dump_trace_line(ostream& s, trace_line& t) {
s << std::setw(4) << t.depth << ' ' << t.label << ": " << unescape_newline(t.contents) << '\n';
s << std::setw(2) << t.depth << ' ' << t.label << ": " << unescape_newline(t.contents) << '\n';
}
//: Starting a new trace line.

View File

@ -336,7 +336,7 @@ void dump_registers() {
ostringstream out;
out << "registers before: ";
for (int i = 0; i < NUM_INT_REGISTERS; ++i) {
if (i > 0) out << " ";
if (i > 0) out << " ";
out << i << ": " << std::hex << std::setw(8) << std::setfill('_') << Reg[i].u;
}
out << " -- SF: " << SF << "; ZF: " << ZF << "; CF: " << CF << "; OF: " << OF;

View File

@ -356,7 +356,7 @@ void render() { // Trace_index -> Last_printed_row, screen
else {
out << " ";
}
out << std::setw(4) << curr_line.depth << ' ' << curr_line.label << ": " << curr_line.contents;
out << std::setw(2) << curr_line.depth << ' ' << curr_line.label << ": " << curr_line.contents;
render_line(screen_row, out.str(), screen_row == Cursor_row);
}
// clear rest of screen