reInitializeChalkStringExtensionChalkInstance static method

void reInitializeChalkStringExtensionChalkInstance()

Implementation

static void reInitializeChalkStringExtensionChalkInstance() {
  _chalk = Chalk();
  // Invalidate all cached Chalk instances
  _cBlack = _cRed = _cGreen = _cYellow = _cBlue = _cMagenta = _cCyan = _cWhite = null;
  _cBrightBlack = _cBlackBright = _cGray = _cGrey = null;
  _cBrightRed = _cRedBright = _cBrightGreen = _cGreenBright = null;
  _cBrightYellow = _cYellowBright = _cBrightBlue = _cBlueBright = null;
  _cBrightMagenta = _cMagentaBright = _cBrightCyan = _cCyanBright = null;
  _cBrightWhite = _cWhiteBright = null;
  _cOnBlack = _cBgBlack = _cOnRed = _cBgRed = null;
  _cOnGreen = _cBgGreen = _cOnYellow = _cBgYellow = null;
  _cOnBlue = _cBgBlue = _cOnMagenta = _cBgMagenta = null;
  _cOnCyan = _cBgCyan = _cOnWhite = _cBgWhite = null;
  _cOnBrightBlack = _cOnGray = _cOnGrey = null;
  _cBgBrightBlack = _cBgBlackBright = _cBgGray = _cBgGrey = null;
  _cOnBrightRed = _cBgBrightRed = _cBgRedBright = null;
  _cOnBrightGreen = _cBgBrightGreen = _cBgGreenBright = null;
  _cOnBrightYellow = _cBgBrightYellow = _cBgYellowBright = null;
  _cOnBrightBlue = _cBgBrightBlue = _cBgBlueBright = null;
  _cOnBrightMagenta = _cBgBrightMagenta = _cBgMagentaBright = null;
  _cOnBrightCyan = _cBgBrightCyan = _cBgCyanBright = null;
  _cOnBrightWhite = _cBgBrightWhite = _cBgWhiteBright = null;
  _cReset = _cNormal = _cBold = _cDim = _cItalic = null;
  _cUnderline = _cUnderlined = _cDoubleunderline = _cDoubleunderlined = _cDoubleUnderline = null;
  _cOverline = _cOverlined = _cBlink = _cRapidblink = null;
  _cInverse = _cInvert = _cHidden = _cStrikethrough = null;
  _cSuperscript = _cSubscript = null;
  _cFont1 = _cFont2 = _cFont3 = _cFont4 = _cFont5 = null;
  _cFont6 = _cFont7 = _cFont8 = _cFont9 = _cFont10 = null;
  _cBlackletter = _cVisible = null;
  // Invalidate X11 color cache
  ChalkX11Strings.resetCache();
}