home *** CD-ROM | disk | FTP | other *** search
- Path: ntc.nokia.com!usenet
- From: Harald Zottmann <harald.zottmann@ntc.nokia.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Need little C Help! (How to make caracters apear on the same spot again and again?)
- Date: Mon, 26 Feb 1996 15:07:58 +0100
- Organization: Nokia Group
- Message-ID: <3131BEBE.64FB@ntc.nokia.com>
- References: <4gjudo$i95@news.xs4all.nl>
- NNTP-Posting-Host: silvia.trs.ntc.nokia.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- Joel Wijngaarde wrote:
- >
- > Hello,
- >
- > Can somebody tel me how i can make a counter in C wich counts at the same
- > screen position. I'm mean something like the in the program 'Lha'. This
- > program counts the bytes, that are (un)packed. The number of bytes
- > increases on the same spot; NOT like this:
- > 1 2 3 4 5 6 7 8 9 10 11 12 etc....
-
- Just do it like this:
- .
- .
- printf ("\n");
- for (i=0; i < 100; i++)
- {
- printf ("%d \r",i);
- }
- .
- .
- Note that this may cause troubles under UNIX,
- because some UNIX systems won't output their
- buffer untit there is the newline sequence "\n".
- If i remember right, you have to use the flush()
- function then.
- The Amiga however doesn't need that stuff.
- >
- > Thanks in advance!
- >
- > --
- > Joel Wijngaarde (Physics student) vasquez@xs4all.nl
- >
- > All science is either physics or stamp collecting.
- > -- E. Rutherford
-