From c4f79a36e5c29cc9082b38c16037f126e293d9b7 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Mon, 1 Dec 2014 21:13:08 -0600 Subject: [PATCH] Move current line indicator --- command/command.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/command/command.go b/command/command.go index 8419d44c..deae0084 100644 --- a/command/command.go +++ b/command/command.go @@ -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())