config.bbx hp escape codes column off page


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: "Brian K. White" <linut@squonk.net>
Subject: Re: Help Config.bbx printer description References: <3A4CF817.6113F24B@byronmedical.com>
Date: Sun, 31 Dec 2000 06:44:29 GMT


Hate these ads?



Byron Medical wrote:

> Hello all,
>  My printer won't print some reports properly, a collum is off the page.
> The printer is an HP8100 Laserjet. I know that to get the program FACTS
> to print properly I have to edit the config.bbx and then add it through
> FACTS. Here is what I'm looking at when I open config.bbx in VI:

> alias PL ">lp -dhp8100a -onobanner -s 2>/dev/null" "HP Laser Jet"
> CR,SP=1B451B266C3636703265372E36633636461B2661306C3133324D1B2873313648,
> CP=1B451B266C316f363670352E3435431B2873313648, CPCOLS=177 , SPCOL=132

> I understand everything in the string upto "HP Laser Jet", then
> thereafter I am only guessing.
> CR,SP=1B451B266C3636703265372E36633636461B2661306C3133324D1B2873313648,
> CP=1B451B266C316f363670352E3435431B2873313648, CPCOLS=177 , SPCOL=132
> I assume I'm looking at a string of hexadecimal numbers. Does this
> description need to be written in hexadecimal? What does "CR,SP=  CP=
> CP=  CPCOL=  SPCOL=" stand for? Which one should I edit to get the
> coullm width to fit on a page (8.5x11) properly
> Could some one be kind enough to give me a little guidence?
> Thanks
> Byron



SP = Standard Print, it is a human readable representation of a sequence
of escape codes, in hex, to send to the printer to initialize it and/or
switch it into standard print mode (as opposed to Compressed Print mode)
same coes for CP=  it's a init sequence for compressed print














probably you can guess the rest now...
SPCOL is the number of columbs available in standard mode
CPCOLS is the number available in compressed mode.



every 2 characters is one hex value, and no I don't think you need to
change the way it's written at all, though you may need to edit *what* is
written, as in, you may need to change what codes are sent to the printer.
in the above SP= and CP= strings, 1B is hex for the <escape> character.
also known as octal 33 or \033 or decimal 27 or , in bbx, CHR(27). so you
can see the string is a string of escape codes.
<esc>something <esc>somethingelse ...



A little time spent with your nose in the manual to that printer will show
you what all the string does to the printer, and probably will hint at the
adjustment you should make, either to the init string, or the program.



This gives rise to a few questions you must answer before I can answer
your first question.




1) In what mode are you losing characters off the side of the page?
(compressed or normal) (compressed, in this context just means a smaller
font, 17 characters per inch, instead of the normal 10)









2) where does printing start on the left side of the page? Is it possible
someone just buggered up the tractor feed or something so that the paper
is further to the left than it could be?



3) does the printing continue printing right off the edge of the page or
does it stop at some margin? (actually I forgot you said laserjet here,
this and the previous question really only apply to dot matrix)



4) do you lose characters in both standard and compressed, or just one or
the other mode?
   4.a - if you only lose characters in compressed mode, is compressed
mode really working? (are the characters smaller?) 
   4.b - if you are only losing characters in standard mode, is there an
escape code you can use to put the printer into 12cpi for "standard"
instead of the default 10cpi? this would make standard text a little more
compressed and perhaps your missing characters would all fit then.



5) if this is 8.5x11 paper in normal portrait orientation, the usual
numbers for number of columbs in compressed and standard modes is 132 and
80, not 177 and 132. if the printout is in landscape mode I don't know
what the numbers are, but 132 sounds right for standard mode in landscape
orientation.



Also: If FACTS is anything like Prosper (FACTS is the successor to
Prosper, and it is very similar, but there are obviously differences since
it's several generations newer)
then I doubt you have to edit the config.bbx directly, you just make your
changes in the system maintenance menu --> file maintenance --> printer
configuration, then "create new bbx config file" by pressing C on that
screen. You have to be root in order for the "create new bbx config file"
to work.



Also-Also: at least with Prosper, though bbx uses "config.bbx" by default,
Prosper actually used it's own "config.ssi" so editing config .bbx may not
have any effect unless you use bbx outside of running FACTS.



Also-Also-Also: Unrelated to printing, but concerning bbx and config.bbx,
I happen to have developed a scheme to allow unlimited telnet and xterm
bbx sessions if your version of bbx is as retarded as mine is. my old bbx3
actually kept a configuration line for each _tty_ in the config.bbx, and
this made xterms and telnet impractical since you can quickly use up many
more ttys than possible to put in the config file.
What I did was write a new start script that makes it's own copy of
config.bbx that has no terminal alias line in it at all, and adds one
terminal line to the end for itself, then launches bbx with using that
config file. it erases the file on exit. works great. 
Hopefully any newer version is not so retarded, but just in case it is,
you might be happy to know there is a work-around. Let me know if you need
the details.



-- 
Brian K. White                   http://www.squonk.net/users/linut
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani







Comments


Thu Sep 29 22:44:59 2005: Subject: Please help me   anonymous
Hello to all I have a problem I have the UNIX SCO 5.0 and the pro5 I want to connect a printer for a print server Intel agrege it already lines her in the Config.bbx but it doesn't only print me the whole leaf of the half for the left please I need help they told me that each printer has its own escape codes it is certain my printer it is a laser jet 6P and connected to one of womb of 15" makes me the same thing it is an Epson LQ 2190 please help me thank you please send me e-mail sistemas@represa.com.mx



Add your comments

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
31132802 4,192

/Bofcusm/881.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

More:
       - Newsgroup




Unix/Linux Consultants

Your ad here - $48.00 yearly!

larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting


UBB Computer Services Support for Openserver, Unixware and Linux. Windows integration with Unix/Linux servers. Hardware, Backup and Networking issues. Located near Sacramento CA, we provide onsite support throughout Northern CA and Nationwide via remote access. We are a SCO Authorized Partner and a Microlite BackupEdge Certified Reseller.


http://www.breakthru.com.au SCO (Openserver and Unixware), Unix, Solaris and Linux Consulting services including: Secure Networking Solutions; Linux based Firewalls; Backup Solutions; Secure Home to Office Network Setup; Phone, Remote and On-Site Support available - Satisfaction Guaranteed!



Twitter
  • Nov 20 07:43
    I took a random stab at the free upgrades and ordered a new cell phone. Didn't check features or reviews. Hope I don't hate it.
  • Nov 19 18:52
    We'll be spending just as much on holiday gifts as we did last year: exactly $0. Doing our part to help the retail stores as we always do.




card_image








Change Congress


Related Posts