()
| 434 | } |
| 435 | |
| 436 | private killPrevChar() { |
| 437 | if (this.cursorPos > 1) { |
| 438 | this.writeEmitter.fire(ACTIONS.deletePrevChar()); |
| 439 | this.cursorPos--; |
| 440 | this.curLine = PtyTerminal.removeCharAt(this.curLine, this.cursorPos - 1); |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | private static removeCharAt(str: string, ix: number): string { |
| 445 | if (ix === 0) { |
no test coverage detected