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: printing in bold and colors - comp.lang.java.helpHi, How would I print out the following in bold and in ... output, see http://en.wikipedia.org/wiki/ ANSI_escape_code. ... Works fine on my Linux console. Works fine in my Cygwin ... programmatically print PDF and specify printer, page size, and ...- Append the needed PJL commands to the print file to ... The tray options have been specified as escape sequence ... PDF scaling - comp.os.linux.misc... specify printer ... lp commands take a while to execute - comp.unix.solaris... run, this is on a print client which gives it's print ... if not where > > can I find them. > > Here is the escape ... Possible to run Solaris binaries on Linux/Sparc ... search for hex charcater in files - comp.unix.programmer ...... find . -type f -exec /usr/xpg4/bin/grep -q $'\xa0' \; -print' > > Sorry, I forgot to escape the ... how to remove non ascii characters in id3tags - comp.os.linux.misc ... grep for a "`g'"? (gives an "Unmatched `" err) - comp.unix.solaris ...Or use single quotes but then you have to escape the ... home/malcolml> -- Cheers Malcolm (Linux ... HP/UX printing queues - comp.sys.hp.hpux If any errors are ... perl + regex bug? - comp.lang.perl.misc... configuration: Platform: osname=linux, osvers=2.4 ... print "$index is contained in $orbital\n" if grep ... code value U+0900 - comp.lang.awk ANSI terminal escape ... Keyboard Input - comp.lang.asm.x86I recently started a post about printing characters on the ... NOKEY in al, 60h dec al jz HOME ; escape? ... Prompting for input with mysql command line [linux ... ANSI 256 characters and codes, how to - comp.lang.awkPrint special and greek charachters in command window ... but I suppose any regex flavor that can match the escape ... What characters does a given font support (Linux ... Running awk from Matlab system command - comp.soft-sys.matlab ...... exchNo[$2]+=1 } END { for ( id in exchNo ) print id ... I was using ' to escape ' and this has been working fine ... how to run matlab commands from linux terminal directly ... script for telnet on port 25 - comp.lang.awkConnected to smtp.test.com. Escape character is '^]'. 220 ... tcp/0/a.mx.mail.yahoo.com/smtp"; srv |& getline x; print ... keep alive signal to remote terminal - comp.os.linux ... 6. Escape Characters - Unix / Linux Bourne / Bash Shell Scripting ...Escape Characters Certain characters are significant to the shell; we have seen, for ... Shell Scripting, Expert Recipes for Linux, Bash and more. is available online and from ... BASH - printf printing escape codes even though I have %0b definedLinux - Newbie This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the ... 7/19/2012 7:05:50 PM
|