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

Function ClearLinesUp

utils.go:140–144  ·  view source on GitHub ↗

ClearLinesUp clears n lines upwards from the current position and moves the cursor.

(n int)

Source from the content-addressed store, hash-verified

138
139// ClearLinesUp clears n lines upwards from the current position and moves the cursor.
140func ClearLinesUp(n int) {
141 for i := 0; i < n; i++ {
142 UpAndClear(1)
143 }
144}
145
146// ClearLinesDown clears n lines downwards from the current position and moves the cursor.
147func ClearLinesDown(n int) {

Callers

nothing calls this directly

Calls 1

UpAndClearFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…