setBackgroundColor256 method

void setBackgroundColor256(
  1. int index
)

Sets the background to palette colour index (0–255).

Implementation

void setBackgroundColor256(int index) {
  if (index < 0 || index > 255) return;
  _sgr('48;5;$index');
}