queryIndexedColor method
Implementation
@override
void queryIndexedColor(int index) {
final specialIndex = _specialColorIndexFromPaletteIndex(index);
if (specialIndex != null) {
_querySpecialColor(index, specialIndex, 4);
return;
}
if (index < 0 || index > 255) return;
final color =
_colors._indexedColorOverrides[index] ?? onColorQuery?.call(4, index);
if (color == null) return;
_replySink?.call('\x1b]4;$index;${_formatOscColor(color)}\x1b\\');
}