aboutsummaryrefslogtreecommitdiffstats
path: root/terms.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-27 15:41:37 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-27 15:41:37 +0000
commitd1db6a9ef12a7a2634fa959a4c31e56d665db336 (patch)
treebab97f929a2216e10309aab7a5959959a14f4f7f /terms.c
parent[w3m-dev 03146] Re: header option (diff)
downloadw3m-d1db6a9ef12a7a2634fa959a4c31e56d665db336.tar.gz
w3m-d1db6a9ef12a7a2634fa959a4c31e56d665db336.zip
terms.c (set_tty): s/term_info/w3m_term_info/g;
struct term_info is defined in FreeBSD's sys/consio.h reported by KOIE Hidetaka <hide@koie.org> From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--terms.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/terms.c b/terms.c
index 236cebd..486a3f1 100644
--- a/terms.c
+++ b/terms.c
@@ -1,4 +1,4 @@
-/* $Id: terms.c,v 1.31 2002/03/20 17:53:00 ukai Exp $ */
+/* $Id: terms.c,v 1.32 2002/03/27 15:41:38 ukai Exp $ */
/*
* An original curses library for EUC-kanji by Akinori ITO, December 1989
* revised by Akinori ITO, January 1995
@@ -476,33 +476,33 @@ writestr(char *s)
#define MOVE(line,column) writestr(tgoto(T_cm,column,line));
#ifdef USE_MOUSE
-#define TERM_INFO(name, title, mouse) name, title, mouse
+#define W3M_TERM_INFO(name, title, mouse) name, title, mouse
#else
-#define TERM_INFO(name, title, mouse) name, title
+#define W3M_TERM_INFO(name, title, mouse) name, title
#endif
#define XTERM_TITLE "\033]0;w3m: %s\007"
#define SCREEN_TITLE "\033k%s\033\134"
/* *INDENT-OFF* */
-static struct term_info {
+static struct w3m_term_info {
char *term;
char *title_str;
#ifdef USE_MOUSE
int mouse_flag;
#endif
-} term_info_list[] = {
- {TERM_INFO("xterm", XTERM_TITLE, (NEED_XTERM_ON|NEED_XTERM_OFF))},
- {TERM_INFO("kterm", XTERM_TITLE, (NEED_XTERM_ON|NEED_XTERM_OFF))},
- {TERM_INFO("rxvt", XTERM_TITLE, (NEED_XTERM_ON|NEED_XTERM_OFF))},
- {TERM_INFO("Eterm", XTERM_TITLE, (NEED_XTERM_ON|NEED_XTERM_OFF))},
- {TERM_INFO("screen", SCREEN_TITLE, 0)},
+} w3m_term_info_list[] = {
+ {W3M_TERM_INFO("xterm", XTERM_TITLE, (NEED_XTERM_ON|NEED_XTERM_OFF))},
+ {W3M_TERM_INFO("kterm", XTERM_TITLE, (NEED_XTERM_ON|NEED_XTERM_OFF))},
+ {W3M_TERM_INFO("rxvt", XTERM_TITLE, (NEED_XTERM_ON|NEED_XTERM_OFF))},
+ {W3M_TERM_INFO("Eterm", XTERM_TITLE, (NEED_XTERM_ON|NEED_XTERM_OFF))},
+ {W3M_TERM_INFO("screen", SCREEN_TITLE, 0)},
#ifdef __CYGWIN__
- {TERM_INFO("cygwin", NULL, NEED_XTERM_ON)},
+ {W3M_TERM_INFO("cygwin", NULL, NEED_XTERM_ON)},
#endif
- {TERM_INFO(NULL, NULL, 0)}
+ {W3M_TERM_INFO(NULL, NULL, 0)}
};
-#undef TERM_INFO
+#undef W3M_TERM_INFO
/* *INDENT-ON * */
int
@@ -525,8 +525,8 @@ set_tty(void)
#endif
TerminalGet(tty, &d_ioval);
if (displayTitleTerm != NULL) {
- struct term_info *p;
- for (p = term_info_list; p->term != NULL; p++) {
+ struct w3m_term_info *p;
+ for (p = w3m_term_info_list; p->term != NULL; p++) {
if (!strncmp(displayTitleTerm, p->term, strlen(p->term))) {
title_str = p->title_str;
break;
@@ -536,8 +536,8 @@ set_tty(void)
#ifdef USE_MOUSE
{
char *term = getenv("TERM");
- struct term_info *p;
- for (p = term_info_list; p->term != NULL; p++) {
+ struct w3m_term_info *p;
+ for (p = w3m_term_info_list; p->term != NULL; p++) {
if (!strncmp(term, p->term, strlen(p->term))) {
is_xterm = p->mouse_flag;
break;