showCursor shows/hides the cursor.
(cons syscall.Handle, visible bool)
| 92 | |
| 93 | // showCursor shows/hides the cursor. |
| 94 | func showCursor(cons syscall.Handle, visible bool) { |
| 95 | var ci consoleCursorInfo |
| 96 | ci.size = 100 |
| 97 | ci.visible = visible |
| 98 | _, _, _ = setConsoleCursorInfo.Call(uintptr(cons), uintptr(unsafe.Pointer(&ci))) |
| 99 | } |