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

printer escape sequences hp


© December 2004 (various authors)

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
 https://www.CACTUS.com  \,  _}  |  |     https://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


Inexpensive and informative Apple related e-books:

Take Control of High Sierra

El Capitan: A Take Control Crash Course

Take control of Apple TV, Second Edition

Take Control of Apple Mail, Third Edition

Take Control of IOS 11





Printer Friendly Version

Have you tried Searching this site?

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


Printer Friendly Version





A computer once beat me at chess, but it was no match for me at kick boxing. (Emo Philips)




Linux posts

Troubleshooting posts


This post tagged:

SCO_OSR5



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode





SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)
www.SCOsales.com