Terminal control/Hiding the cursor: Difference between revisions
Content added Content deleted
(Scala solution added) |
No edit summary |
||
Line 356: | Line 356: | ||
showing of the cursor is now on |
showing of the cursor is now on |
||
</pre> |
</pre> |
||
=={{header|Ring}}== |
|||
<lang ring> |
|||
# Project : Terminal control/Hiding the cursor |
|||
# Date : 2018/07/15 |
|||
# Author : Gal Zsolt (~ CalmoSoft ~) |
|||
# Email : <calmosoft@gmail.com> |
|||
load "stdlib.ring" |
|||
# Linux |
|||
? "Hide Cursor using tput utility" |
|||
system("tput civis") # Invisible |
|||
sleep(10) |
|||
? "Show Cursor using tput utility" |
|||
system("tput cnorm") # Normal |
|||
</lang> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |