diff options
| author | mycroft <mycroft@NetBSD.org> | 1995-02-21 06:33:22 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1995-02-21 06:33:22 +0000 |
| commit | 2d7464c4b976d44fddba9bec304b0906bcc7621f (patch) | |
| tree | b118198bb7d4770b08505ffb2d98edd5aa7eb594 /sys/lib/libsa/printf.c | |
| parent | 559df5705c0eaba2f02c4fee8c47453c69a30b4c (diff) | |
Add a generic twiddler.
Diffstat (limited to 'sys/lib/libsa/printf.c')
| -rw-r--r-- | sys/lib/libsa/printf.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/lib/libsa/printf.c b/sys/lib/libsa/printf.c index 1d29e35b898..a70a64432c3 100644 --- a/sys/lib/libsa/printf.c +++ b/sys/lib/libsa/printf.c @@ -1,4 +1,4 @@ -/* $NetBSD: printf.c,v 1.4 1994/10/26 05:44:58 cgd Exp $ */ +/* $NetBSD: printf.c,v 1.5 1995/02/21 06:33:23 mycroft Exp $ */ /*- * Copyright (c) 1993 @@ -179,3 +179,12 @@ kprintn(ul, base) putchar(*--p); } while (p > buf); } + +void +twiddle() +{ + static int pos; + + putchar("|/-\\"[pos++ & 3]); + putchar('\b'); +} |
