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 |
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, |