No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 47: Term cap Pico vision thing
Entered by raven on Wed Jun 16 04:40:18 UTC 1993:

How do I set up my term cap so I can use Pico? I've started using it ovt
over at m-net and I'm hooked. D put some arcane Unix coomand in
my .cfonce file or what? Inquiring minds want to know...

55 responses total.



#1 of 55 by jared on Wed Jun 16 05:34:31 1993:

you will want to have a 
setenv TERM vt100 in your .login file, and a 
define EDITOR pico in your .cfonce file.


#2 of 55 by tsty on Wed Jun 16 08:16:05 1993:

At least have some TERM in your .login, but the .cfonce file contents
are good enough.
 
Can you do it yourself, or want it done?


#3 of 55 by davel on Wed Jun 16 11:47:17 1993:

Is .login the proper file for people whose default shell isn't csh?
(For sh, it's .profile, I think.  But raven shows /b, which I think
is just picospan, & I don't know what it uses as a login shell.)


#4 of 55 by remmers on Wed Jun 16 15:54:19 1993:

The /b shell runs sh first, then launches bbs.  So the proper place for
anyone with /b as their shell to make pico their default editor is in
.profile, which should contain the lines:

        EDITOR=pico
        VISUAL=pico
        export EDITOR VISUAL

That ought to make pico the default editor for any program that allows you
to launch an editor, such as Picospan or mail.  (Not sure if it's enough
for "elm", which may require you to set "pico" as both primary and visual
editor in your elm options file also.  You can do this in elm by typing
"o" at the elm command prompt.)


#5 of 55 by raven on Wed Jun 16 19:48:35 1993:

        Well after a big hastle I managed to edit my .profile correctley.
I managed to erase something crucial and get bounced off the system.
Foutunatley tsty was very helpful and restored my .profile. Now I just
can't seem to get .login edited... Help this is an editor nightmare : (
I still get incomplete term cap entry and .login isn't showing up in
my dir...


#6 of 55 by davel on Wed Jun 16 21:57:51 1993:

Unless you're going to use csh, you don't need a .login.  Possibly I
see the problem in your .profile.  Here are sections from yours & from
mine:

From my .profile:
if tty -s
then
# next two only apply to interactive shells
        stty intr '^C' kill '^U' erase '^H'
        eval `/usr/ucb/tset -s -m 'dialup:?ansi-new' -m 'su:?ansi-new'
        "${TERM-ansi-new}"` MESG=mesg ; export MESG mesg y
fi

From your .profile:
...
tset=ansi-new
...
if tty -s
then
# next two only apply to interactive shells
        stty intr '^_' kill '^X' erase '^H'
        MESG=mesg ; export MESG
        mesg y
fi

The line tset=ansi-new is not (I think) going to accomplish anything.  It
just sets an environment variable, tset, & doesn't export it.  Possibly
you want or need    tset ansi-new    (without the =).  The equivalent line
in mine is the eval line, but that's because I want it to ask me for my
TERM variable.

I can't offer to edit your file for you.  But try taking out the =.



#7 of 55 by raven on Thu Jun 17 05:22:13 1993:

How do I edit my file with an incomplete termcap? I can;t post to use net
now, which I'm missing already. Oh woh is me... I'll take ANY editor if
I can get my ability to post to usenet again. Someone help me and I promise
I'll never mention editors again. Please explain in simple language.
Depressed clueless newbie : (.


#8 of 55 by raven on Thu Jun 17 06:42:15 1993:

        Steve repaired my .profile. I'm psyched i can use pico and usenet
now, too cool. My next purse is one of those Unix books for non-techie
types : ).


#9 of 55 by scg on Tue Jun 29 03:37:54 1993:

   Lately when I've tried to use Pico, it hasn't worked right.  It just beeps
when I try to backspace, use the cursor keys, or tell it y or n when I try to
quit and it wants to know whether to save the file.  It does, however, work
fine as the editor in Pine, it is just when I try to use it alone or as the
editor for something else that it gives me trouble.  My term=vt100.  Any idea
what would be wrong with it?


#10 of 55 by tsty on Tue Jun 29 06:27:50 1993:

When you say "lately" does that indicate that you have been able to
do all the editing you wanted, anywhere you wanted, and stuff worked
just fine? Or something else?
  
And, if Pico has worked just fine everywhere 'before', can you pinpoint
any changes you have made anywhere?


#11 of 55 by scg on Tue Jun 29 15:14:00 1993:

When I first started using it, several months ago, it worked fine.  I didn't
use it for a couple of months, and then went back and tried to use it and it
didn't work.  I might have made some changes then, but I don't remember what.


#12 of 55 by davel on Tue Jun 29 18:31:59 1993:

I tried it out once, months ago, & it worked fine.  I tried it again a
couple of days ago (after telling someone about it), & most of the
things on its little menu just beeped.

I just tried it again now, and it's not really "most".  Of the 12 options
displayed at the bottom of the screen, the following produce a beep and
the message [ Unknown command ]: ^G, ^Y, ^V, ^K, ^U.  Also, when I go to
exit, the options for saving are given as (y/n) but it insists that the N
be uppercase.

My TERM setting is ansi-new.  I suspect from the timing that the OS upgrade
is involved in some fashion, but the gap was wide enough to include plenty
of other events as well.

I hope my friend hasn't tried it yet.
(vi is fine for *me*, thank you.)


#13 of 55 by popcorn on Tue Jun 29 22:28:12 1993:

This response has been erased.



#14 of 55 by tsty on Wed Jun 30 03:56:09 1993:

 <<maybe I should try Pico too - heck, I like vi too ...>>


#15 of 55 by remmers on Wed Jun 30 13:22:34 1993:

Hmm, very strange.  Pico still works fine for me -- I use 'xterm' as
my usual termcap, but also tried 'vt100' and 'ansi-new' and experienced
no problems.  Looked at scg's and davel's login initialization files,
and they look okay too.



#16 of 55 by remmers on Wed Jun 30 13:54:34 1993:

After looking at davel's report of what works and what doesn't, I
think it's a parity problem.  The control codes that don't work
all have ascii codes with ODD parity, and the ones that do have
EVEN parity.  It appears that Pico is looking at all 8 bits of
the character when it processes a command instead of ignoring the
parity bit like it should.  

So maybe your comm. program is sending even parity?  If so, try
changing it to "none" and see if that fixes things.


#17 of 55 by davel on Wed Jun 30 14:03:31 1993:

I found out something useful, but I have no idea whatsoever about what to
do about it.  I'm running a 7E because Grex gives me garbage at 8N
(apparently setting the 8th bit on output).  I went into Pico & got the
specified behavior.  I entered a bit, then did ^G for help & got the
unknown command message.  I then switched my settings to 8N and tried
^G again.  I got help.  After exiting help, I used ^X to exit, and when
it asked me whether to save, I said n (lower case) & it apparently
exited - I just got garbage, presumably from more ordinary Grex functions.
(In the course of resetting again I managed to hang up & had to call in
again, so I can't be *sure*.)

I don't know why at 8n Pico is apparently able to avoid setting that 8th
bit but most of Grex is not.  I presume that on input Pico is interpreting
the parity bit as a data bit, whereas most Grex functions just strip it.
That's the extent of my understanding of what's going on.  Possibly I would
need to use Mark or Space parity instead of Even to have it work both ways?
I really don't know what those two settings do.

In any case, presumably the commands that were recognized are the ascii
characters whose parity bits happened to come out 0.  Good thing ^X was
one of them.


#18 of 55 by davel on Wed Jun 30 14:04:15 1993:

John slipped in, with the same conclusion I reached.


#19 of 55 by remmers on Wed Jun 30 21:55:34 1993:

Great minds run in the same channels, y'know.


#20 of 55 by scg on Thu Jul 1 00:22:24 1993:

I tried N7, hoping that that would work in both, but that just made Pico
totally functionless.  Is there anything that I could try to make it work
in both Pico and other grex things?  E7 only works in other grex functions,
and 8N only works in Pico.


#21 of 55 by scg on Thu Jul 1 00:23:38 1993:

Also, why would Pine, which uses Pico as the editor, work, while Pico alone
does not?


#22 of 55 by davel on Thu Jul 1 10:06:04 1993:

Does pine actually call pico, or is pico the composer module extracted &
separately compiled (possibly with slightly different options or a slightly
different rev for that matter)?


#23 of 55 by davel on Thu Jul 1 10:16:58 1993:

At least from a quick test, using SPACE parity seems to work.  Again, I'm
not sure what this setting really means, so I make no guarantees.


#24 of 55 by davel on Thu Jul 1 10:20:08 1993:

And Procomm's doc suggests using N81 and using their "translate table"
feature (which allows custom translation for incoming characters) to strip
the high bit off each character in the range 128-255.  (That is, first you
have to enter the table values for each of those.)


#25 of 55 by remmers on Thu Jul 1 12:35:30 1993:

That's a lot of values to enter, unless they provide a shortcut.

"Space" parity means that the high bit is always 0, which I guess is
exactly what you want.

Just out of curiosity, I did a 'strings /usr/local/bin/pine'. ('Strings'
is a Unix command that shows you the printable ascii strings in a
binary file.)  Much to my surprise, I got a long, detailed revision
history in which one of the entries was something like "fixed Pico
to be 8-bit clean (was already in Pine)".  This does suggest that
pine runs an internal version of pico that is not the same as the
stand-alone version.


#26 of 55 by mju on Thu Jul 1 15:59:42 1993:

Pine uses the "Pico composer library", which is a module built from
the same sources as Pico but linked into Pine.  It does not call the
/usr/local/bin/pine binary directly.


#27 of 55 by scg on Thu Jul 1 16:49:08 1993:

Thanks, the space parity works perfectly!


#28 of 55 by davel on Thu Jul 1 18:08:14 1993:

So, if it's been fixed to be 8-bit clean, why isn't it 8-bit clean? (ssf)


#29 of 55 by remmers on Thu Jul 1 19:20:17 1993:

Beats me.  I wonder if the pine/pico perns have an email address for
bug reports...


#30 of 55 by mju on Thu Jul 1 21:39:12 1993:

It probably *is* 8-bit clean.  It assumes that your end isn't
going to gratuitiously set the 8th bit on certain characters.


#31 of 55 by davel on Fri Jul 2 01:32:42 1993:

Um, right.  It's Grex that's not, so that I normally do 7E1.  Sorry.


#32 of 55 by popcorn on Fri Jul 2 04:53:18 1993:

This response has been erased.



#33 of 55 by remmers on Fri Jul 2 07:59:52 1993:

I have an idea why Pico may have stopped working at 7E1.  I installed
pico as a stand-alone editor a few months ago.  More recently, someone
(Marc, I think) installed pine, which includes pico as part of the
package.  So the pico I installed probably got overwritten by the
"clean" pico at that point.  Should I re-install the "unclean"
pico, as that seems to work better for people?


#34 of 55 by mju on Fri Jul 2 16:50:12 1993:

Hmm.  I don't remember whether or not I took special pains to avoid 
overwriting the installed version of Pico when I installed Pine.  A
quick check of the file dates would probably tell us.


#35 of 55 by remmers on Fri Jul 2 23:34:35 1993:

The file dates on pine and pico are identical, which is why I think
the old pico got overwritten.


#36 of 55 by mikeroot on Tue Jul 6 15:23:30 1993:

All right, people, now you've done it <g>. I started out with a relatively
simple(?) question. You see, when I first logged on to Grex, I said that I 
was using a "dumb"
[A[Dterminal. (I still don't know for sure what those other options mean.
?
,



#37 of 55 by mikeroot on Tue Jul 6 15:50:09 1993:

(Third try. Good God!) All right people, Istarted with a simple question.
A friend suggested I try elm, but the board told me I didn't have enough
rows on my screen to start a file. Huh? OK, I figured it was because I 
had indicated initially that I'm using a dumb terminal. Trying to find
this conference. I found references to .login, .cfonce, and .profile files
but I'll be darned if I can find them. How about csh and sh? I know a
little about BBS's, but apparently far from enough.


#38 of 55 by rcurl on Tue Jul 6 16:36:48 1993:

They hide them. Try ls -a


#39 of 55 by tsty on Tue Jul 6 22:45:24 1993:

Before you change a bunch ofstuff, which you will in a bit anyway, just
what kind of terminal (or emulation) are you actually using? Or, can
you use? If you can adjust the emulation,either  vt-100 or ansi  are
probably the easiest to get used to, if you have either.


Last 16 Responses and Response Form.
No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss