MCPcopy Create free account
hub / github.com/Noumena-Network/code / setSearchHighlight

Method setSearchHighlight

src/ink/ink.tsx:1208–1212  ·  view source on GitHub ↗

* Set the search highlight query. Non-empty → all visible occurrences * are inverted (SGR 7) on the next frame; first one also underlined. * Empty → clears (prevFrameContaminated handles the frame after). Same * damage-tracking machinery as selection — setCellStyleId doesn't track * dama

(query: string)

Source from the content-addressed store, hash-verified

1206 * damage, so the overlay forces full-frame damage while active.
1207 */
1208 setSearchHighlight(query: string): void {
1209 if (this.searchHighlightQuery === query) return;
1210 this.searchHighlightQuery = query;
1211 this.scheduleRender();
1212 }
1213
1214 /** Paint an EXISTING DOM subtree to a fresh Screen at its natural
1215 * height, scan for query. Returns positions relative to the element's

Calls

no outgoing calls

Tested by

no test coverage detected