[w3m-dev-en 00090] Re: usage message

From: Hironori Sakamoto (hsaka@mth.biglobe.ne.jp)
Date: Thu Feb 24 2000 - 12:33:41 CST


Hello,

>> >Has somebody patched 0.16 to not print the usage message in the case
>> >the server could not be reached, or some other network error? It's not
>> >really a usage error in this case. It's hard to see the error when the
>> >text has scrolled off the screen. I can probably work out where to change
>> >it but if someone has already done it for 0.17...
>> Well, the change is so small that I enclose it:

Thank you for your patch.

w3m-0.1.7(development version) dose not already print
the usage message in the case of access errors.
But, a erorr message has scrolled off the screen.
Then, I suggest use of sleep_till_anykey().
How do you think?
-----------------------------------
Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
 http://www2u.biglobe.ne.jp/~hsaka/

====== This is the patch for w3m-0.1.7.
diff -u main.c.orig main.c
--- main.c.orig Wed Feb 23 22:17:56 2000
+++ main.c Fri Feb 25 02:56:46 2000
@@ -405,8 +405,10 @@
     }
     if (newbuf == NULL) {
       deleteFiles();
- if (fmInitialized)
+ if (fmInitialized) {
+ sleep_till_anykey(1,0);
         fmTerm();
+ }
       exit(2);
     }
     i = -1;
@@ -481,8 +483,10 @@
       quitfm();
     }
     deleteFiles();
- if (fmInitialized)
+ if (fmInitialized) {
+ sleep_till_anykey(1,0);
       fmTerm();
+ }
     exit(2);
   }
 



This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT