2 * TTYDRV initialization code
10 #include "wine/winbase16.h"
14 #include "debugtools.h"
17 DEFAULT_DEBUG_CHANNEL(ttydrv
);
21 int screen_rows
= 50; /* default value */
22 int screen_cols
= 80; /* default value */
26 /***********************************************************************
27 * TTYDRV process initialisation routine
29 static void process_attach(void)
32 if ((root_window
= initscr()))
35 wrefresh(root_window
);
37 getmaxyx(root_window
, screen_rows
, screen_cols
);
38 #endif /* WINE_CURSES */
40 TTYDRV_GDI_Initialize();
42 /* load display.dll */
43 LoadLibrary16( "display" );
47 /***********************************************************************
48 * TTYDRV process termination routine
50 static void process_detach(void)
53 if (root_window
) endwin();
54 #endif /* WINE_CURSES */
58 /***********************************************************************
59 * TTYDRV initialisation routine
61 BOOL WINAPI
TTYDRV_Init( HINSTANCE hinst
, DWORD reason
, LPVOID reserved
)
65 case DLL_PROCESS_ATTACH
:
69 case DLL_PROCESS_DETACH
: