Terminal control/Hiding the cursor: Difference between revisions

Add 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}}==
Anonymous user