Move current line indicator

This commit is contained in:
Derek Parker 2014-12-01 21:13:08 -06:00
parent d8ff93d875
commit c4f79a36e5

@ -296,11 +296,12 @@ func printcontext(p *proctl.DebuggedProcess) error {
}
}
arrow := " "
if i == l {
line = "\033[34m=>\033[0m" + line
arrow = "=>"
}
context = append(context, fmt.Sprintf("\033[34m%d\033[0m: %s", i, line))
context = append(context, fmt.Sprintf("\033[34m%s %d\033[0m: %s", arrow, i, line))
}
} else {
fmt.Printf("Stopped at: 0x%x\n", regs.PC())