MCPcopy
hub / github.com/enquirer/enquirer / reset

Method reset

lib/types/string.js:52–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 reset() {
53 this.input = this.value = '';
54 this.cursor = 0;
55 return this.render();
56 }
57
58 dispatch(ch, key) {
59 if (!ch || key.ctrl || key.code) return this.alert();

Callers 1

prevMethod · 0.95

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected