From 859a79923a1e9df7195e1320d66b61ee162f52cc Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 27 Jan 2021 16:47:08 +0000 Subject: Migrate some stuff away from print_format. --- make/console.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'make/console.pm') diff --git a/make/console.pm b/make/console.pm index 278c97d0f..50df77ea5 100644 --- a/make/console.pm +++ b/make/console.pm @@ -76,17 +76,17 @@ sub print_format($;$) { } sub print_error { - print_format "<|RED Error:|> ", *STDERR; + print STDERR console_format "<|RED Error:|> "; for my $line (@_) { - print_format "$line\n", *STDERR; + say STDERR console_format $line; } exit 1; } sub print_warning { - print_format "<|YELLOW Warning:|> ", *STDERR; + print STDERR console_format "<|YELLOW Warning:|> "; for my $line (@_) { - print_format "$line\n", *STDERR; + print STDERR console_format $line; } } @@ -119,8 +119,8 @@ sub prompt_dir($$$;$) { sub prompt_string($$$) { my ($interactive, $question, $default) = @_; return $default unless $interactive; - print_format "$question\n"; - print_format "[<|GREEN $default|>] => "; + say console_format $question; + say console_format "[<|GREEN $default|>] => "; chomp(my $answer = ); say ''; return $answer ? $answer : $default; -- cgit v1.2.3