Terminal control/Hiding the cursor: Difference between revisions
Content added Content deleted
m (Whoops, misinterpreted "cursor".) |
(Added Kotlin) |
||
Line 191: | Line 191: | ||
smoutput SHOWCURSOR |
smoutput SHOWCURSOR |
||
</lang> |
</lang> |
||
=={{header|Kotlin}}== |
|||
{{Works with|Ubuntu|14.04}} |
|||
<lang scala>// version 1.1.1 |
|||
fun main(args: Array<String>) { |
|||
print("\u001B[?25l") // hide cursor |
|||
Thread.sleep(2000) // wait 2 seconds before redisplaying cursor |
|||
print("\u001B[?25h") // display cursor |
|||
Thread.sleep(2000) // wait 2 more seconds before exiting |
|||
}</lang> |
|||
=={{header|Lasso}}== |
=={{header|Lasso}}== |