2 * TTYDRV initialization code
10 #include "wine/winbase16.h"
15 #include "debugtools.h"
18 DEFAULT_DEBUG_CHANNEL(ttydrv);
22 int screen_rows = 50; /* default value */
23 int screen_cols = 80; /* default value */
27 /***********************************************************************
28 * TTYDRV process initialisation routine
30 static void process_attach(void)
33 if ((root_window = initscr()))
36 wrefresh(root_window);
38 getmaxyx(root_window, screen_rows, screen_cols);
39 #endif /* WINE_CURSES */
41 TTYDRV_GDI_Initialize();
43 /* load display.dll */
44 LoadLibrary16( "display" );
48 /***********************************************************************
49 * TTYDRV process termination routine
51 static void process_detach(void)
53 TTYDRV_GDI_Finalize();
56 if (root_window) endwin();
57 #endif /* WINE_CURSES */
61 /***********************************************************************
62 * TTYDRV initialisation routine
64 BOOL WINAPI TTYDRV_Init( HINSTANCE hinst, DWORD reason, LPVOID reserved )
68 case DLL_PROCESS_ATTACH:
72 case DLL_PROCESS_DETACH: