2007-09-04 Jason Rumney <jasonr@gnu.org>
+ * w32console.c (one_and_only_w32cons): Remove.
+ (initialize_w32_display): Take terminal argument.
+
+ * term.c (init_tty) [WINDOWSNT]: Pass terminal to
+ initialize_w32_display.
+ (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
+
* termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
* keyboard.c (discard_mouse_events): Discard it.
#endif
#ifdef WINDOWSNT
- initialize_w32_display ();
+ initialize_w32_display (terminal);
/* XXX Can this be non-null? */
if (name)
tty->TN_max_colors = 16; /* Required to be non-zero for tty-display-color-p */
- return terminal;
#else /* not WINDOWSNT */
Wcm_clear (tty);
tty->TF_underscore = tgetflag ("ul");
tty->TF_teleray = tgetflag ("xt");
+#endif /* !WINDOWSNT */
#ifdef MULTI_KBOARD
terminal->kboard = (KBOARD *) xmalloc (sizeof (KBOARD));
init_kboard (terminal->kboard);
prompt in the mini-buffer. */
if (current_kboard == initial_kboard)
current_kboard = terminal->kboard;
+#ifndef WINDOWSNT
term_get_fkeys (address, terminal->kboard);
#endif
+#endif
+#ifndef WINDOWSNT
/* Get frame size from system, or else from termcap. */
{
int height, width;
/* Init system terminal modes (RAW or CBREAK, etc.). */
init_sys_modes (tty);
+#endif /* not WINDOWSNT */
return terminal;
-#endif /* not WINDOWSNT */
}
/* Auxiliary error-handling function for init_tty.