Subject: How do I suspend pico? Please help.

From: [email-masked] (James Thomas)
Date: 3 May 1996 19:04:41 -0400

Apologies if this is not the correct newsgroup, please point the way if 
there is a better one...

My question has to do with pico. Specifically when it is invoked as the 
editor for replies or postings from within the trn newsreader.

I can enable suspending when pico is invoked from the command line.

I can do the same when (I believe) Rnmail prompts for the editor; again 
by typing pico -z.

The problem is that I would like pico when invoked by Rnmail(?) to 
default to pico -z. (also without wordwrap and/or any other options)

Our sysadmin said that he could set the default to enable suspending. He 
said that months ago. Short of going over and banging on his head is 
there any way that I, as a user, can set this default?

Thanks for any info;
-- 
Jim Thomas					[email-masked]
McMaster Nuclear Reactor			phone 905-5259040 ext 23283
1280 Main St. W.				FAX 905-5284339
Hamilton, Ontario, Canada			home 905-6280126

---

From: [email-masked] (Thomas Ulich)
Date: 4 May 1996 14:17:18 GMT

Question: How to invoke pico by other programs including some pico command
line options like -z.

How do you tell you newsreader, mailprog etc which editor to use?  In the
setup(s) of these programs it should be possible to define an editor incl.
command line options.

If the editor is generally defined by the environment variable EDITOR (try:

	echo $EDITOR

to check it), you could try to set this variable accordingly, i.e.,

	setenv EDITOR 'pico -z'	(csh)
	export EDITOR='pico -z' (bash, ksh)

Another try would be to define an alias for pico, i.e., 

	alias pico '/full/path/name/pico -z'	(csh)
	alias pico='/full/path/name/pico -z'	(bash, ksh)

Yet another: write a small script which invokes pico correctly:

	#!/bin/ksh	# or whatever shell you prefer
	/full/path/pico -z $*
	# $* is all the options given by invoking prog.

Now call this, e.g., 'mypine' and make it executable, i.e., invoke command

	chmod u+x mypine

Then you define this new "editor" in your programs as the one to use, or
maybe set the EDITOR variable similar to above examples to this program.

Hope it helps,
-- 
Thomas Ulich  NEW e-mail: [email-masked]  www: http://cc.oulu.fi/~thu/
 
      Inuit say:  He who looks long upon the aurora soon goes mad.