MCPcopy
hub / github.com/enquirer/enquirer / toggleCursor

Method toggleCursor

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

Source from the content-addressed store, hash-verified

114 }
115
116 toggleCursor() {
117 if (this.state.prevCursor) {
118 this.cursor = this.state.prevCursor;
119 this.state.prevCursor = 0;
120 } else {
121 this.state.prevCursor = this.cursor;
122 this.cursor = 0;
123 }
124 this.render();
125 }
126
127 first() {
128 this.cursor = 0;

Callers

nothing calls this directly

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected