MCPcopy Create free account
hub / github.com/Marus/cortex-debug / cursorForward

Method cursorForward

src/frontend/pty.ts:32–32  ·  view source on GitHub ↗
(n = 1)

Source from the content-addressed store, hash-verified

30 public static cursorUp(n = 1) { return n > 0 ? CSI + n.toString() + 'A' : ''; }
31 public static cursorDown(n = 1) { return n > 0 ? CSI + n.toString() + 'B' : ''; }
32 public static cursorForward(n = 1) { return n > 0 ? CSI + n.toString() + 'C' : ''; }
33 public static cursorBack(n = 1) { return n > 0 ? CSI + n.toString() + 'D' : ''; }
34 public static clearAll() { return CSI + '2J' + CSI + '3J' + CSI + ';H'; } // Kill entire buffer and set cursor postion to 1,1
35 public static clearScreen() { return CSI + '2J' + CSI + ';H'; } // Kill the visible part of the screen

Callers 2

moveToEndMethod · 0.80
moveRightMethod · 0.80

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected