Staircase Effect on Printing!

Staircase Effect on Printing!

Post by Dragon HACK » Sat, 25 Feb 1995 12:42:55



Hi, Linuxxers!

I am having a problem and it seems that I am giving up now. I am trying
to set up my printer to work with Linux. However, everytime I print out
some simple text file, I got a "Staircase" output where the printer will
start each line below the end of the previous line.

I have gone though the Linux Printing HOWTO file, it has a section
talking about this problem but also gives a solution: input filter.

Still, did not work. I'd be very grateful if somebody can help me with
this. My printer is Canon BJ-300, with kernel 1.1.74. Thanks

--

 Basuki A. Sugiarto
 Department of System & Industrial Engineering      
 University of Arizona                  


 
 
 

Staircase Effect on Printing!

Post by Dragon HACK » Sat, 25 Feb 1995 15:51:15


Oh ya, I forgot to include my /etc/printcap. Here it is:

lp:\
  :lp=/dev/lp0:\
  :sd=/usr/spool/lp1:\
  :lf=/usr/spool/lp1/errs:\
  :if=/usr/lib/lpf:\            # <= this is input filter
  :mx#0:\
  :sh:

And here is the filter (from Printing-HOWTO doc):

#!/bin/sh
if ["$1" = -c]; then
  cat
else
  sed -e s/$/^M/
fi
# the "echo -ne" assumes that /bin/sh is really bash
echo -ne \\f

The weird thing is: I used to be able to print out although the staircase
effect was still there BUT NOW I can't print anything unless the line
that describe the input filter in /etc/printcap (:if=/usr/lib/lpf:\) is
deleted. I hope that somebody out there can help me out here. I am
completely clueless right now.

 --

 Basuki A. Sugiarto
 Department of System & Industrial Engineering      
 University of Arizona                  



 
 
 

Staircase Effect on Printing!

Post by Kevin Patrick Thibede » Sun, 26 Feb 1995 06:52:33


You wouldn't happen to be trying to print text files created in DOS would
you?  If so then you need to strip off the CR (or LF i forget which one
it is) at the end of each line.  I believe that there are programs that
can do this for you.  Do you get the staircase when you display it on the
screen with more?

: Hi, Linuxxers!

: I am having a problem and it seems that I am giving up now. I am trying
: to set up my printer to work with Linux. However, everytime I print out
: some simple text file, I got a "Staircase" output where the printer will
: start each line below the end of the previous line.

: I have gone though the Linux Printing HOWTO file, it has a section
: talking about this problem but also gives a solution: input filter.

: Still, did not work. I'd be very grateful if somebody can help me with
: this. My printer is Canon BJ-300, with kernel 1.1.74. Thanks

: --

:  Basuki A. Sugiarto
:  Department of System & Industrial Engineering    
:  University of Arizona                        


--
Kevin Thibedeau-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._

.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-

 
 
 

Staircase Effect on Printing!

Post by Dragon HACK » Sun, 26 Feb 1995 18:56:32



Quote:> You wouldn't happen to be trying to print text files created in DOS would
> you?  If so then you need to strip off the CR (or LF i forget which one
> it is) at the end of each line.  I believe that there are programs that
> can do this for you.  Do you get the staircase when you display it on the
> screen with more?

The answer to these two questions is no. Anyway, I have solved the
problem by using a program called bjf-1.1.tgz that can generate a filter
for my printer. And I would like to thank you to all of you people who
have been helping me, I have received a lot of emails. Thank you.

--

 Basuki A. Sugiarto
 Department of System & Industrial Engineering      
 University of Arizona                  


 
 
 

Staircase Effect on Printing!

Post by Roger C. P » Mon, 27 Feb 1995 03:07:23



>Hi, Linuxxers!
>I am having a problem and it seems that I am giving up now. I am trying
>to set up my printer to work with Linux. However, everytime I print out
>some simple text file, I got a "Staircase" output where the printer will
>start each line below the end of the previous line.
>I have gone though the Linux Printing HOWTO file, it has a section
>talking about this problem but also gives a solution: input filter.

You and I have the same problem.  It all used to work, until I upgraded
the distribution.  Oddly enough, if I changed the if filter to say 'cat
/tmp/x', the /tmp/x file never shows up, but the output is spooled
without translation.  Pretty neat trick if you ask me.  If the if entry
in printcap is set to some non-existent file, no errors either.

rp95
--

 
 
 

Staircase Effect on Printing!

Post by W.S. Jongm » Wed, 01 Mar 1995 09:38:35


: You and I have the same problem.  It all used to work, until I upgraded
: the distribution.  Oddly enough, if I changed the if filter to say 'cat
: /tmp/x', the /tmp/x file never shows up, but the output is spooled
: without translation.  Pretty neat trick if you ask me.  If the if entry
: in printcap is set to some non-existent file, no errors either.

I have the same problems, i changed nearly every single program-&-file
that-is-remotely-related-to-the-printing-subsystem's mode, but still no
luck. The filter works fine if i  "cat text | filter > /dev/lp1". What is
the cause, and (better) what is the solution?

Wim Jongman

......................................................................
: Wim S. Jongman                    : Biz : Remain BV                :
: Zijlweg 31 rd                     :       Marathon 5               :
: 2013 DH  Haarlem (Netherlands)    :       1213 PC  Hilversum       :
: Tel         : (iac) 31 23 313045  : Tel : (iac) 31 35 888588       :

: IRC         : Ideal               :................................:
:                 (space reserved for funny remarks)                 :
:....................................................................:

 
 
 

Staircase Effect on Printing!

Post by Warwick Allis » Thu, 02 Mar 1995 07:46:54



>: this. My printer is Canon BJ-300, with kernel 1.1.74. Thanks

You could configure the printer so that "LF = CR+LF" - it will be on
a DIP switch (my BJ-10ex had such an option).

--
Warwick
--

/     * <- Comp Science Department,\   is the question.  NO is the answer.
\_.-._/    University of Queensland,)
     v     Brisbane, Australia.    /  Intel Inside?  Don't Divide!

 
 
 

1. Staircase Effect-free me from printing in windows.

I've figured out how to print, but I cannot figure out how to correct
the staircase problem.  I tried using a script in a book I have, but to
no avail (perhaps I installed it incorrectly).  I have an HP DeskJet
870Cse; does anyone out there know where I can get a compatible filter
or even a generic one that will get me going in the mean time.

                        Thank You,
                        Todd.

2. Share cups printer to OS9.2 fails from appletalk (papd.conf problem?) and LPR.

3. Staircase Effect on Printing!

4. Disable Printers Folder

5. SCO OSR 5.0.2 - "Staircase" effect problem in remote laser printing

6. 2.0.36 and Mesagl

7. staircase effect in printing

8. Restricting user access, Solaris 2.x

9. The old staircase effect chestnut when printing

10. help printing with an hp laserjet 6l "staircase" effect even more postscript problems

11. How do I print to a printer with not staircase effect

12. Printing w/o staircase effect

13. Staircase effect on SCO 3.2 w/printing