From 7eb27d5b8b9d7d8979c981c67e484546f902f16c Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 15 Nov 2002 15:36:48 +0000 Subject: [w3m-dev 03433] cygwin console on Win9X * configure (config.h): SUPPORT_WIN9X_CONSOLE_MBCS * linein.c (inputLineHistSearch): enable_win9x_console_input() disable_win9x_console_input() * main.c (mouse): cygin_mouse_btn_swapped * terms.c (is_xterm): static (isLocalConsole): added (cygwin_mouse_btn_swapped): added (check_win32_console): deleted (check_win9x): added (init_win32_console_handle): check ttyslot() (enable_win9x_console_input): added (disable_win9x_console_input): added (read_win32_console_input): delete ifdef MOUSE (cmp_tv): deleted (subtract_tv): deleted (GetConsoleHwnd): added (cygwin_version): added (select_or_poll_win32_console): deleted (check_cygwin_console): added (select_win32_console): deleted (set_tty): check_cygin_console() (term_title): SetConsoleTitle() (CYGWIN_ON): added (CYGIN_OFF): added (mouse_init): NEED_CYGWIN_ON (mouse_end): NEED_CYGWIN_OFF * terms.h (cygwin_mouse_btn_swapped): added (enable_win9x_console_input): added (disable_win9x_console_input): added (NEED_CYGWIN_ON): added (NEED_CYGWIN_OFF): added From: WATANABE Katsuyuki --- terms.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'terms.h') diff --git a/terms.h b/terms.h index 05ebc39..46fe231 100644 --- a/terms.h +++ b/terms.h @@ -1,4 +1,4 @@ -/* $Id: terms.h,v 1.6 2002/11/11 15:33:40 ukai Exp $ */ +/* $Id: terms.h,v 1.7 2002/11/15 15:36:48 ukai Exp $ */ #ifndef TERMS_H #define TERMS_H @@ -40,6 +40,13 @@ extern int LINES, COLS; #ifdef __CYGWIN__ extern int is_xterm; +extern int cygwin_mouse_btn_swapped; +#ifdef SUPPORT_WIN9X_CONSOLE_MBCS +void enable_win9x_console_input(void); +void disable_win9x_console_input(void); +#endif +#define NEED_CYGWIN_ON (1<<2) +#define NEED_CYGWIN_OFF (1<<3) #endif #define NEED_XTERM_ON (1) #define NEED_XTERM_OFF (1<<1) -- cgit v1.2.3