summaryrefslogtreecommitdiff
path: root/bin/hafas
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-11 08:35:40 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-11 08:35:40 +0100
commit20c8859cafec934fdca7fe8229200ab637a47ca2 (patch)
tree05a9aecfdf01fee1154692b5411f8272754555c9 /bin/hafas
parent20e896f5b73c9bc4cc40ef9bf0428a4d17cf1ee8 (diff)
clean up output a bit
Diffstat (limited to 'bin/hafas')
-rwxr-xr-xbin/hafas4
1 files changed, 2 insertions, 2 deletions
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'),