MCPcopy
hub / github.com/bombshell-dev/clack / _clearUserInput

Method _clearUserInput

packages/core/src/prompts/prompt.ts:207–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 protected _clearUserInput(): void {
208 this.rl?.write(null, { ctrl: true, name: 'u' });
209 this._setUserInput('');
210 }
211
212 private onKeypress(char: string | undefined, key: Key) {
213 if (this._track && key.name !== 'return') {

Callers 2

clearMethod · 0.80
#onKeyMethod · 0.80

Calls 1

_setUserInputMethod · 0.95

Tested by

no test coverage detected