FWD: [fp@wjv.com: Re: linux- filepro -putty]

Bill Vermillion fp at wjv.com
Tue Mar 16 10:46:34 PST 2004


I meant to send this to the list, but accidentally sent it only
to Enrique so I'm forwarding this to the list so the information
can be archived if someone finds it useful.


On Tue, Mar 16, 2004 at 09:41:47AM -0800, Enrique Arredondo thus spoke:
> 
> ----- Original Message ----- 
> From: "Bill Vermillion" <fp at wjv.com>
> To: <filepro-list at seaslug.org>
> Sent: Tuesday, March 16, 2004 9:16 AM
> Subject: Re: linux- filepro -putty
> 
> 
> > On Tue, Mar 16, 2004 at 08:53:13AM -0800, Enrique Arredondo thus spoke:
> > >
> > > ----- Original Message ----- 
> > > From: "Jay R. Ashworth" <jra at baylink.com>
> > > To: <filepro-list at seaslug.org>
> > > Sent: Monday, March 15, 2004 5:54 PM
> > > Subject: Re: linux- filepro -putty
> >
> > >
> > > > On Mon, Mar 15, 2004 at 07:34:21PM -0500, Fairlight wrote:
> > > >
> > > > > Confusious (Enrique Arredondo) say:
> > > > >
> > > > > > for Red Hat linux running filepro 5.0.13 which is the
> > > > > > best terminal emulation over ssh that would support
> > > > > > instering lines and deleting lines when doing developing.
> >
> > > > > I use PFTERM=xterm with PuTTY.
> >
> > > > Which works ok, as long as you have a sufficiently recent
> > > > version of the filePro termcap file. Since fpTech Release
> > > > Engineering (<roar)) doesn't bother to put release numbers
> > > > in these things, I can't tell you exactly which one it is I
> > > > use, but I'm pretty sure all the 5.0's will let you do that
> > > > unmodified. It *might* need to be from a Linux version of
> > > > filePro -- ISTR that I could do it with 4.8/Linux, but *not*
> > > > with 4.8/SCO.
> >
> > > Could you please decipher the following ,which code means
> > > insert a line :
> >
> > Termcaps aren't that hard to decipher. Note the F1-F4 below,
> > where the F1 inserts char and F3 inserts line.
> >
> > The L0 thru Lx  are the labels used.  Notice that L0-L3 are labeled
> > F1-F4.   The L's match the P's.  So if F3 inserts a line it shows
> > L2=F3.  The L's and P's correspond so the key defined so
> > when the system sees \EOR it is associated with P2.
> >
> >
> >
> > > xterm|xterm-color|rxvt|XFree86 3.3.x xterm or rxvt 2.x:\
> > >         :am:cd=\E[J:ce=\E[K:cl=\E[2J\EH:co#80:dc=\E[P:dl=\E[M:dn=\E[B:\
> > >
> :ho=\E[H:ic=\E[@:li#25:kh=\E[H:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:\
> > >         :GS=\E(0:GE=\E(B:\
> > >         :GV=x:GH=q:G1=k:G2=l:G3=m:G4=j:GZ=:\
> > >         :GU=v:GD=w:GC=n:GR=t:GL=u:RT=^J:\
> > >         :tc=linux:\
> > >         :L0=F1:L1=F2:L2=F3:L3=F4:L4=ESC ESC:L5=F5:\
> > >         :L6=Pg Up:L7=Pg Dn:L8=ESC TAB:L9=TAB:LA=Ctrl-O:\
> > >         :LB=F6:LC=Ctrl-L:LD=F7:\
> > >         :LE=F8:LG=Ctrl-X:LH=F9:LY=Ctrl-C:LZ=Enter:\
> > >         :P0=\EOP:P1=\EOQ:P2=\EOR:P3=\EOS:P4=\E\E:P5=\E[15~:\
> > >         :P6=\E[5~:P7=\E[6~:P8=\E^I:P9=^I:\
> > >         :PA=^O:PB=\E[17~:PC=^L:PD=\E[18~:PE=\E[19~:PG=^X:PH=\E[20~:\
> > >         :PJ=\E[21~:LJ=F10:
> > >
> 

> Ahhh so if I see that when I hit the F1-F4 keys on putty it display 1~ 2~ 3~
> 4~ , so then I go to the termcap and change that EOS EOR, etc... for 1~ 2~
> 3~ 4~ and it will work ?

As Jay says it won't work as they send more.  But it's usually
quite easy to see what they send.

Before you press F1 press Control-V and then F1.  

If I press F1 here I get an error message but if I press
control-V F1 I get this:

    

The ^[  means that is contrl [ - aka Esk.

So you need to see what codes your F1 sends right before the ~1

It could be ^[ - or it may be something else.

Make a copy of the termcap, and change it to match.

If you get ^[ substitue \E   - which means the same thing.
\E is shorthand for Escape, wich is control left bracket,
orr 0x1b in hex, 033 in octal.    Using the \E means you don't have
to learn the alternate form for signifying escape.

Since I don't have a Linux booted at the moment, and if I ssh in
I'll be using the terminal I'm logging in with I can't be sure so I
wont tell you.

But in almost all current Unix systems you can use the 
control-V <key> to get the sequence on the command line.

If that does not work, bring up vi, go into insert mode,

type control-V followed by the key you wish to find the codes for.

Bill
-- 
Bill Vermillion - bv @ wjv . com

----- End forwarded message -----

-- 
Bill Vermillion - bv @ wjv . com


More information about the Filepro-list mailing list