MCPcopy Index your code
hub / github.com/codeaashu/claude-code / eraseInLine

Method eraseInLine

src/server/web/public/terminal.js:2963–2975  ·  view source on GitHub ↗
(e3, t3 = false)

Source from the content-addressed store, hash-verified

2961 return true;
2962 }
2963 eraseInLine(e3, t3 = false) {
2964 switch (this._restrictCursor(this._bufferService.cols), e3.params[0]) {
2965 case 0:
2966 this._eraseInBufferLine(this._activeBuffer.y, this._activeBuffer.x, this._bufferService.cols, 0 === this._activeBuffer.x, t3);
2967 break;
2968 case 1:
2969 this._eraseInBufferLine(this._activeBuffer.y, 0, this._activeBuffer.x + 1, false, t3);
2970 break;
2971 case 2:
2972 this._eraseInBufferLine(this._activeBuffer.y, 0, this._bufferService.cols, true, t3);
2973 }
2974 return this._dirtyRowTracker.markDirty(this._activeBuffer.y), true;
2975 }
2976 insertLines(e3) {
2977 this._restrictCursor();
2978 let t3 = e3.params[0] || 1;

Callers 1

constructorMethod · 0.95

Calls 3

_restrictCursorMethod · 0.95
_eraseInBufferLineMethod · 0.95
markDirtyMethod · 0.45

Tested by

no test coverage detected