TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: CHARLIE GIBBS
from: RICKMAN
date: 2017-10-27 16:51:00
subject: Re: Screen control

Charlie Gibbs wrote on 10/25/2017 10:14 AM:
> 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.

But then the number jumps around as the length changes.  It's perfectly
normal for the higher digits to disappear when they are zero.  It's very
disturbing to watch the numbers jump around on the screen.

--

Rick C

Viewed the eclipse at Wintercrest Farms,
on the centerline of totality since 1998

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.