sgr static method

void sgr(
  1. int id, [
  2. List<int>? params
])

Implementation

static void sgr(int id, [List<int>? params]) {
  String stuff;
  if (params != null) {
    stuff = "${id};${params.join(";")}";
  } else {
    stuff = id.toString();
  }
  writeANSI('${stuff}m');
}