Subject: Re: justify in jpico

From: [email-masked] (Joseph H Allen)
Date: Wed, 15 May 1996 16:37:03 GMT

In article <ii.832166750@shellx>, Nancy McGough  <[email-masked]> wrote:
>In pico you can justify a paragraph using ^J.  In jpico
>^J is `format' and I haven't been able to figure out how
>to justify a paragraph.  Does anyone know?  Also, are 
>there man pages for jpico?  If so, are they on the Web
>anywhere?

^J does the same thing in jpico that it does in pico.  I.E., 'format' means
'format paragraph'.  You just hit ^J on the paragraph you want justified.
Note that you can set the right margin (or "fill column") with ESC ESC R.

There are no man pages for the current version of jpico.  They'll be there
in the next version.  It going to be a while before its out though.  I'm not
going to have time to work on JOE until the summer.
-- 
/*  [email-masked] (192.74.137.5) */               /* Joseph H. Allen */
int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
+r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2
]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}

---

From: Nancy McGough <[email-masked]>
Date: Thu, 16 May 1996 09:09:18 -0400

> Note that you can set the right margin (or "fill column") with ESC ESC R.

I just figured out what my problem was (and still is).  ^J
doesn't work when I'm using Delrina WinComm to dial in to my ISP.
In pico you can use either `ESC ESC J' or `CTL J' to justify.  In
jpico it seems that only `CTL J' will justify.  Is there any
magic key combination to justify in jpico for those of us who
can't produce a `CTL J'?  Note that with some of my other
terminal programs I am able to produce a `CTL J' so I was able to
verify that `CTL J' does work in the jpico at my ISP.

Thanks,
Nancy

---

From: Paul O Bartlett <[email-masked]>
Date: Sun, 19 May 1996 10:06:43 -0400

On 17 May 1996, Kevin MacNeil wrote:

> I've often wondered which of the various flavors of joe is better. 
> Standard joe has a manpage, and I learned most of its keystrokes from the
> DrDos 6 text editor.  But for better or worse my fingers seem to use pico
> commands, so I've pretty much stuck with that.  Should I switch?

    I don't think it's a question of "better," only "different."  Basic
JOE seems to have various capabilities.  Whether and how those
capabilities are available for use depends largely on the configuration
file for the particular "flavor" with which the editor is invoked,
i.e., the name of the executable.  Not all pre-made configuration files
seem to make use of all the capbilities of the editor.

    For example, when I was using either Pico or jpico, I would often
have reason to duplicate a line in place.  A quick and dirty way of
doing this is to put the cursor on the line and use the key sequence
^K^U^U .  However, when I switched to "vanilla" JOE, this technique
did not work.

    It seems that under the covers, JOE (generically) has commands such
as dellin, picokill, yank, and yankpop.  In the supplied .jpicorc,
picokill and yank are bound to control-key combinations and work pretty
much as in Pico.  But in the supplied .joerc file, picokill and yank
are _not_ bound, whereas dellin and yankpop are.  Therefore, the
familiar key sequences will work with jpico but not with standard JOE.

    However, one of the overwhelming advantages of a configurable
editor like JOE is that it allows you to choose things to suit your
taste, just as long as you do not trip over your own feet (such as
duplicate keybindings).  To get the "Pico" effect, all I had to do was
go into the .joerc config file, insert entries for picokill and yank,
and bind them to control-key sequences that were available and made
sense to me.

    Which form of the editor should you use?  Well, obviously that's up
to you.  If your fingers really are in a Pico mode, then I would
suggest jpico, which "looks and feels" a lot like Pico and gives you
added capabilities.  If you want to, you can always jigger around with
the .jpicorc file to suit your tase.  However, be aware that jpico is
not a perfect duplication of the control-key sequences.  In a few
instances, you have to get used to entering ^[ first.  But jpico is a
fairly close match.

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: [email-masked] (Joseph H Allen)
Date: Thu, 16 May 1996 16:06:25 GMT

In article <[email-masked]>,

>verify that `CTL J' does work in the jpico at my ISP.

Ack!  Why can't people make working terminal emulators?

There are two things you can do: ESC X brings up an emacs like command
prompt.  You can type the command 'format' from there.  Also you can make a
customized keyboard layout: copy the system's jpicorc file (usually found in
/usr/local/lib/jpicorc or /usr/lib/jpicorc) into HOME/.jpicorc

Edit this file: you'll see how to change the key bindings.  Note that if you
use ESC ESC J for justify, you wont be able to bring up jpico's options menu
(which is ESC ESC), so you may want to swap a few things around.
-- 
/*  [email-masked] (192.74.137.5) */               /* Joseph H. Allen */
int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
+r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2
]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}

---

From: Nancy McGough <[email-masked]>
Date: 15 May 1996 09:28:22 -0400

Thanks,
Nancy

-- 
<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<
            @..@            Nancy McGough           /\_/\
           (----)           Infinite Ink           ( o.o )
          ( >__< )    http://www.jazzie.com/ii/     > ~ <