From: mirons@ccs.northeastern.edu (Michael A. Irons) Subject: Prog to get Hp to print right. Date: 29 Mar 1993 03:43:28 GMT
Hi all;
There is a manual that comes with you printer that tells you all about the
codes to make it do everything. Here's a programm that spits out the ESC
codes to set it to print files. This needs to be run every time the printer
power-cycles like this.
setdjLF > /dev/lp
#include <stdio.h>
/*
This program alows the DeskJet-500 to print Unix files!!
*/
void main()
{
printf("\x01b\x026\x06b\x033\x047");
}
How to setup the printcap to cause lpd to barf this to the printer
before every text file, I don't know.
--Mike Irons; mirons@Dworkin.CCS.Northeastern.EDU (School) mirons%icarus.uucp@MecEng.COE.Northeastern.EDU (Home)