APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

printer escape sequences hp


What is this stuff?

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!):



Newsgroups: comp.unix.sco.misc
From: scolist@cactus.com (Jeff Hyman)
Subject: Re: Creating HP Escape Sequences
Date: Sat, 19 Feb 2000 21:44:09 GMT
Message-ID: <m12MHfd-0006cwC@cactus.com> 

Recently, Bill Vermillion wrote:
> In article <20000218151743.30891@tegan.com>,
> Tom Parsons  <cis@tegan.com> wrote:
> >Yates Sale enscribed:
> 
> >| How do I generate escape sequences for controlling HP5Si
> >| printers. The printers use the PCL 5 language. I am running on
> >| SCO Openserver 5.
> 
> ....
> 
> >Each time a printer interface file closes (after every print job), it
> >resets the printer to defaults.
> 
> And for some of my applications which have codes within them, I
> issue and ESC E from the applications itself.  That way I know the
> printers is in a default mode (which may depend on panel settings
> stored within the printer).
> 
> I use the 'never assume anything' model when I can - and when I
> remember :-)
> -- 
> Bill Vermillion   bv @ wjv.com 

Here is a rather old script I've been using for years. It works
fine for me. This file should be "sourced".                     



:
#       @(#) laser_fonts  -  import file with various HP laser fonts   
#
#       Author: Jeffrey Hyman
#
#       Source Code (C)1989-1993 Lone Star Software Corp.  All Rights Reserved.
#
# WARNING:  Only use 'vi' to edit this file.
#

F05="(8U(s1p05v0s3b4148T"  ; export F05
F08="(8U(s1p08v0s3b4148T"  ; export F08
F10="(8U(s1p10v0s3b4148T"  ; export F10
F12="(8U(s1p12v0s3b4148T"  ; export F12
F15="(8U(s1p15v0s3b4148T"  ; export F15
F18="(8U(s1p18v0s3b4148T"  ; export F18
F20="(8U(s1p20v0s3b4148T"  ; export F20
F25="(8U(s1p25v0s3b4148T"  ; export F25
F30="(8U(s1p30v0s3b4148T"  ; export F30
F35="(8U(s1p35v0s3b4148T"  ; export F35
F40="(8U(s1p40v0s3b4148T"  ; export F40

FS="s0P"        ; export FS          # Fixed spacing
PS="s1P"        ; export PS          # Proportional spacing
OL="(s32S"      ; export OL          # Outline
Shadow="(s128S" ; export Shadow      # Shadowed print
ULine="&d3D"    ; export ULine       # Underline this area
DULine="&d@"    ; export DULine      # Disable Underline this area
ITALIC="(s1S"   ; export ITALIC      # Italic printing
LT="&l4H"       ; export LT          # feed paper from Lower Tray
Reset="E"       ; export Reset       # reset HP laser (forces form-feed)
Fdefault="(3@"  ; export Fdefault    # reset original default FONTS

# i(nsert)... Cntrl> v... <Esc) ... will do ==> ^[ for laser 

###  EOF            
Thanks!
Jeff Hyman
                                .--.
__________________________  .-. |  |  __________________________________
 Lone Star Software Corp.   | | |  | .-. E-Mail:  jeff@cactus.com
 Cactus International, Inc. | |_|  | | | Sales:   (800) LONE-TAR
 509 E. Ridgeville Blvd.  _ |___   |_| | Support: (301) 829-1622
 Mt. Airy, MD 21771     _| ~-   |   ___| Fax:     (301) 829-1623
 http://www.CACTUS.com  \,  _}  |  |     http://www.LONE-TAR.com
------------------------- \( -- |  | -----------------------------------
                                |  |



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> printer escape sequences hp ––>Re: Creating HP EscapeSequences



Increase ad revenue 50-250% with Ezoic

Kerio Samepage


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.

Contact us





I wanted to learn how to swim, so Google showed me how to turn on the water at the sink and let me splash it around a bit. They then dragged me into a helicopter, flew way out into the ocean and dumped me out. (Tony Lawrence)





This post tagged: