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 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
/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.
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.
Click here to add your 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
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