Code

test-lib: fix color reset in say_color()
authorMiklos Vajna <vmiklos@frugalware.org>
Thu, 9 Oct 2008 22:07:10 +0000 (00:07 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 10 Oct 2008 15:01:40 +0000 (08:01 -0700)
commitb8eecafd888d219633f4c29e8b6a90fc21a46dfd
treef51ae90a6e733d702f5a7e1be3ff506b4f951c4c
parent838cd34664422863096f1a089f779bed1f00edf6
test-lib: fix color reset in say_color()

When executing a single test with colors enabled, the cursor was not set
back to the previous one, and you had to hit an extra enter to get it
back.

Work around this problem by calling 'tput sgr0' before printing the
final newline.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
t/test-lib.sh