Recover styles from an encoded ID. Strips the bit-0 flag via >>> 1.
(id: number)
| 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 |
no outgoing calls
no test coverage detected