delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/14/00:52:04

Date: Sat, 14 Jun 1997 00:50:36 -0400 (EDT)
From: Timothy Robb <trobb AT neutrino DOT phys DOT laurentian DOT ca>
To: csantill AT lausd DOT k12 DOT ca DOT us
cc: djgpp AT delorie DOT com
Subject: Re: Cursor problem
Message-ID: <Pine.SGI.3.91.970614004236.2574A-100000@neutrino.phys.laurentian.ca>
MIME-Version: 1.0

You wrote djgpp mailing list regarding a problem with a "spinning cursor"
problem.

A mistakes you had was "For" instead of "for" which probably was the main 
problem you where having.  I also increased the nubmer of times it would 
display because at 100 I didn't notice much at all.

Here's the code revised which should work under djgpp (I tried it under 
gcc 2.7.2.1 under Linux).

Timothy Robb


#include <stdio.h>
 
void main(void)
{
 
  int c;
 
  for(c=0; c<10000; c++)
  {
      printf("\\\b");
      printf("|\b");
      printf("/\b");
      printf("-\b");
  }
 
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019