Printing in Linux / Escape for Linux?

  • Follow


We are just about to make a "giant" step from MSDOS 6.22 to Linux (yes, DOS
users still exist) and currently use the Escape library for printing to PCL
printers.

However, Escape shut down their support long time ago, and this product is
to our knowledge not available for Linux.

Can anyone advice how to make a Clipper program make "neat" printouts under
Linux? We will be going for either CLIP or Harbor (undecided). Is there an
Escape-library lookalike available for Linux to handle this, or any other
solution?

Thank you in advance for any insight. We are greatly looking forwards to
catching up with the rest of the world and finally get rid of DOS...


0
Reply halim (4) 8/19/2004 8:23:28 AM

To print ASCII text, I was using Epson LQ codes until a time then I switch all 
our applications to HP LJ3 codes at a time without any layout problem.

Hope this will help you ... if you don't use graphics codes.

Michel.

/* Codes d'impression EPSON */

#define EpsCONDENSED   chr(15)
#define EpsNOCONDENSED chr(18)
#define Eps10CPI       ESC+"P"
#define EpsNOLARGE     chr(20)
#define EpsLARGE       chr(14)
#define Eps12CPI       ESC+"M"
#define EpsNORMAL      Eps10CPI+EpsNOCONDENSED
#define EpsCOMPRESSED  Eps10CPI+EpsCONDENSED
#define EpsBOLD        ESC+"E"
#define EpsNOBOLD      ESC+"F"
#define EpsITALIC      ESC+"4"
#define EpsNOITALIC    ESC+"5"

/* Codes d'impression HP PCL */

#define HP_NORMAL      ESC+"(sp10H"+ESC+"&l6D"
#define HP_COMPRESSED  ESC+"(sp16.66H"+ESC+"&l7D"
#define HP_6LPI        ESC+"&l6D"
#define HP_8LPI        ESC+"&l8D"
#define HP_BOLD        ESC+"(s3B"
#define HP_NOBOLD      ESC+"(s0B"
#define HP_ITALIC      ESC+"(s1S"
#define HP_NOITALIC    ESC+"(s0S"
#define HP_NOMARGIN    ESC+"9"
#define HP_A4          ESC+"&l26A"
#define HP_PORTRAIT    ESC+"&l0O"
#define HP_LANDSCAPE   ESC+"&l1O"
#define HP_RESET       ESC+"E"+HP_A4+HP_NOMARGIN+HP_PORTRAIT
// new
#define HP_12LPI       ESC+"&l12D"
#define HP_10CPI       ESC+"(sp10H"
#define HP_12CPI       ESC+"(sp12H"
#define HP_14CPI       ESC+"(sp14H"
#define HP_23CPI       ESC+"&k5H"
#define HP_25CPI       ESC+"(s25h4101T" //test
#define HP_9LPI        ESC+"&l5.3C"
#define HP_LARGE       ESC+"(sp6H"
#define HP_NOLARGE     ESC+"(sp10H"
#define HP_CONDENSED   ESC+"(sp16.66H"
#define HP_NOCONDENSED ESC+"(sp10H"
#define HP_HALFLINE    ESC+"="
#define HP_FONT_ELITE  ESC+"(s2T"

Halim A. Issa a �crit :

> We are just about to make a "giant" step from MSDOS 6.22 to Linux (yes, DOS
> users still exist) and currently use the Escape library for printing to PCL
> printers.
> 
> However, Escape shut down their support long time ago, and this product is
> to our knowledge not available for Linux.
> 
> Can anyone advice how to make a Clipper program make "neat" printouts under
> Linux? We will be going for either CLIP or Harbor (undecided). Is there an
> Escape-library lookalike available for Linux to handle this, or any other
> solution?
> 
> Thank you in advance for any insight. We are greatly looking forwards to
> catching up with the rest of the world and finally get rid of DOS...
> 
> 
0
Reply voleaubac02 (1) 8/20/2004 3:40:02 PM


To print ASCII text, I was using Epson LQ codes until a time then I switch all 
our applications to HP LJ3 codes at a time without any layout problem.

Hope this will help you ... if you don't use graphics codes.

Michel.

/* Codes d'impression EPSON */

#define EpsCONDENSED   chr(15)
#define EpsNOCONDENSED chr(18)
#define Eps10CPI       ESC+"P"
#define EpsNOLARGE     chr(20)
#define EpsLARGE       chr(14)
#define Eps12CPI       ESC+"M"
#define EpsNORMAL      Eps10CPI+EpsNOCONDENSED
#define EpsCOMPRESSED  Eps10CPI+EpsCONDENSED
#define EpsBOLD        ESC+"E"
#define EpsNOBOLD      ESC+"F"
#define EpsITALIC      ESC+"4"
#define EpsNOITALIC    ESC+"5"

/* Codes d'impression HP PCL */

#define HP_NORMAL      ESC+"(sp10H"+ESC+"&l6D"
#define HP_COMPRESSED  ESC+"(sp16.66H"+ESC+"&l7D"
#define HP_6LPI        ESC+"&l6D"
#define HP_8LPI        ESC+"&l8D"
#define HP_BOLD        ESC+"(s3B"
#define HP_NOBOLD      ESC+"(s0B"
#define HP_ITALIC      ESC+"(s1S"
#define HP_NOITALIC    ESC+"(s0S"
#define HP_NOMARGIN    ESC+"9"
#define HP_A4          ESC+"&l26A"
#define HP_PORTRAIT    ESC+"&l0O"
#define HP_LANDSCAPE   ESC+"&l1O"
#define HP_RESET       ESC+"E"+HP_A4+HP_NOMARGIN+HP_PORTRAIT
// new
#define HP_12LPI       ESC+"&l12D"
#define HP_10CPI       ESC+"(sp10H"
#define HP_12CPI       ESC+"(sp12H"
#define HP_14CPI       ESC+"(sp14H"
#define HP_23CPI       ESC+"&k5H"
#define HP_25CPI       ESC+"(s25h4101T" //test
#define HP_9LPI        ESC+"&l5.3C"
#define HP_LARGE       ESC+"(sp6H"
#define HP_NOLARGE     ESC+"(sp10H"
#define HP_CONDENSED   ESC+"(sp16.66H"
#define HP_NOCONDENSED ESC+"(sp10H"
#define HP_HALFLINE    ESC+"="
#define HP_FONT_ELITE  ESC+"(s2T"

Halim A. Issa a �crit :
> We are just about to make a "giant" step from MSDOS 6.22 to Linux (yes, DOS
> users still exist) and currently use the Escape library for printing to PCL
> printers.
> 
> However, Escape shut down their support long time ago, and this product is
> to our knowledge not available for Linux.
> 
> Can anyone advice how to make a Clipper program make "neat" printouts under
> Linux? We will be going for either CLIP or Harbor (undecided). Is there an
> Escape-library lookalike available for Linux to handle this, or any other
> solution?
> 
> Thank you in advance for any insight. We are greatly looking forwards to
> catching up with the rest of the world and finally get rid of DOS...
> 
> 
0
Reply michelv-mail (1) 8/20/2004 3:55:09 PM

Michel Vansaing�le wrote in comp.lang.clipper :

>To print ASCII text, I was using Epson LQ codes until a time then I switch all 
>our applications to HP LJ3 codes at a time without any layout problem.

Under linux, is it working with the "win-only" or usb printers as well
?

--
Regards,
Sebas
0
Reply sebas_sorry_nospam (10) 8/20/2004 7:04:10 PM

Sebas wrote:
> Michel Vansaing�le wrote in comp.lang.clipper :
> 
> 
>>To print ASCII text, I was using Epson LQ codes until a time then I switch all 
>>our applications to HP LJ3 codes at a time without any layout problem.
> 
> 
> Under linux, is it working with the "win-only" or usb printers as well
> ?

You can configure Linux any way you want, but, it would be atypical
to hardcode your application to send printer-specific codes to a
printer in this manner.

More typically, most popular Linux applications generate postscript
output. Linux is then configured to interpret this and translate
it to suit your specific device using a filter such as Ghostscript.

For Winprinters, one Ghostscript driver that *may* work is called
"GDI".

For more information, Linux-specific groups should be consulted.
linuxprinting.org has been a helpful resource to me.

A couple of years ago, I had to recompile the Ghostscript for
Slackware Linux 8.1 to include the GDI driver for my Samsung
ML-4500 (winprinter). Since then, I've tried some other RPM
based distros and they've all auto-magically detected my printer
and configured CUPS and associated printing support software.

There are a variety of options for generating postscript from your
application. Look for "typesetting" and you'll find stuff like
Tex and Lout that make producing postscript or device independent
formats simpler.

Postscript libraries for Clipper exist, and should port easily,
but, I have no specific experience.
0
Reply johnseberg (37) 8/21/2004 3:09:08 AM

4 Replies
131 Views

(page loaded in 0.102 seconds)

Similiar Articles:













7/19/2012 7:05:50 PM


Reply: