Subject: Pine 3.93 Screen Display Problem

From: cbs <[email-masked]>
Date: Wed, 24 Apr 1996 22:09:47 -0400 (EDT)

I am writing about a problem with Pine 3.93 running on the mainframe
Unix machine of my Internet Service Provider (ISP). When I run Pine 3.93
on my ISP's Unix system through my shell dial-up account, a programming
bug incorrectly resets the screen display parameters. This problem only
developed with my ISP's recent installation of Pine 3.93. The problem did
not exist with Pine 3.91 for Unix. 
   I am using Qmodem as my telecommunications program on a plain MS-DOS
computer that is *not* capable of running Windows. When temporarily
exiting Pine 3.93 through the control-Z function or after exiting Pine
3.93 through the Q (quit) function, the screen display no longer functions
correctly. That is, the screen display attempts to write to line 25 of my
standard 25-line by 80-column screen. 
   Line 25 is used by my telecommunications program as a status line,
displaying parameters set within that program. After using Pine 3.93, my
ISP's Unix machine attempts to write to that line. Yet, it is impossible
to read text written to line 25 of my screen, because that line is already
in use by Qmodem, as noted above. 
   Is there a work-around that can be used or a patch to Pine 3.93 that
can be issued to solve this problem? Could this be fixed in Pine 3.94? 
Alternatively, is there a Unix command that can be issued at the Unix %
prompt after running Pine 3.93 that will restore the default parameters of
my ISP's Unix machine, thus restoring the proper 24-line display on my PC
screen?
   Thank you in advance for your assistance. 
       Sincerely,
       Ken <[email-masked]>

---

From: Ray Cummins <[email-masked]>
Date: Thu, 25 Apr 1996 10:32:40 -0400 (EDT)

On Wed, 24 Apr 1996, cbs wrote:

> ...the screen display attempts to write to line 25 of my

     I noticed the same problem, but using EWAN telnet 1.052.

---

From: Paul O Bartlett <[email-masked]>
Date: Thu, 25 Apr 1996 09:22:45 -0400

On 24 Apr 1996, cbs wrote:

> Unix machine of my Internet Service Provider (ISP). [...]

[discussion of problem with 25th screen line
[being usurped away from comm software]

> my ISP's Unix machine, thus restoring the proper 24-line display on my PC

    I am no Unix guru, but it might not hurt to try it once.  (I make
no guarantees.)  Immediately upon getting beck to the shell prompt
after you exit Pine, try entering   stty rows 24   to see if this makes
any difference.  If it does, you could put it in your shell login
file(s), or invoke Pine from a shell script which issues the stty
command immediately after you quit Pine.

Paul                             <[email-masked]>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key 
Home Page:  URL: http://www.access.digex.net/~pobart

---

From: Steve Hubert <[email-masked]>
Date: Thu, 25 Apr 1996 23:40:25 -0700 (PDT)

There is a bug in 3.93 that we believe is causing this.  We know that it
is causing the problem in at least some cases.  I've attached a simple
context diff to the file pine/ttyout.c if you'd like to try to patch the
3.93 source and recompile.  The same change will be in 3.94.  Thanks for
bringing it to our attention. 

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

On Wed, 24 Apr 1996, cbs wrote:

> [deleted]
> [deleted]    
*** pine3.93/src/pine/ttyout.c	Tue Apr  9 14:41:57 1996
--- ttyout.c	Thu Apr 18 12:42:08 1996
***************
*** 450,456 ****
        tputs(_termcap_init, 1, outchar);
  
      /* and make sure there are no scrolling surprises! */
!     BeginScroll(0, ps_global->ttyo->screen_rows);
      /* and make sure icon text starts out consistent */
      icon_text(NULL);
      fflush(stdout);
--- 450,456 ----
        tputs(_termcap_init, 1, outchar);
  
      /* and make sure there are no scrolling surprises! */
!     BeginScroll(0, ps_global->ttyo->screen_rows - 1);
      /* and make sure icon text starts out consistent */
      icon_text(NULL);
      fflush(stdout);

---

From: Ray Cummins <[email-masked]>
Date: Fri, 26 Apr 1996 12:14:57 -0400 (EDT)

> bringing it to our attention. 

     Say!  The patch worked like a charm.  Of course, I had no doubt that
it would ;)

---

From: [email-masked] (Bryan H.)
Date: 27 Apr 1996 06:37:29 GMT

Ureeka...a solution (in my case.)  The command "stty size 24 80" solved
everything.  So I put it into my .login script and all is well.

Bryan