APPENDIX P:
ASCII ON PCL3/POSTSCRIPT
When the line termination character in an ASCII file is "LF" instead of "CR" "LF", output may be skewed. That is, each line of the output begins in the column following the end of the proceeding line.
Printing from AP10 or AP20
To avoid skewed ASCII output on an AP10/20, print ASCII files with the following lp command:
lp -dLPxx /etc/printers
Printing from 50 Series Stations
To avoid skewed ASCII output on 50 Series stations, instruct the printer to do a CRLF each time it sees only LF . This can be done by sending the printer an escape sequence as follows:
echo "\033&k2g" >/dev/LP##
Sending the DeskJet printer a PostScript file (that is, a printscreen from a 50 Series workstation) clears the setting and requires it be re-sent. However, the above command can be added to a script, or the escape sequence can be added to the beginning of an ASCII file.
Printing from 51 Series Stations
To modify a Model 51 station's script file so that the lp command issues the escape sequence to the printer prior to printing and also issues a Form Feed command to eject the last page, make the following changes on each AP/AW/WP51 in the system:
• Type:cd /etc/lp/interfaces cp LPxx HP1200 (LPxx: logical name for the HP DeskJet)• Using a text editor find the following at or about line 709:
##### # Set the page size and print spacing, but not the # character set. # We will be doing the character set later (after the # header). ##### internal_lpset "${cpi.}" "${lpi}" "${width}" "${length}" ""• Add the following line after the above text:
# Echo command to printer to map Newlines # as Carriage-return Newline. echo "\033&k2g"• Find near the end of the file:
if [-n "${FF}" -a "yes" = "${nofilebreak}"] then echo "${CR}${FF}\c" fi• Add the following lines after the above text:
# Eject the last page out of the printer echo "\014"• Issue the following lpadmin command:
rm LPxx ln -s HP1200 LPxx lpadmin -p LPxx -i /etc/lp/interfaces/HP1200An lp of an ASCII file is formatted properly and the last page is ejected.