lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV DOS bugs for ac-0.104


From: Doug Kaufman
Subject: Re: LYNX-DEV DOS bugs for ac-0.104
Date: Fri, 26 Dec 1997 11:55:16 -0800 (PST)

On Fri, 26 Dec 1997, T.E.Dickey wrote:

> I would have written the message out before exiting curses (with stop_curses).
> It's simpler (and there's little functional advantage to putting a 'cls'
> there also).

The DOSPATH  stop_curses includes clrscr(), so any message written
before stopping curses is erased.

I looked again at the logic of the DOSPATH code in this section of
LYMainLoop.c. The intent seems to be to erase the standard SPAWNING_MSG,
and substitute another message for DOSPATH users. Perhaps "use exit" was
felt to be too obscure for some end users, and hence the change to "Type
EXIT". On reviewing the code, we already have SPAWNING_MSG ifdef'ed for
VMS in LYMessages_en.h. This seems like the proper place to put the
DOSPATH message. The following patch seems to work.
                                Doug

*** lynx2-7-1/LYMessages_en.h   Mon Nov 24 11:17:20 1997
--- lynx2-7-1/LYMessages_en.h.new       Fri Dec 26 11:30:14 1997
***************
*** 158,163 ****
--- 158,166 ----
  #ifdef VMS
  #define SPAWNING_MSG \
   "Spawning DCL subprocess.  Use 'logout' to return to Lynx.\n"
+ #elif defined (DOSPATH)
+ #define SPAWNING_MSG \
+  "Type EXIT to return to Lynx.\r\n"
  #else
  #define SPAWNING_MSG \
   "Spawning your default shell.  Use 'exit' to return to Lynx.\n"
*** lynx2-7-1/src/LYMainLoop.c  Mon Nov 24 11:17:20 1997
--- lynx2-7-1/src/LYMainLoop.c.new      Fri Dec 26 11:31:04 1997
***************
*** 4669,4676 ****
                     */
                    *stderr = LYOrigStderr;
  #ifdef DOSPATH        
-       system("cls");  
-       system("echo Type EXIT to return to Lynx.");
  #ifdef __DJGPP__
        __djgpp_set_ctrl_c(0);
        _go32_want_ctrl_break(1);
--- 4669,4674 ----
__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]