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

Method Left

cursor_other.go:32–36  ·  view source on GitHub ↗

Left moves the cursor n characters to the left relative to the current position.

(n int)

Source from the content-addressed store, hash-verified

30
31// Left moves the cursor n characters to the left relative to the current position.
32func (c *Cursor) Left(n int) {
33 if n > 0 {
34 fmt.Fprintf(c.writer, "\x1b[%dD", n)
35 }
36}
37
38// HorizontalAbsolute moves the cursor to n horizontally.
39// The position n is absolute to the start of the line.

Callers 2

LeftFunction · 0.45
MoveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected