1 /* NetHack 3.6 stubs.c $NHDT-Date: 1524689357 2018/04/25 20:49:17 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.3 $ */
2 /* Copyright (c) 2015 by Michael Allison */
3 /* NetHack may be freely redistributed. See license for details. */
10 #error You cannot compile this with both GUISTUB and TTYSTUB defined.
14 struct window_procs mswin_procs = { "-guistubs" };
17 struct window_procs Qt_procs = { "-guistubs" };
18 int qt_tilewidth, qt_tileheight, qt_fontsize, qt_compact_mode;
26 /* MINGW32 has trouble with both a main() and WinMain()
27 * so we move main for the MINGW tty version into this stub
28 * so that it is out of sight for the gui linkage.
31 extern char default_window_sys[];
32 extern int mingw_main(int argc, char **argv);
41 resuming = mingw_main(argc, argv);
42 nethack_exit(EXIT_SUCCESS);
50 /* =============================================== */
57 struct window_procs tty_procs = { "-ttystubs" };
121 #ifndef NO_MOUSE_ALLOWED
123 toggle_mouse_support()
131 win32con_debug_keystrokes()
136 win32con_handler_info()
149 /* this is used as a printf() replacement when the window
150 * system isn't initialized yet
153 VA_DECL(const char *, fmt)
156 VA_INIT(fmt, const char *);
163 VA_DECL(const char *, s)
166 VA_INIT(s, const char *);
186 nethack_enter_nttty()
192 set_altkeyhandler(const char *inName)
196 #endif /* TTYSTUBS */