Subject: Re: fdformat output bug
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 04/20/2004 00:16:21
In article <20040419233640.GM14175@sanctum.takilma.net>,
Ben Collver <collver1@comcast.net> wrote:
>/usr/bin/fdformat has an output bug on some terminals.
>
>The program outputs a F to represent a successfully formatted track, then a
>\b, then a V to represent a verified good track.  The problem occurs in
>xterm and at the wscons/vt100 console, when a character is printed at the
>last column of the screen.  The cursor does not advance to the next line.
>When the \b is printed, the cursor spaces back to the penultimate column.
>The V overwrites the last V, and then the F overwrites the last F.  The
>output should go on to the next row, but it doesn't.
>
>This problem has been reported with a fix from Ryo HAYASAKA in
>bin/15897.  Does this fix look appropriate?

Looks fine to me. The alternative is to print ' \b\bV'

christos