Anonymous user
Terminal control/Hiding the cursor: Difference between revisions
Terminal control/Hiding the cursor (view source)
Revision as of 15:36, 11 December 2020
, 3 years ago→{{header|Tcl}}
m (→{{header|Tcl}}) |
|||
Line 457:
=={{header|Tcl}}==
<lang tcl>
proc cursorVisibility {{state normal}} {
switch -- $state {
}
}
▲ exec sh -c "tput $op || true"
Demo:
<lang tcl>
foreach x {visible invisible normal} {
cursorVisibility $x
puts -nonewline "$x cursor -> "
flush stdout
after 3000
puts {}
}
▲after 1000</lang>
=={{header|UNIX Shell}}==
|