From 20c8859cafec934fdca7fe8229200ab637a47ca2 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 11 Nov 2023 08:35:40 +0100 Subject: clean up output a bit --- bin/hafas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/hafas b/bin/hafas index cd3fe5a..38ac2ad 100755 --- a/bin/hafas +++ b/bin/hafas @@ -295,7 +295,7 @@ for my $res ( @{ $hafas->{results} } ) { } printf( - "# %02d:%02d %s %s\n", + "%02d:%02d %s %s\n", $res->duration->in_units( 'hours', 'minutes' ), display_occupancies( $res->load ), $glance ); @@ -314,7 +314,7 @@ for my $res ( @{ $hafas->{results} } ) { for my $sec ( $res->sections ) { if ( $sec->type eq 'JNY' ) { - printf( "%s → %s\n", $sec->name, $sec->direction ); + printf( "\033[1m%s\033[0m → %s\n", $sec->name, $sec->direction ); printf( "%-5s %-${have_delay}s ab %s\n", $sec->dep_datetime->strftime('%H:%M'), -- cgit v1.2.3