while true for c in "|/-\" print c wait 0.25 print char(27) + "[2A" // move cursor up 2 lines end for end while