From 83764affa6cf03e4514874ee52ec85f40cd96acc Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Fri, 17 Oct 2014 14:47:30 -0500 Subject: [PATCH] Add color to context output --- command/command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/command.go b/command/command.go index 8ca7122c..8a72d9ec 100644 --- a/command/command.go +++ b/command/command.go @@ -236,10 +236,10 @@ func printcontext(p *proctl.DebuggedProcess) error { } if i == l { - line = "=>" + line + line = "\033[34m=>\033[0m" + line } - line = strconv.Itoa(i) + ": " + line + line = "\033[34m" + strconv.Itoa(i) + "\033[0m" + ": " + line context = append(context, line) }