diff options
| author | crupest <crupest@outlook.com> | 2021-06-07 14:21:14 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-06-07 14:21:14 +0800 | 
| commit | 0dd20e5dde39d1cc42ca5c92f56cdb087c1b8f00 (patch) | |
| tree | a8e5eb723d0e158d9ee000b598dee083ffef11fb /works | |
| parent | da6c0e6194578538ce0bcd1b9815696b96153f6b (diff) | |
| download | crupest-0dd20e5dde39d1cc42ca5c92f56cdb087c1b8f00.tar.gz crupest-0dd20e5dde39d1cc42ca5c92f56cdb087c1b8f00.tar.bz2 crupest-0dd20e5dde39d1cc42ca5c92f56cdb087c1b8f00.zip | |
import(life): ...
Diffstat (limited to 'works')
| -rw-r--r-- | works/life/computer-network-experiment/Common.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/works/life/computer-network-experiment/Common.cpp b/works/life/computer-network-experiment/Common.cpp index fbdb2c8..5be3971 100644 --- a/works/life/computer-network-experiment/Common.cpp +++ b/works/life/computer-network-experiment/Common.cpp @@ -67,6 +67,12 @@ void BeforeExit() {  int main() {
  #ifdef WIN32
 +  HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
 +  DWORD mode;
 +  GetConsoleMode(h, &mode);
 +  mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
 +  SetConsoleMode(h, mode);
 +
    InitWSA();
  #endif
 | 
