Re: [PATCH RISU v2 05/13] risugen: Be explicit about print destinations

2024-05-31 Thread Peter Maydell
On Thu, 30 May 2024 at 18:37, Richard Henderson wrote: > > On 5/30/24 05:51, Peter Maydell wrote: > >> @@ -87,13 +87,13 @@ sub progress_update($) > >> my $barlen = int($proglen * $done / $progmax); > >> if ($barlen != $lastprog) { > >> $lastprog = $barlen; > >> -

Re: [PATCH RISU v2 05/13] risugen: Be explicit about print destinations

2024-05-30 Thread Richard Henderson
On 5/30/24 05:51, Peter Maydell wrote: @@ -87,13 +87,13 @@ sub progress_update($) my $barlen = int($proglen * $done / $progmax); if ($barlen != $lastprog) { $lastprog = $barlen; -print "[" . "-" x $barlen . " " x ($proglen - $barlen) . "]\r"; +print STDOUT

Re: [PATCH RISU v2 05/13] risugen: Be explicit about print destinations

2024-05-30 Thread Peter Maydell
On Sun, 26 May 2024 at 20:38, Richard Henderson wrote: > > Printing directly to STDOUT and STDERR will allow the > print destination to be selected elsewhere. i.e. using 'select' to set the default filehandle for "print"? My instinct is to suspect that would be a bit confusing compared to

[PATCH RISU v2 05/13] risugen: Be explicit about print destinations

2024-05-26 Thread Richard Henderson
Printing directly to STDOUT and STDERR will allow the print destination to be selected elsewhere. Signed-off-by: Richard Henderson --- risugen_common.pm | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/risugen_common.pm b/risugen_common.pm index