Anonymous user
Terminal control/Hiding the cursor: Difference between revisions
Terminal control/Hiding the cursor (view source)
Revision as of 17:28, 2 February 2018
, 6 years agoAdd Python solution
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
(Add Python solution) |
||
Line 304:
Print("press [Enter] to continue ... ") : Input()
EndIf</lang>
=={{header|Python}}==
<lang python>import curses
import time
stdscr = curses.initscr()
curses.curs_set(1) # visible
time.sleep(2)
curses.curs_set(0) # invisible
time.sleep(2)
curses.curs_set(1) # visible
time.sleep(2)
curses.endwin()
</lang>
=={{header|Racket}}==
|