summaryrefslogtreecommitdiff
path: root/ipl/procs/spin.icn
blob: 15567549b89eaa774930c8d062ff89b9c92a222a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
############################################################################
#
#	File:     spin.icn
#
#	Subject:  Procedure to spin cursor
#
#	Author:   Mark Otto
#
#	Date:     November 25, 1996
#
############################################################################
#
#   This file is in the public domain.
#
############################################################################
#
#	Contributor:  Ralph E. Griswold
#
############################################################################
#
#  This little procedure came from a discussion about how to produce
#  a spinning cursor.  The argument, if supplied, limits the number
#  of cycles.
#
############################################################################

procedure spin(n)

   /n := 2 ^ 30
   n *:= 4

   writes(" ")
   every writes(!|["\b-","\b\\","\b|","\b/"]) \ n

end