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 --- linein.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'linein.c') diff --git a/linein.c b/linein.c index 7f4354b..15e18af 100644 --- a/linein.c +++ b/linein.c @@ -1,4 +1,4 @@ -/* $Id: linein.c,v 1.24 2002/11/08 16:10:01 ukai Exp $ */ +/* $Id: linein.c,v 1.25 2002/11/15 15:36:48 ukai Exp $ */ #include "fm.h" #include "local.h" #include "myctype.h" @@ -139,6 +139,9 @@ inputLineHistSearch(char *prompt, char *def_str, int flag, Hist *hist, CLen = CPos = 0; } +#ifdef SUPPORT_WIN9X_CONSOLE_MBCS + enable_win9x_console_input(); +#endif i_cont = TRUE; i_broken = FALSE; i_quote = FALSE; @@ -287,6 +290,10 @@ inputLineHistSearch(char *prompt, char *def_str, int flag, Hist *hist, if (need_redraw) displayBuffer(Currentbuf, B_FORCE_REDRAW); +#ifdef SUPPORT_WIN9X_CONSOLE_MBCS + disable_win9x_console_input(); +#endif + if (i_broken) return NULL; @@ -443,15 +450,6 @@ _esc(void) case 'D': _mvL(); break; -#if defined(__CYGWIN__) && defined(USE_MOUSE) - case 'M': - if ((is_xterm & (NEED_XTERM_ON | NEED_XTERM_OFF)) == NEED_XTERM_ON) { - getch(); - getch(); - getch(); - } - break; -#endif } break; case CTRL_I: -- cgit v1.2.3