/// <summary> /// Changes the definition of a color-pair. /// </summary> /// <remarks> /// If the color-pair was previously initialized, the screen is /// refreshed and all occurences of that color-pair are changed /// to the new definition. /// <para> /// For portable applications the value of <paramref name="color"/> /// must be between 1 and <see cref="ColorPairs"/> - 1, and the value /// of <paramref name="fg"/> and <paramref name="bg"/> must be /// between 0 and <see cref="Colors"/>. /// </para> /// </remarks> /// <param name="color">Number of the color-pair to be changed.</param> /// <param name="fg">Foreground color number.</param> /// <param name="bg">Background color number.</param> public static void InitPair(short color, short fg, short bg) { CursesMethods.init_pair(color, fg, bg); }