local printing vt120

Brian K. White brian at aljex.com
Sat Mar 13 19:59:30 PST 2004


Tom Aldridge wrote:
> Hello fp folks,
>
> Anyone have the knowhow to get local printing to stop streaming to
> screen? filepro 5.0.13R4 running in an xterm using vt120 termcap.
> Have set PN=\E[5i:PS=\E[4i:\
> Also tried inverting the 4 and 5 as per an earlier posting on the
> subject as in: PN=\E[4i:PS=\E[5i:\
>
> Tom Aldridge

By defining those in fp termcap, you are telling fp that your terminal
understands those sequences and has that feature.

_Does_ your terminal actually have that feature?

If your terminal ("your terminal" in this case means the particular xterm
program you are using) doesn't really have that feature then you should
remove those sequences from the fp termcap vt120 entry, or else make sure
that PFPT is unset and that no one chooses "local" from -pq menu's.
Some xterm programs understand the sequence, most don't. I know rxvt does,
and I beleive all it does is pipe the data to "lpr". I didn't find any way
to configure the print destination or anything else about the printers
behaviour but there still might be a way using app-defaults most likely.

The only way to stop print data from going to the screen in a terminal that
doesn't have a passthru-print feature, is to not send the data in the first
place.

Or, this being open-source, get the source and start hacking and add the
feature to your xterm program.

If you want to try rxvt, here is the fp termcap I use for rxvt. I include
the linux termcap too, because rxvt is mostly the same as linux, so I made a
term termcap that consists of merely a few changes to the linux one, and
maybe my linux is no longer 100% the same as the stock linux entry. Note
that by default rxvt will set TERM to "xterm" which is not accurate in my
opinion given that xterms all differ from each other and so does rxvt, so
this termcap only works because I always use "-tn rxvt" on the rxvt command
line in the window manager configuration. I also use "-geometry 80x25" since
by default it will do 80x24. I include my xterm entry too because it's small
and I think a little better.
These xterm and rxvt termcaps also assume you didn't go out of your way to
load a cp437 font.
This "xterm" definition is not correct for sco's xterm, that's why the
comment field references Xfree86 by name.

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:PV:\
        :GS=\E[12m:GE=\E[10m:\
        :GV=\263:GH=\304:\
        :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:\
        :PN=\E[5i:PS=\E[4i:

xterm|xterm-color|XFree86 xterm:\
        :kh=\E[H:\
        :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:\
        :P0=\EOP:P1=\EOQ:P2=\EOR:P3=\EOS:P5=\E[15~:\
        :tc=linux:

rxvt|rxvt 2.x:\
        :kh=\E[7~:\
        :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:\
        :P0=\E[11~:P1=\E[12~:P2=\E[13~:P3=\E[14~:P5=\E[15~:\
        :tc=linux:

Brian K. White  --  brian at aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani



More information about the Filepro-list mailing list