Lines Matching refs:TerminalSettings
671 static struct TerminalSettings { struct
675 } TerminalSettings; variable
683 if(InterlockedExchange(&TerminalSettings.valid, (LONG)FALSE)) in restore_terminal()
684 SetConsoleMode(TerminalSettings.hStdOut, TerminalSettings.dwOutputMode); in restore_terminal()
699 TerminalSettings.hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); in init_terminal()
707 if(TerminalSettings.hStdOut == INVALID_HANDLE_VALUE || in init_terminal()
708 !GetConsoleMode(TerminalSettings.hStdOut, in init_terminal()
709 &TerminalSettings.dwOutputMode) || in init_terminal()
714 if((TerminalSettings.dwOutputMode & ENABLE_VIRTUAL_TERMINAL_PROCESSING)) in init_terminal()
720 (void)InterlockedExchange(&TerminalSettings.valid, (LONG)TRUE); in init_terminal()
722 if(SetConsoleMode(TerminalSettings.hStdOut, in init_terminal()
723 (TerminalSettings.dwOutputMode | in init_terminal()
730 (void)InterlockedExchange(&TerminalSettings.valid, (LONG)FALSE); in init_terminal()