()
| 24 | } |
| 25 | |
| 26 | async read() { |
| 27 | this.input = [] |
| 28 | this.inputSplit = [] |
| 29 | |
| 30 | const promise = new Promise((resolve) => { |
| 31 | this.xterm.write('\x00', () => resolve(true)) |
| 32 | }).then(() => { |
| 33 | const buf = this.xterm.buffer.active |
| 34 | this.inputStartCursorX = buf.cursorX |
| 35 | this.inputStartCursorY = buf.cursorY + buf.baseY |
| 36 | this.inputCursorX = this.inputStartCursorX |
| 37 | this.inputCursorY = 0 |
| 38 | this.xterm.focus() |
| 39 | }) |
| 40 | |
| 41 | return promise |
| 42 | } |
| 43 | |
| 44 | reflowInput() { |
| 45 | const cols = this.xterm.cols |
no outgoing calls