MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / showCursor

Function showCursor

pkg/util/term/term.go:94–99  ·  view source on GitHub ↗

showCursor shows/hides the cursor.

(cons syscall.Handle, visible bool)

Source from the content-addressed store, hash-verified

92
93// showCursor shows/hides the cursor.
94func 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}

Callers 1

NewFrameBufferFunction · 0.85

Calls 1

CallMethod · 0.65

Tested by

no test coverage detected