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

Method Right

cursor_other.go:25–29  ·  view source on GitHub ↗

Right moves the cursor n characters to the right relative to the current position.

(n int)

Source from the content-addressed store, hash-verified

23
24// Right moves the cursor n characters to the right relative to the current position.
25func (c *Cursor) Right(n int) {
26 if n > 0 {
27 fmt.Fprintf(c.writer, "\x1b[%dC", n)
28 }
29}
30
31// Left moves the cursor n characters to the left relative to the current position.
32func (c *Cursor) Left(n int) {

Callers 2

RightFunction · 0.45
MoveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected