(value: string | undefined, write?: boolean)
| 196 | } |
| 197 | |
| 198 | protected _setUserInput(value: string | undefined, write?: boolean): void { |
| 199 | this.userInput = value ?? ''; |
| 200 | this.emit('userInput', this.userInput); |
| 201 | if (write && this._track && this.rl) { |
| 202 | this.rl.write(this.userInput); |
| 203 | this._cursor = this.rl.cursor; |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | protected _clearUserInput(): void { |
| 208 | this.rl?.write(null, { ctrl: true, name: 'u' }); |
no test coverage detected