Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR not returning cursor to left margin 1

Status
Not open for further replies.

Ham007

Programmer
Aug 20, 2003
2
GB
I am sending a Reset followed by Landscape, Leftmargin then a CPI12 command to a HP LaserJet 5Si.
My printout generates the first line ok, but the 2nd (and I assume the remaining lines) are starting on the next vertical line but the horizontal position is where the last line left off (not against the left margin).
e.g.
This is the first line
This is the second line
Third etc

Any ideas?
 
Unix?

Add

<esc>&k2G

to your init. It looks like your app is only sending a LF and no CR. The above code will supply the CR.

Jim Asman
jlasman@telus.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top