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

Method cursorBack

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

Source from the content-addressed store, hash-verified

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
36 public static deleteChar() { return CSI + 'P'; }

Callers 6

deletePrevCharMethod · 0.80
killLineMethod · 0.80
handleOtherCharsMethod · 0.80
moveToBegMethod · 0.80
moveLeftMethod · 0.80
unPromptMethod · 0.80

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected