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

Method get

src/ink/screen.ts:172–174  ·  view source on GitHub ↗

Recover styles from an encoded ID. Strips the bit-0 flag via >>> 1.

(id: number)

Source from the content-addressed store, hash-verified

170
171 /** Recover styles from an encoded ID. Strips the bit-0 flag via >>> 1. */
172 get(id: number): AnsiCode[] {
173 return this.styles[id >>> 1] ?? []
174 }
175
176 /**
177 * Returns the pre-serialized ANSI string to transition from one style to

Callers 4

transitionMethod · 0.95
withInverseMethod · 0.95
withCurrentMatchMethod · 0.95
withSelectionBgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected