home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / 554 / JUIN / SPINCURS.PAS < prev    next >
Pascal/Delphi Source File  |  1993-10-07  |  812b  |  32 lines

  1. {─ Fido Pascal Conference ────────────────────────────────────────────── PASCAL ─
  2. Msg  : 303 of 355
  3. From : Sean Palmer                         1:104/123.0          11 Jun 93  00:38
  4. To   : All
  5. Subj : Spinning text cursor
  6. ────────────────────────────────────────────────────────────────────────────────
  7. Yes, more meaningless drivel from the bowels of my mind.
  8.  
  9. This is an example for the cursor I talked about to someone on here...}
  10.  
  11. program spinCursor;
  12.  
  13. uses crt;
  14.  
  15. var cursorState:byte;  {0..3}
  16.  
  17. const cursorData:array[0..3]of char=(#30,#17,#31,#16);
  18.  
  19. procedure updateCursor;begin
  20.  cursorState:=succ(cursorState)and 3;
  21.  write(cursorData[cursorState],^H);
  22.  end;
  23.  
  24. var i:integer;
  25. begin
  26.  for i:=1 to 100 do begin
  27.   gotoxy(1,1);
  28.   updateCursor;
  29.   gotoxy(1,41);
  30.   delay(100);
  31.   end;
  32.  end.