From 2bb19cc8477e7ed27f47397a49822c3a49bcfd4e Mon Sep 17 00:00:00 2001 From: githubert Date: Sat, 27 Aug 2016 21:37:42 +0200 Subject: Fix problem with colored output --- u | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u b/u index 8eb70b9..d91f756 100755 --- a/u +++ b/u @@ -29,7 +29,7 @@ my %commands = ( } my $result = $dbh->selectall_arrayref("SELECT * FROM tasks $modifier", { Slice => {} }); - + foreach my $task ( @$result ) { if ( $task->{checked} == "1" ) { print colored( "✔", "bold green" ); @@ -38,7 +38,7 @@ my %commands = ( } utf8::decode($task->{task}); - print colored(" $task->{task} ", $task->{verkackt} == "1" ? "underline yellow" : ""); + print colored(" $task->{task} ", $task->{verkackt} == "1" ? "underline yellow" : "reset"); print "[#", colored( "$task->{id}", "bold yellow" ), "]\n"; } }, -- cgit