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

Function Move

utils.go:123–137  ·  view source on GitHub ↗

Move moves the cursor relative by x and y.

(x, y int)

Source from the content-addressed store, hash-verified

121
122// Move moves the cursor relative by x and y.
123func Move(x, y int) {
124 if x > 0 {
125 Right(x)
126 } else if x < 0 {
127 x *= -1
128 Left(x)
129 }
130
131 if y > 0 {
132 Up(y)
133 } else if y < 0 {
134 y *= -1
135 Down(y)
136 }
137}
138
139// ClearLinesUp clears n lines upwards from the current position and moves the cursor.
140func ClearLinesUp(n int) {

Callers

nothing calls this directly

Calls 4

RightFunction · 0.85
LeftFunction · 0.85
UpFunction · 0.85
DownFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…