Changeset 336 for libcaca/trunk/src/caca.c
- Timestamp:
- Jan 11, 2004, 6:09:02 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/caca.c
r335 r336 69 69 #if defined(USE_NCURSES) 70 70 static mmask_t oldmask; 71 #endif 72 73 #if defined(USE_WIN32) 74 static CONSOLE_CURSOR_INFO cci; 71 75 #endif 72 76 … … 169 173 if(_caca_driver == CACA_DRIVER_WIN32) 170 174 { 171 /* Nothing to do */ 172 printf("initialising win32 driver\n"); 175 win32_hin = GetStdHandle(STD_INPUT_HANDLE); 176 win32_hout = CreateFile("CONOUT$", GENERIC_READ | GENERIC_WRITE, 177 FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, 178 OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); 179 180 if(win32_hout == INVALID_HANDLE_VALUE) 181 return -1; 182 183 GetConsoleCursorInfo(win32_hout, &cci); 184 cci.bVisible = FALSE; 185 SetConsoleCursorInfo(win32_hout, &cci); 186 187 SetConsoleMode(win32_hout, ENABLE_MOUSE_INPUT); 173 188 } 174 189 else … … 392 407 if(_caca_driver == CACA_DRIVER_WIN32) 393 408 { 394 /* Nothing to do */ 409 SetConsoleTextAttribute(win32_hout, FOREGROUND_INTENSITY 410 | FOREGROUND_RED 411 | FOREGROUND_GREEN 412 | FOREGROUND_BLUE); 413 cci.bVisible = TRUE; 414 SetConsoleCursorInfo(win32_hout, &cci); 415 CloseHandle(win32_hout); 395 416 } 396 417 else
Note: See TracChangeset
for help on using the changeset viewer.