Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 1999 16:48:10 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        spoofy@ghg.net
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: That spinning thing
Message-ID:  <19990502164810.B19726@dan.emsphone.com>
In-Reply-To: <199905021231.HAA01615@spoofy.ghg.net>; from "spoofy@ghg.net" on Sun May  2 07:31:20 GMT 1999
References:  <199905021231.HAA01615@spoofy.ghg.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 02), spoofy@ghg.net said:
> I know this sounds really dumb. but where can i get the source to
> that spinning thing? It is displayed by bootloader at start up it is
> somthing like this -> | / - \ | (repeat)

void spin()
{
	static unsigned c = 0x2d5c7c2f;
	printf("%c\b", c = c << 8 | c >> 24);
	fflush(stdout);
}

reader's exercise:  figure out why it works.

	-Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990502164810.B19726>