Make status line bold
Bolding the status line provides differentiation between output
of each command.
Test: status_test.go
Change-Id: I9d46761e69c5af0a0aa86c7921e121cfd2a3fc82
diff --git a/ui/terminal/smart_status.go b/ui/terminal/smart_status.go
index 9a4931c..8fa9eff 100644
--- a/ui/terminal/smart_status.go
+++ b/ui/terminal/smart_status.go
@@ -149,8 +149,10 @@
}
}
- // Move to the beginning on the line, print the output, then clear
- // the rest of the line.
- fmt.Fprint(s.writer, "\r", str, "\x1b[K")
+ // Move to the beginning on the line, turn on bold, print the output,
+ // turn off bold, then clear the rest of the line.
+ start := "\r\x1b[1m"
+ end := "\x1b[0m\x1b[K"
+ fmt.Fprint(s.writer, start, str, end)
s.haveBlankLine = false
}