MCPcopy Create free account
hub / github.com/codeaashu/claude-code / setSelectionBg

Method setSelectionBg

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

Source from the content-addressed store, hash-verified

237 private selectionBgCode: AnsiCode | null = null
238 private selectionBgCache = new Map<number, number>()
239 setSelectionBg(bg: AnsiCode | null): void {
240 if (this.selectionBgCode?.code === bg?.code) return
241 this.selectionBgCode = bg
242 this.selectionBgCache.clear()
243 }
244 withSelectionBg(baseId: number): number {
245 const bg = this.selectionBgCode
246 if (bg === null) return this.withInverse(baseId)

Callers 1

setSelectionBgColorMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected