/[grub]/grub/netboot/misc.c
ViewVC logotype

Diff of /grub/netboot/misc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by okuji, Sat Jan 5 18:41:34 2002 UTC revision 1.7 by okuji, Mon Feb 4 23:01:38 2002 UTC
# Line 1  Line 1 
1  /*  /*
2   *  GRUB  --  GRand Unified Bootloader   *  GRUB  --  GRand Unified Bootloader
3   *  Copyright (C) 2000, 2001  Free Software Foundation, Inc.   *  Copyright (C) 2000,2001,2002  Free Software Foundation, Inc.
4   *   *
5   *  This program is free software; you can redistribute it and/or modify   *  This program is free software; you can redistribute it and/or modify
6   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 34  sleep (int secs) Line 34  sleep (int secs)
34  void  void
35  twiddle (void)  twiddle (void)
36  {  {
37    grub_putchar('.');    static unsigned long lastticks = 0;
38      static int count = 0;
39      static const char tiddles[]="-\\|/";
40      unsigned long ticks;
41    
42      if (debug)
43        {
44          if ((ticks = currticks ()) == lastticks)
45            return;
46          
47          lastticks = ticks;
48          grub_putchar (tiddles[(count++) & 3]);
49          grub_putchar ('\b');
50        }
51  }  }
52    
53  /* Because Etherboot uses its own formats for the printf family,  /* Because Etherboot uses its own formats for the printf family,

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26