MCPcopy Create free account
hub / github.com/atomicgo/cursor / Hide

Method Hide

cursor_other.go:55–57  ·  view source on GitHub ↗

Hide the cursor. Don't forget to show the cursor at least at the end of your application with Show. Otherwise the user might have a terminal with a permanently hidden cursor, until they reopen the terminal.

()

Source from the content-addressed store, hash-verified

53// Don't forget to show the cursor at least at the end of your application with Show.
54// Otherwise the user might have a terminal with a permanently hidden cursor, until they reopen the terminal.
55func (c *Cursor) Hide() {
56 fmt.Fprintf(c.writer, "\x1b[?25l")
57}
58
59// ClearLine clears the current line and moves the cursor to it's start position.
60func (c *Cursor) ClearLine() {

Callers 1

HideFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected