On 2017-10-25, Rob Morley wrote:
> On Wed, 25 Oct 2017 01:19:10 +0000 (UTC)
> neverland@GOODEVEca.net (Pete) wrote:
>
>> There's one point that wasn't noted in all the above...
>> You need to aake sure the line being printed always has the same
>> length (as was in fact the case in the example). Otherwise you'll
>> get garbage left on the right. Simple solution -- add enough
>> trailing spaces to cover all cases...
>
> Actually it was mentioned:
>
> On Mon, 23 Oct 2017 22:09:54 -0400
> rickman wrote:
>
>> When updating a value you are displaying, don't forget to consider
>> formatting of the result. If your numbers change from 3 digits to 2
>> digits for example, the last digit of the previous value won't be
>> overwritten unless you use a fixed width format with spaces in front
>> for shorter numbers.
Perhaps, but the "trailing spaces" solution is more general-purpose.
--
/~\ cgibbs@kltpzyxm.invalid (Charlie Gibbs)
\ / I'm really at ac.dekanfrus if you read it the right way.
X Top-posted messages will probably be ignored. See RFC1855.
/ \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|