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

Method ClearLine

cursor_other.go:60–62  ·  view source on GitHub ↗

ClearLine clears the current line and moves the cursor to it's start position.

()

Source from the content-addressed store, hash-verified

58
59// ClearLine clears the current line and moves the cursor to it's start position.
60func (c *Cursor) ClearLine() {
61 fmt.Fprintf(c.writer, "\x1b[2K")
62}
63
64// Clear clears the current position and moves the cursor to the left.
65func (c *Cursor) Clear() {

Callers 6

ClearLineFunction · 0.45
ClearMethod · 0.45
UpAndClearMethod · 0.45
DownAndClearMethod · 0.45
ClearLinesUpMethod · 0.45
ClearLinesDownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected