aboutsummaryrefslogtreecommitdiffstats
path: root/terms.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 15:44:36 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 15:44:36 +0000
commitb0e7bb8bc6243d327f593bce0615d2c556f56e9f (patch)
tree2f683f142e8ba0c4816ee7dd381ca4c221ec3d57 /terms.h
parentfix indent (diff)
downloadw3m-b0e7bb8bc6243d327f593bce0615d2c556f56e9f.tar.gz
w3m-b0e7bb8bc6243d327f593bce0615d2c556f56e9f.zip
[w3m-dev 03434] Re: cygwin console on Win9X
* terms.c (cygwin_mouse_btn_swapped): ifdef USE_MOUSE (lastConMouse): deleted (check_win9x): static (read_win32_console): static (GetConsoleHwnd): static (cygwin_version): ifdef USE_MOUSE, static (check_cygwin_console): static (NEED_XTERM_ON): added (NEED_XTERM_OFF): added (NEED_CYGWIN_ON): added (NEED_CYGWIN_OFF): added (XTERM_TITLE): static char[] (SCREEN_TITLE): static char[] (CYGWIN_TITLE): static char[] (term_title): check title_str * terms.h (LASTLINE): added (is_xterm): deleted (enable_win9x_console_input): extern (disable_win9x_console_input): extern (NEED_XTERM_ON): deleted (NEED_XTERM_OFF): deleted From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'terms.h')
-rw-r--r--terms.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/terms.h b/terms.h
index 46fe231..379447d 100644
--- a/terms.h
+++ b/terms.h
@@ -1,8 +1,11 @@
-/* $Id: terms.h,v 1.7 2002/11/15 15:36:48 ukai Exp $ */
+/* $Id: terms.h,v 1.8 2002/11/15 15:44:36 ukai Exp $ */
#ifndef TERMS_H
#define TERMS_H
extern int LINES, COLS;
+#if defined(__CYGWIN__) && LANG == JA
+extern int LASTLINE;
+#endif
#define CODE_ASCII '\0'
#define CODE_EUC 'E'
@@ -37,19 +40,16 @@ extern int LINES, COLS;
#define MOUSE_BTN5_DOWN_XTERM 65
#define MOUSE_BTN_UP 3
#define MOUSE_BTN_RESET -1
+#endif
#ifdef __CYGWIN__
-extern int is_xterm;
+#ifdef USE_MOUSE
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)
+#ifdef SUPPORT_WIN9X_CONSOLE_MBCS
+extern void enable_win9x_console_input(void);
+extern void disable_win9x_console_input(void);
#endif
-#define NEED_XTERM_ON (1)
-#define NEED_XTERM_OFF (1<<1)
#endif
#endif /* not TERMS_H */