Subject: disabling suspend

From: Mike Miller <[email-masked]>
Date: Sat, 12 Sep 1998 10:53:11 -0500 (CDT)

I see that pine has an option to enable suspend.  I generally like to have
suspend enabled (so I set it that way in .pinerc), but when I launch pine
in its own X window, accidentally hitting suspend (^Z) will cause a
problem that I don't know how to fix (I get hung in the xterm window and
fg doesn't work).

I also see that pine has a -z command line option that enables suspend. Is
there any type of command line argument that will *disable* suspend.
Here's the alias I'm using:

alias pine  'xterm -n Pine -T Pine -e pine \!* &'

Is there a better way??

TIA,

Mike

Michael B. Miller, M.S., Ph.D., M.P.E.
Department of Psychology
210 McAlester Hall
University of Missouri--Columbia
Columbia, MO 65211
 Phone: (573) 882-5671
   Fax: (573) 882-7710
e-mail: [email-masked]
   web: http://taxa.psyc.missouri.edu/~mbmiller/

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

---

From: Mike Miller <[email-masked]>
Date: Sat, 12 Sep 1998 13:04:22 -0500 (CDT)

Responding to myself here.  There is a very nice feature of Pine that I
wasn't aware of until now that allows the user to suspend to a special
"inferior shell".  It's great when pine is launched from 'xterm -e'
because it prevents crashes with ^Z.  Another feature of pine that I
didn't know about is this command line argument:

-<option>=<value>   Assign <value> to the pinerc option <option>
                     e.g. -signature-file=sig1

This could solve all of my problems with appropriate aliases in the .cshrc
file.  But these give me errors:

alias pine    'xterm -n Pine -T Pine -e pine -z -use-subshell-for-suspend=yes \!* &'
alias pinenw  '\pine -z -use-subshell-for-suspend=no \!*'

Pine interprets -use-subsh...  as -u -s -e -s -u -b -s -h ...  And the
errors tell me which of these are not appropriate command line arguments.

Any ideas??

Incidentally, it appears that this "inferior shell" is launched when the
pipe command is executed.  It sources .cshrc.

TIA!

Mike

---

From: Mike Miller <[email-masked]>
Date: Sat, 12 Sep 1998 19:44:13 -0500 (CDT)

Response to self again.  (I get digests, so I hope I'm not repeating too
much what other people are writing.)  Now I have a fairly elegant solution
to my suspend problem.  These are my aliases:

alias pine    'xterm -n Pine -T Pine -e pine -z -feature-list=use-subshell-for-suspend \!* &'
alias pinenw  '\pine -z -feature-list=no-use-subshell-for-suspend \!*'

In both, suspend is enabled.  In the first (the xterm) the subshell is
used, but in the second (pinenw = pine no window, as in emacs -nw) the
subshell is not used.  It works beautifully on my system.  When you are in
pine and do Menu-Setup-Config it shows the settings as you had requested
from the command line no matter what is written in the .pinerc.  Great
solution.  Pine is amazing!

Can Pico or Pilot do this neat subshell thing?  It doesn't look like it.

Regards,

Mike

P.S.  These aliases also work well for me (note that I drop the -z option
in the xterm):

alias pico    'xterm -n Pico -T Pico -e pico -bdegjmw -r74 \!* &'
alias piconw  '\pico -bdegjmwz -r74 \!*'
alias pilot   'xterm -n Pilot -T Pilot -e pilot -agjm \!* &'
alias pilotnw '\pilot -agjmz \!*'