mapped_attr |= COMMON_LVB_UNDERSCORE;../wincon/pdcdisp.c:213:28: error: 'COMMON_LVB_GRID_LVERTICAL' undeclared (first use in this function)mapped_attr |= COMMON_LVB_GRID_LVERTICAL;../win
在我正在编写的程序中,当出现错误时,我希望整个控制台背景变成蓝色。在Python或C中,这很容易通过os.system("color 17")实现。我如何在C#中做到这一点?public static int system(String command) Process cmd = new Process(); cmd.Star
int flag = 1; flag &= SetConsoleMode(out, mode | ENABLE_LVB_GRID_WORLDWIDE); SetConsoleTextAttribute(out, 7 | COMMON_LVB_UNDERSCOREint flag = 1;
flag &= GetConsole