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

Function Up

utils.go:28–31  ·  view source on GitHub ↗

Up moves the cursor n lines up relative to the current position.

(n int)

Source from the content-addressed store, hash-verified

26
27// Up moves the cursor n lines up relative to the current position.
28func Up(n int) {
29 cursor.Up(n)
30 autoheight += n
31}
32
33// Down moves the cursor n lines down relative to the current position.
34func Down(n int) {

Callers 5

TestHeightChangesFunction · 0.85
TestCustomIOWriterFunction · 0.85
StartOfLineUpFunction · 0.85
UpAndClearFunction · 0.85
MoveFunction · 0.85

Calls 1

UpMethod · 0.45

Tested by 2

TestHeightChangesFunction · 0.68
TestCustomIOWriterFunction · 0.68