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)
32 WND_Driver
= &TTYDRV_WND_Driver
;
35 if ((root_window
= initscr()))
38 wrefresh(root_window
);
40 getmaxyx(root_window
, screen_rows
, screen_cols
);
41 #endif /* WINE_CURSES */
43 TTYDRV_GDI_Initialize();
45 /* load display.dll */
46 LoadLibrary16( "display" );
50 /***********************************************************************
51 * TTYDRV process termination routine
53 static void process_detach(void)
55 TTYDRV_GDI_Finalize();
58 if (root_window
) endwin();
59 #endif /* WINE_CURSES */
65 /***********************************************************************
66 * TTYDRV initialisation routine
68 BOOL WINAPI
TTYDRV_Init( HINSTANCE hinst
, DWORD reason
, LPVOID reserved
)
72 case DLL_PROCESS_ATTACH
:
76 case DLL_PROCESS_DETACH
: