Spinning rod animation/Text: Difference between revisions

→‎{{header|Ruby}}: Changed charset to Raku's
(add lambdatalk code)
(→‎{{header|Ruby}}: Changed charset to Raku's)
Line 1,412:
 
=={{header|Ruby}}==
Chars taken from the Raku example.
<syntaxhighlight lang="ruby">def spinning_rod
begin
printf("\033[?25l") # Hide cursor
%w[| / - \\]'🌑🌒🌓🌔🌕🌖🌗🌘'.chars.cycle do |rod|
print rod
sleep 0.25
print "\br"
end
ensure
1,149

edits