delorie.com/archives/browse.cgi | search |
Date: | Thu, 17 May 2001 21:36:30 +0300 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | Michiel de Bondt <michielb AT sci DOT kun DOT nl> |
Message-Id: | <7458-Thu17May2001213629+0300-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <3B03FA52.8A3EC8A3@sci.kun.nl> (message from Michiel de Bondt on |
Thu, 17 May 2001 18:20:34 +0200) | |
Subject: | Re: how to flush cprintf output |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1010517182219 DOT 14151H AT is> <3B03FA52 DOT 8A3EC8A3 AT sci DOT kun DOT nl> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Michiel de Bondt <michielb AT sci DOT kun DOT nl> > Newsgroups: comp.os.msdos.djgpp > Date: Thu, 17 May 2001 18:20:34 +0200 > > > > The cprintf ("\b \b")'s might be done in a procedure > > > called by an alarm event. > > > > This just adds to complexity. I'd advise against such complex design, > > just to print and remove a message. > > > > What do you suggest. I wish to control the frequency of printing > progress info: asteriks or search path. There must not be to much > printing, since that will affect the speed of the algorithm. Just do the printing and the removal of the previous print-out from the same routine which is called by the timer. > Removal of > the asterisks can be done by another procedure, but the old progress > value must be read in order to get the right number of "\b \b"'s to > be printed. Why can't you remove all of it? Perhaps you should modify how the progress indicator looks, to know how to erase in advance.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |