Subject: page down

From: Matt Ackeret <[email-masked]>
Date: Thu, 25 Jul 2002 11:48:02 -0700 (PDT)

On Thu, 25 Jul 2002 [email-masked] wrote:
>*** Meph Istopheles ([email-masked]) wrote in the pine-info list today:
>
>:)   Can't find anything on this, but suspect it must be one of the
>:) features I've chosen.  I have something turned on in pine 4.44 in
>:) RedHat 7.2.  which, when I've scrolled down near the end of a post &
>:) hit the Page Down key, I'm brought to the next message.  I'd like it to
>:) just to to the end of the current message, but hope I won't have to
>:) lose the use of the Page Down key to do it.
>
>You must disable [ ] enable-cruise-mode in your configuration screen.

This reminds me of something else that slightly bugs me about pine.

I wish there were some threshhold past which page-down would
not actually cause most of the screen to be blank when you paged down at
the end of a message.

This is HIGHLY subjective so I know not everyone would like it, and that's
also why I mention a threshhold, because there are cases where I wouldn't
like it either.

What I'm talking about is this..

If you're 95% through a message, and hit space, it pages down and you end
up with 2 lines at the top of the screen and the rest a blank screen.

I'm not sure what the threshhold should be, that's why I suggest it be
configurable.

A total absolute guess is -- if the screen will be less than 1/3 full,
then just scroll down to the bottom and leave the other 2/3 of the same
page visible.

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Gopi Sundaram <[email-masked]>
Date: Thu, 25 Jul 2002 14:45:29 -0500 (CDT)

> then just scroll down to the bottom and leave the other 2/3 of the same

And what about the massive number of blank lines that may follow a
message? Do they count as part of a blank screen? What if there are 511
characters on a single line, and you have word-wrapping? Or what if
those characters are whitespace?

-- 
Gopi Sundaram
[email-masked]
http://www.cse.sc.edu/~gopalan/Pine/

---

From: Eduardo Chappa <[email-masked]>
Date: Thu, 25 Jul 2002 16:21:23 -0700 (PDT)

*** Gopi Sundaram ([email-masked]) wrote in the pine-info list today:

:) On Thu, 25 Jul 2002, Matt Ackeret wrote:
:)
:) > A total absolute guess is -- if the screen will be less than 1/3
:) > full, then just scroll down to the bottom and leave the other 2/3 of
:) > the same page visible.
:)
:) And what about the massive number of blank lines that may follow a
:) message? Do they count as part of a blank screen? What if there are 511
:) characters on a single line, and you have word-wrapping? Or what if
:) those characters are whitespace?

Actually Pine knows how many lines it is going to display at any time. I
have also been bothered by that type of behavior before, and there's a
simple modification (in the source code) that one can do to fix this.

Look at the function scrolltool in the file pine/mailview.c and look for
the command "MC_PAGEDN". Pine computes how many lines to scroll, and saves
that information in the "scroll_lines" variable. All you need to do, is to
make Pine recompute it again. Add the following line before the line
"cur_top_line += scroll_lines;" (do not delete anything)

                scroll_lines = min(scroll_lines, scroll_text_lines() -
                                scroll_lines - cur_top_line);

That seems to work fine for me.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/

---

From: Kenneth Crudup <[email-masked]>
Date: Thu, 25 Jul 2002 17:17:50 -0700 (PDT)

> That seems to work fine for me.

Thanks.

	-Kenny

-- 
Kenneth R. Crudup    Sr. SW Engineer, Scott County Consulting, Los Angeles, CA
Home:	4105 E. Willow St. #246, Long Beach, CA 90815-1740
Work:	2052 Alton Parkway, Irvine, CA 92606-4905	   (949) 252-1111 X240