Subject: Home & End keys

From: Meph Istopheles <[email-masked]>
Date: Thu, 1 Nov 2001 08:03:25 -0800 (PST)

Hey,

  I recently installed RH 7.1, but didn't install the 4.33 rpm 
from the distro, instead, I'd installed the 4.33 I'd backed up 
when I'd upgraded pine in RH 6.2.

  But, for some odd reason, while the Home & End keys work in 
bash, I only get a system beep using them in RH 7.1.

  How can I enable them in pine too?

  Meph

-- 
  "I did this 'cause Linux gives me a woody."
  -Dave '-ddt->' Taylor, announcing DOOM for Linux

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

---

From: Eduardo Chappa <[email-masked]>
Date: Thu, 1 Nov 2001 16:49:40 -0800 (PST)

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

:)   I recently installed RH 7.1, but didn't install the 4.33 rpm from the
:) distro, instead, I'd installed the 4.33 I'd backed up when I'd upgraded
:) pine in RH 6.2.
:)
:)   But, for some odd reason, while the Home & End keys work in bash, I
:) only get a system beep using them in RH 7.1.
:)
:)   How can I enable them in pine too?

Redhat modifies the source code of Pine to make it have these nice
features. I believe they include the necessary patches in their
distribution, but since I've never used Redhat I can't confirm this.

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

---

From: Meph Istopheles <[email-masked]>
Date: Thu, 1 Nov 2001 17:46:52 -0800 (PST)

Hey Eduardo,

> :)   I recently installed RH 7.1, but didn't install the 4.33 
> :) rpm from the distro, instead, I'd installed the 4.33 I'd 
> :) backed up when I'd upgraded pine in RH 6.2.

> :)   But, for some odd reason, while the Home & End keys work 
> :) in bash, I only get a system beep using them in RH 7.1.

> Redhat modifies the source code of Pine to make it have these 
> nice features. I believe they include the necessary patches in 
> their distribution, but since I've never used Redhat I can't 
> confirm this.

  Good ol' RH.

  So, barring actually succeeding with compiling a current 
release (remember, I'd found no way to get it to compile & had to 
go with an rpm in RH 6.0 & 6.2), think there's another either rpm 
or maybe deb file which would install intelligently?

  Meph

---

From: "Mike A. Harris" <[email-masked]>
Date: Thu, 1 Nov 2001 21:25:18 -0500 (EST)

>  How can I enable them in pine too?

PINE as shipped in Red Hat Linux 7.1, and released erratum works 
fine with HOME/END.

Make sure you're using the system supplied /etc/inputrc, bash, 
and other core system utilities, and all erratum have been 
applied.

----------------------------------------------------------------------
Mike A. Harris                  Shipping/mailing address:
OS Systems Engineer             190 Pittsburgh Ave., Sault Ste. Marie,
XFree86 maintainer              Ontario, Canada, P6C 5B3
Red Hat Inc.                    Phone: (705)949-2136
http://www.redhat.com           ftp://people.redhat.com/mharris
Red Hat XFree86 mailing list:   [email-masked]
General open IRC discussion:    #xfree86 on irc.openprojects.org
----------------------------------------------------------------------

---

From: "Mike A. Harris" <[email-masked]>
Date: Thu, 1 Nov 2001 21:28:09 -0500 (EST)

>distribution, but since I've never used Redhat I can't confirm this.

Patch attached.  UW is free to apply this patch to the official
sources under the PINE licence, etc... blah blah blah.

;o)

----------------------------------------------------------------------
Mike A. Harris                  Shipping/mailing address:
OS Systems Engineer             190 Pittsburgh Ave., Sault Ste. Marie,
XFree86 maintainer              Ontario, Canada, P6C 5B3
Red Hat Inc.                    Phone: (705)949-2136
http://www.redhat.com           ftp://people.redhat.com/mharris
Red Hat XFree86 mailing list:   [email-masked]
General open IRC discussion:    #xfree86 on irc.openprojects.org
----------------------------------------------------------------------
--- pine4.21/pico/osdep/term.cap.fixhome	Tue Mar  7 16:12:39 2000
+++ pine4.21/pico/osdep/term.cap	Tue Mar  7 16:13:30 2000
@@ -133,8 +133,8 @@
      */
     kpinsert("\033[4J", KEY_PGUP, 1);
     kpinsert("\033[3J", KEY_PGDN, 1);
-    kpinsert("\033[2J", KEY_HOME, 1);
-    kpinsert("\033[N",  KEY_END, 1);
+    kpinsert("\033[1~", KEY_HOME, 1);
+    kpinsert("\033[4~", KEY_END, 1);
 
     /* 
      * ANSI mode.
--- pine4.21/pico/osdep/term.inf.fixhome	Tue Mar  7 16:13:09 2000
+++ pine4.21/pico/osdep/term.inf	Tue Mar  7 16:13:20 2000
@@ -137,8 +137,8 @@
      */
     kpinsert("\033[4J", KEY_PGUP, 1);
     kpinsert("\033[3J", KEY_PGDN, 1);
-    kpinsert("\033[2J", KEY_HOME, 1);
-    kpinsert("\033[N",  KEY_END, 1);
+    kpinsert("\033[1~", KEY_HOME, 1);
+    kpinsert("\033[4~", KEY_END, 1);
 
     /* 
      * ANSI mode.

---

From: "Mike A. Harris" <[email-masked]>
Date: Thu, 1 Nov 2001 21:29:37 -0500 (EST)

>or maybe deb file which would install intelligently?

You could use the PINE 4.33 rpms released for Red Hat Linux 7.1 
to make things the easiest.  ;o)  The patch is in my last mail 
nonetheless if you're a build-it-from-source'er.

Take care,
TTYL

---

From: Kenneth Crudup <[email-masked]>
Date: Thu, 1 Nov 2001 18:38:26 -0800 (PST)

On Thu, 1 Nov 2001, Mike A. Harris wrote:

> Patch attached.

I just applied it; where will these new Home/End keys apply? They aren't
recognized in the "Message Index" or during a header edit. Pine 4.40 (the
patch applied cleanly).

I only use "pine", BTW, not "pico" or "pilot".

	-Kenny

-- 
Kenneth R. Crudup   Sr. SW Engineer, Scott County Consulting, Washington, D.C.
Home1: PO Box 914         Silver Spring, MD 20910-0914         [email-masked]
Home2: 38010 Village Cmn. #217  Fremont, CA 94536-7525          (510) 745-0101
Work: 5141 California Suite 200, Irvine, CA 92612               (949) 737-2785

---

From: "Mike A. Harris" <[email-masked]>
Date: Thu, 1 Nov 2001 22:38:56 -0500 (EST)

On Thu, 1 Nov 2001, Kenneth Crudup wrote:

>Date: Thu, 1 Nov 2001 18:38:26 -0800 (PST)
>From: Kenneth Crudup <[email-masked]>
>To: Pine Discussion Forum <[email-masked]>
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>Subject: Re: Home & End keys
>

While editing a message.

---

From: Kenneth Crudup <[email-masked]>
Date: Fri, 2 Nov 2001 10:34:17 -0800 (PST)

On Thu, 1 Nov 2001, Mike A. Harris wrote:

>>I just applied it; where will these new Home/End keys apply?

> While editing a message.

Ah, so this doesn't apply to me, then. I have alt-editor set (to "vi").

	-Kenny