diff options
Diffstat (limited to 'examples/spinner.lua')
| -rw-r--r-- | examples/spinner.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/spinner.lua b/examples/spinner.lua index 5526adc..e518e60 100644 --- a/examples/spinner.lua +++ b/examples/spinner.lua | |||
| @@ -44,8 +44,8 @@ local spinner do | |||
| 44 | i = i + 1 | 44 | i = i + 1 |
| 45 | if i > #spin then i = 1 end | 45 | if i > #spin then i = 1 end |
| 46 | 46 | ||
| 47 | if sys.keypressed() then | 47 | if sys.readkey(0) ~= nil then |
| 48 | sys.readkey() -- consume key pressed | 48 | while sys.readkey(0) ~= nil do end -- consume keys pressed |
| 49 | io.write(" "); | 49 | io.write(" "); |
| 50 | left() | 50 | left() |
| 51 | showCursor() | 51 | showCursor() |
