()
| 86 | } |
| 87 | |
| 88 | private setupTerminal() { |
| 89 | this.ptyOptions.name = GDBServerConsoleInstance.createTermName(this.ptyOptions.name, null); |
| 90 | this.ptyTerm = new PtyTerminal(this.ptyOptions); |
| 91 | this.ptyTerm.terminal.show(); |
| 92 | this.ptyTerm.on('close', () => { this.onTerminalClosed(); }); |
| 93 | this.ptyTerm.on('data', (data) => { this.sendToBackend(data); }); |
| 94 | if (this.toBackend === null) { |
| 95 | magentaWrite('Waiting for gdb server to start...', this.ptyTerm); |
| 96 | this.ptyTerm.pause(); |
| 97 | } else { |
| 98 | magentaWrite('Resuming connection to gdb server...\n', this.ptyTerm); |
| 99 | this.ptyTerm.resume(); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | private onTerminalClosed() { |
| 104 | this.ptyTerm = null; |
no test coverage detected