/// <summary> /// Extended set background color. /// </summary> /// <param name="a">2;r;g;b | 5;clr.</param> private static void BckClr1Ex(IList <string> a) { int n = ValExt.Int(a, 1); int c = n == 2 ? Cmd.RgbColor(ValExt.Int(a, 2), ValExt.Int(a, 3), ValExt.Int(a, 4)) : (ValExt.Int(a, 2) & 0xF); Cmd.BackgroundColor = c; ListExt.ShiftN(a, 5); }
/// <summary> /// Extended set foreground color. /// </summary> /// <param name="a">2;r;g;b | 5;clr.</param> private static void FrClr1Ex(IList <string> a) { int n = ValExt.Int(a, 1); int FrClr = n == 2 ? Cmd.RgbColor(ValExt.Int(a, 2), ValExt.Int(a, 3), ValExt.Int(a, 4)) : (ValExt.Int(a, 1) & 0xF); Cmd.ForegroundColor = (FrClr | Bld) & Lght; ListExt.ShiftN(a, 4); }