(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



local print passthru passthrough transparent print terminal


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Fri Sep 21 06:17:21 2001
Path: typhoon.ne.mediaone.net!chnws06.ne.mediaone.net!24.147.2.43!chnws02.mediaone.net!newsfeed2.skycache.com!newsfeed1.cidera.com!Cidera!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.nj.home.com.POSTED!not-for-mail
From: "Brian K. White" <brian@aljex.com>
Newsgroups: comp.unix.sco.misc
References: <9od3e3$drg$1@news.inav.net> 
Subject: Re: trying to passthru print on Link Mc5
Lines: 82
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <Cixq7.53664$tL2.7142663@news1.rdc1.nj.home.com> 
Date: Fri, 21 Sep 2001 02:08:34 GMT
NNTP-Posting-Host: 24.253.240.158
X-Complaints-To: abuse@home.net
X-Trace: news1.rdc1.nj.home.com 1001038114 24.253.240.158 (Thu, 20 Sep 2001 19:08:34 PDT)
NNTP-Posting-Date: Thu, 20 Sep 2001 19:08:34 PDT
Organization: Excite@Home - The Leader in Broadband http://home.com/faster
Xref: chnws06.ne.mediaone.net comp.unix.sco.misc:103626


"Gregory Calvert" <gmc@inav.net> wrote in message
news:9od3e3$drg$1@news.inav.net...
> Unix files won't print to passthru printer attached to an Mc5 link
printer.
>
> If I do the character sequence to toggle the printer on manually (cntrl +
> F2) on the terminal, all subsequent output goes to the printer.
>
> I've modified the appropriate termcap (vt220), by adding the line
>
>     :PN=\E[5i:PS=\E[4i:
>
>  and updated /usr/lib/terminfo/v/vt220 adding the lines:
>
>     mc4=\E[4i, mc5=\E[5i,
>
> Do I perhaps need to send escape sequences with the print command? Modify
> the printer definition in SCO 5.05?
>
> Thanks for any help



where is ctrl-F2 documented? That sounds like a hardware hot-key that only
works by physically pressing those keys, not an escape sequence that can be
sent from software.

*1*
Does the documentation for the terminal claim that the terminal recognizes
ansi printer control sequences? (The sequences you describe above are
ansi/vt compatible)
Some terminals have other escape codes they use to do that job. examples
culled from linux termcap file (pf is another name for PS, and po is another
name for PN, (don't ask me!))
whether you shoule put pf/po or PS/PN or both in your termcap depends on
which one your application recognizes. Seems to me most sco apps use the
PN/PS version. these are termcap entries, for terminfo it is always mc5 and
mc4
altos:  :pf=\EJ:po=\Ed#:
hp: :pf=\E&p13C:po=\E&p11C:
qume:  :pf=\EA:po=\E@:
televideo: :pf=\Ea:po=\E`:
wyse:  :pf=^T:po=^X:

*2*
next, suppose your terminal does say it uses the ansi/vt codes ( \E[5i
\E[4i ), is it possible to put the terminal into a mode where it emulates
some other terminal that does not use ansi codes but perhapse wyse or
televideo instead?

*3*
next, suppose the terminal is in ansi mode, and does respect the ansi
local-print codes. you have updated the termcap and terminfo entries for
"vt220". When you log in, does "echo $TERM" return "vt220" exactly? (without
the quotes in both cases)

what happens if you brute force it and send the actual escape codes yourself
instead of relying on all the automagical stuff? To test what I mean, run
the following while logged in at one of these terminals:

echo "\033[5ithis is a test\033[4i"



if your terminal really reuses the ansi passthru print codes, then you
should get "this is a test" on your printer. For the above test it does not
matter what $TERM is set to, nor does it matter if the termcap or terminfo
are configured properly or not. the only thing that is necessary is that you
are running the default sco sh or ksh (not bash or csh) or else the \033
will not be interpreted correctly.

if you do not get the test line from your printer, then the printer is
broken, or the parallel port is fried, or the terminal does not use ansi/vt
escape codes, or passthru-print has been disabled somewhere in the terminals
config.

if you do get the test line, then one of 1, 2, or 3 above needs closer
examination.
--
Brian K. White  --  brian@aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani






Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/Bofcusm/623.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress