TIP: Click on subject to list as thread! ANSI
echo: msged_echo
to: Paul Edwards
from: Michael Stapleton
date: 1997-03-23 15:29:38
subject: Msged ANSI

Hello Paul,

On Mar 20 22:56, 1997, Paul Edwards of 3:711/934.9 wrote:

MS>> for (x = x1; x <= x2; x++)
MS>> {
MS>> putchar(' ');
MS>> }

MS>> can be replaced by

MS>> printf("%*s", 1+x2-x1, "");

MS>> What do you think?

PE> If you've seen a speed improvement because of it, yeah, good idea.

Well, it seems a little faster, but I could be imagining things. :)

PE> I expect the fastest thing would be an fwrite to stdout from a
PE> static buffer filled with spaces.

That sounds right.

PE> But actually I thought the whole ANSI thing would have been
PE> ditched on the Amiga in favour of some native screen-drawing
PE> routines?  Like whatever ncomm is likely to use?

Sure, that's what I've been investigating with GBText. You see,
there are quite a few different levels of text handling on the Amiga
& I still haven't determined / decided which is the best for MsgEd.

At the lowest level, there is the Text() function, which I use in
Scrolltext & Scrollword.  Next, there is direct access of the
console.device, which I use in GBText.  Next, there is opening CON:
as a stream, etc, etc.

Michael Stapleton of Graphic Bits
@EOT:

--- Msged/AM 4.00
* Origin: Graphic Bits (3:711/934.33)
SEEN-BY: 711/934 712/624
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

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™.