PFC: Anyone got an FPtermcap for OS/X Terminal?

Jay Ashworth jra at baylink.com
Mon Dec 8 20:37:06 PST 2014


Thanks, Bruce.  I'll try plugging that in tomorrow, when I can follow it. 

It does appear to require supplying replacements for system defined 
types, which means I'll have to change it, as this is a production system,
where I can't necessarily do that with impunity.

But this isn't my first battle with termcap.  :-)

Cheers,
-- jra

----- Original Message -----
> From: "Bruce Easton" <bruce at stn.com>
> To: Filepro-list at lists.celestial.com
> Sent: Monday, December 8, 2014 11:15:26 PM
> Subject: Re: PFC: Anyone got an FPtermcap for OS/X Terminal?
> On 12/8/14, 5:22 PM, Jay Ashworth wrote:
> > [..] Either way, I'm back to my original question: Does anyone have
> > an
> > "Xterm" entry for FPtermcap that's tuned specifically for Macintosh
> > access? Cheers, -- jra
> 
> Jay - I have tried the iTerm with various settings for text size and
> vertical spacing and it just doesn't look as clean as it does using my
> mac's default Terminal app. And the vertical line and box drawing
> doesn't look very good at all. So, I've played around a bit and think
> I
> have one sort of fits-all solution for mac Terminal - at least for use
> with filepro on mac. I'm not much one for working in color in vim for
> example, but maybe you could try this and shed some light on what you
> still see as an obstacle. This looks like a lot, but can be done
> pretty
> quickly. (First, of course, back up your termcap file! :))
> 
> 1. Use this for your linux termcap entry:
> 
> linux|Linux Console:\
> :al=\E[L:am:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:co#80:\
> :dc=\E[P:dl=\E[M:dn=\E[B:ei=:ho=\E[H:ic=\E[@:im=:li#25:\
> :nd=\E[C:ms:pt:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:up=\E[A:\
> :kh=\E[1~:kb=\177:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:\
> :GS=\E[12m:GE=\E[10m:\
> :GV=\263:GH=\304:\
> :PN=\E[5i:PS=\E[4i:\
> :G1=\277:G2=\332:G3=\300:G4=\331:GZ=\376:\
> :GU=\301:GD=\302:GC=\305:GR=\303:GL=\264:RT=^J:\
> :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=\E[[A:P1=\E[[B:P2=\E[[C:P3=\E[[D:\
> :P4=\E\E:P5=\E[[E: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:
> 
> That should be very close to stock, but note the absence here of "PV".
> That is intentional and the PV will be reserved for a later step.
> 
> 2. For the xterm termcap entry use:
> 
> xterm|rxvt|XFree86 3.3.x xterm or rxvt 2.x:\
> :al=\E[L:am:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:co#80:\
> :dc=\E[P:dl=\E[M:dn=\E[B:ei=:ho=\E[H:ic=\E[@:im=:li#25:\
> :nd=\E[C:ms:pt:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:up=\E[A:\
> :kh=\E[1~:kb=\177: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:\
> :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:
> 
> Again - this should be very close to stock, but note again that there
> is
> no "PV" and again intentional. Also - here you'll want to remove
> "xterm-color" from the header.
> 
> 3. Copy the Linux termcap entry just below itself (all 16 lines)
> leaving
> a spacer line between the entries.
> 
> 4. Change the header of the copied entry's header to be just:
> 
> xterm-color|xterm-256color:\
> 
> 5. In the copied entry, on the line that starts with ":kh", add "PV:"
> before the backslash so it reads:
> 
> :kh=\E[1~:kb=\177:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:PV:\
> 
> That's it for the filepro termcap.
> 
> Now in mac's Terminal, you'll want to always have set:
> 
> a. columns 80, rows 25
> b. delete sends Control-H checked
> c. Text encoding: Latin-US (DOS)
> 
> See this screen-shot for more:
> 
> www.stn.com/macshots/advancedtab.png
> 
> (but I think those other settings are stock)
> 
> =======
> 
> THEN, for connecting to Unix boxes or Linuxes boxes where you want to
> work in monochrome, simply set the "Declare terminal as:" to "xterm"
> saving each of those Terminal profiles separately. For the color
> Terminal profiles for Linux, set it to "xterm-256color".
> 
> =======
> 
> Here are some screen shots working in the color mode on Linux under
> such
> a scenario:
> 
> www.stn.com/macshots/sample1.png
> www.stn.com/macshots/sample2.png <--Def Screen's color-picker screen
> in
> fp 5.7
> www.stn.com/macshots/sample3.png
> www.stn.com/macshots/sample4.png <--vim on the termcap file
> 
> Function keys work fine. The only thing I can think that may bug you
> is
> the Ctrl-C thing which I think you can adjust upon login with the stty
> change and then modifying the label for it in the termcap, but I just
> use that as it comes.
> 
> Oh - one more thing. Also in the *System* Preferences > Mission
> Control you'll want to modify the function key assignments for F8-F10
> (for various window, decktop and zooming wizardry) to require another
> key like option or shift [mine seem to be set to option] so that these
> functions don't supersede filepro's need for those function keys. If
> you're on older mac, then it would be, I believe this change would be
> in
> the settings for "Exposé".
> 
> OK - one other last thing about Terminal. I have my saved Terminal
> connections set up to fan up from my dock and so there is a saved
> "ABCXYZ.terminal" file associated for each of these corresponding to
> either one of our servers or a client box. This opens these saved
> sessions just fine, BUT, the mac saves each connected session and its
> history each time, so after many connections to a particular box,
> under
> Terminal's "Profiles" tab you'll have all those saved-state entries. I
> never really use this feature but I mention it because 1 - it slows
> down
> a new connection window's initial appearance when these build up, and
> 2
> - if I right click on the plain Terminal icon in the dock just trying
> to
> scroll to Basic to actually terminal into the mac itself, I have to
> scroll through all those copies of previous connections. I've tried
> the
> documented method for not retaining history but it doesn't seem to
> affect these Terminal entries from growing. Fortunately, on the
> Terminal tab for Profiles, you can remove these extra entries
> periodically using the "-" button. (I've even cleared the plist files
> that were updated when a new entry is made, but it just gets recreated
> from somewhere and all those entries keep coming back.)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list

-- 
Jay R. Ashworth                  Baylink                       jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates       http://www.bcp38.info          2000 Land Rover DII
St Petersburg FL USA      BCP38: Ask For It By Name!           +1 727 647 1274


More information about the Filepro-list mailing list