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

Method setSelectionBg

src/ink/screen.ts:267–271  ·  view source on GitHub ↗
(bg: AnsiCode | null)

Source from the content-addressed store, hash-verified

265 private selectionBgCode: AnsiCode | null = null
266 private selectionBgCache = new Map<number, number>()
267 setSelectionBg(bg: AnsiCode | null): void {
268 if (this.selectionBgCode?.code === bg?.code) return
269 this.selectionBgCode = bg
270 this.selectionBgCache.clear()
271 }
272 withSelectionBg(baseId: number): number {
273 const bg = this.selectionBgCode
274 if (bg === null) return this.withInverse(baseId)

Callers 1

setSelectionBgColorMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected