static short GetAttrForeground (int attr, ConsoleColor color) { attr &= ~15; return (short) (attr | (int) color); }