aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 08:20:56 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 08:20:56 +0000
commitc9154ec566b4b43d6ad075019442c0117193a2bc (patch)
treec32b19661cfd9fa05aee350c495a9fea669658eb /file.c
parentremove gcc warnings (diff)
downloadw3m-c9154ec566b4b43d6ad075019442c0117193a2bc.tar.gz
w3m-c9154ec566b4b43d6ad075019442c0117193a2bc.zip
[w3m-dev 02449] reimplemented meta refresh support
From: Tsutomu Okada <okada@furuno.co.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/file.c b/file.c
index b755e24..a015176 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.7 2001/11/16 22:02:00 ukai Exp $ */
+/* $Id: file.c,v 1.8 2001/11/20 08:20:56 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -3579,13 +3579,18 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env)
}
#ifdef USE_ALARM
else if (!is_redisplay && refresh > 0 && MetaRefresh) {
- alarm_sec = refresh;
- alarm_once = TRUE;
- alarm_event.cmd = FUNCNAME_goURL;
- alarm_event.user_data = s_tmp->ptr;
+ setAlarmEvent(refresh, AL_IMPLICIT, FUNCNAME_goURL, s_tmp->ptr);
}
#endif
}
+#ifdef USE_ALARM
+ else if (!is_redisplay && refresh > 0 && MetaRefresh) {
+ tmp = Sprintf("Refresh (%d sec)", refresh);
+ push_str(obuf, 0, tmp, PC_ASCII);
+ flushline(h_env, obuf, envs[h_env->envc].indent, 0, h_env->limit);
+ setAlarmEvent(refresh, AL_IMPLICIT, FUNCNAME_reload, NULL);
+ }
+#endif
}
return 1;
case HTML_BASE: