aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-08 15:46:05 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-08 15:46:05 +0000
commit9f17edac4406216858c9cd11f5343f5fc9139cc0 (patch)
tree6d3fc90c3e8d59f1161d70221804fca32934c792
parentupdate TODO (diff)
downloadw3m-9f17edac4406216858c9cd11f5343f5fc9139cc0.tar.gz
w3m-9f17edac4406216858c9cd11f5343f5fc9139cc0.zip
[w3m-dev 03386] Re: Interrupt in no_proxy_check()
* file.c (getAuthCookie): term_cbreak() (loadGeneralFile): term_cbreak() term_raw() preFormUpdateBuffer() before term_raw() (loadHTMLstream): term_raw() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
-rw-r--r--ChangeLog11
-rw-r--r--file.c21
2 files changed, 23 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index db9abd7..d7e5bd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2002-11-09 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03386] Re: Interrupt in no_proxy_check()
+ * file.c (getAuthCookie): term_cbreak()
+ (loadGeneralFile): term_cbreak()
+ term_raw()
+ preFormUpdateBuffer() before term_raw()
+ (loadHTMLstream): term_raw()
+
2002-11-07 Katsumi@yamaoka.cc
* [w3m-dev 03385] install-sh typo
@@ -4378,4 +4387,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.484 2002/11/06 15:09:16 ukai Exp $
+$Id: ChangeLog,v 1.485 2002/11/08 15:46:05 ukai Exp $
diff --git a/file.c b/file.c
index 4c49564..960f2af 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.112 2002/11/06 03:19:30 ukai Exp $ */
+/* $Id: file.c,v 1.113 2002/11/08 15:46:06 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1410,6 +1410,7 @@ getAuthCookie(struct http_auth *hauth, char *auth_header,
IN_PASSWORD)) == NULL)
return NULL;
pwd = Str_conv_to_system(Strnew_charp(pp));
+ term_cbreak();
}
else {
/*
@@ -1620,6 +1621,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
) && !Do_not_use_proxy && !check_no_proxy(pu.host))) {
if (fmInitialized) {
+ term_cbreak();
message(Sprintf("%s contacted. Waiting for reply...", pu.host)->
ptr, 0, 0);
refresh();
@@ -1698,6 +1700,8 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
if (ss == NULL) {
/* abort */
UFclose(&f);
+ if (fmInitialized)
+ term_raw();
signal(SIGINT, prevtrap);
return NULL;
}
@@ -1720,6 +1724,8 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
if (ss == NULL) {
/* abort */
UFclose(&f);
+ if (fmInitialized)
+ term_raw();
signal(SIGINT, prevtrap);
return NULL;
}
@@ -1799,10 +1805,9 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
if (save2tmp(f, tmpf) < 0)
UFclose(&f);
else {
- if (fmInitialized) {
+ if (fmInitialized)
term_raw();
- signal(SIGINT, prevtrap);
- }
+ signal(SIGINT, prevtrap);
doFileMove(tmpf, guess_save_name(t_buf, pu.file));
}
return NO_BUFFER;
@@ -2019,10 +2024,10 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
}
if (header_string)
header_string = NULL;
+ preFormUpdateBuffer(b);
if (fmInitialized)
term_raw();
signal(SIGINT, prevtrap);
- preFormUpdateBuffer(b);
return b;
}
@@ -6167,9 +6172,6 @@ loadHTMLstream(URLFile *f, Buffer *newBuf, FILE * src, int internal)
#endif
HTMLlineproc3(newBuf, f->stream);
w3m_halfload = FALSE;
- if (fmInitialized)
- term_raw();
- signal(SIGINT, prevtrap);
return;
}
@@ -6258,6 +6260,9 @@ loadHTMLstream(URLFile *f, Buffer *newBuf, FILE * src, int internal)
return;
}
if (w3m_backend) {
+ if (fmInitialized)
+ term_raw();
+ signal(SIGINT, prevtrap);
print_internal_information(&htmlenv1);
backend_halfdump_buf = htmlenv1.buf;
return;