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

Method clearScreen

src/frontend/pty.ts:35–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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'; }
37 public static deletePrevChar() { return ACTIONS.cursorBack() + ACTIONS.deleteChar(); }
38 public static deleteCurrChar() { return ACTIONS.deleteChar(); }

Callers 1

clearScreenMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected