Terminal control/Hiding the cursor: Difference between revisions
Content added Content deleted
Line 359: | Line 359: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
With print: |
|||
<lang python>print("\x1b[?25l") # hidden |
|||
print("\x1b[?25h") # shown |
|||
</lang> |
|||
With curses: |
|||
<lang python>import curses |
<lang python>import curses |
||
import time |
import time |