Subject: color-style no-color resets terminal colors on quitting pine

From: Juergen Obermann <[email-masked]>
Date: Wed, 29 Mar 2000 11:20:31 +0200

Hello.

We use pine 4.21 under IBM AIX 4.1. Even if color_style ist set to
no-color, pine reset the colors of an aixterm or xterm terminal window when
the user quits pine. Pine sends  <esc>[32m<esc>[40m (2 times) just before
the final message 'Pine finished -- ...' appears. This changes the colors
the user has selected and may render the aixterm or xterm windows
unusuable. 

To fix this bug I made the following change:

diff -bc pine/osdep/termout.unx.orig pine/osdep/termout.unx
*** pine/osdep/termout.unx.orig Sat Jul  3 00:14:48 1999
--- pine/osdep/termout.unx      Wed Mar 29 10:14:06 2000
***************
*** 279,285 ****
      MoveCursor(_lines - 2, 0);
  
      /* unset colors */
!     if(pico_hascolor())
        pico_endcolor();
  
      if(_termcap_end != NULL)
--- 279,285 ----
      MoveCursor(_lines - 2, 0);
  
      /* unset colors */
!     if(pico_usingcolor())
        pico_endcolor();
  
      if(_termcap_end != NULL)

After that change, pine leaves the color settings unchanged

-- 
Frohes Schaffen,
Juergen Obermann 
--
Hochschulrechenzentrum der | Mail: [email-masked]
Justus-Liebig-Universitaet | WWW:  http://www.uni-giessen.de/~g033
Heinrich-Buff-Ring 44      | Tel:  0641-99-13054 (0641-99-13001)
D-35392 Giessen, Germany   | Fax:  0641-99-13099

Jede Menge Daten, ueberall bereit, alle wissen alles -
keiner weiss Bescheid. (Rolf Zuckowski)
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Steve Hubert <[email-masked]>
Date: Thu, 30 Mar 2000 10:24:16 -0800 (PST)

Thanks very much. We agree that this is a bug and that you're fix is
correct. Thanks.

-- 
Steve Hubert <[email-masked]>
Networks and Distributed Computing, Univ. of Washington, Seattle