Article View: comp.os.msdos.programmer
Article #1059Re: Sorting/Printing
From: Keith Rice
Date: Thu, 20 Aug 1992 05:47
Date: Thu, 20 Aug 1992 05:47
26 lines
1658 bytes
1658 bytes
In <1992Aug20.022202.2349@menudo.uh.edu> libh@Jane.UH.EDU writes:
> Also, can someone tell me how to send escape codes to the printer. I haven't
>had a reason until now but he wants the sorted file printed out in condensed
>print. How do I send the 'chr(27) + ??' (the basic version) to the printer. I
>tried sending the character 27 + value but it just gave me the ascii equivalent
>letter rather than changing the printer setup. Thanks alot in advance for any
>help on either question....
Sounds to me like you are sending the '+' character right after the ESC.
The following line of BASIC code will send a control code to activate
italic mode on an Epson FX-series printer:
LPRINT CHR$(27) + "4";
(or)
LPRINT CHR$(27) + CHR$(52);
Remember to end the string sent to the printer with ';' or you will
get an unwanted line feed.
--
D. Keith Rice -- University of North Texas -- drice@ponder.csci.unt.edu
-----------------------------------------------------------------------
Beta Test: To voluntarily entrust one's data, livelihood and sanity to
hardware or software intended to destroy all three. In
earlier days, virgins were selected to beta test volcanoes.
Technical Details
Message-ID:
<drice.714289674@ponder>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!mercury.unt.edu!ponder!driceReferences:
<1992Aug20.022202.2349@menudo.uh.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!mercury.unt.edu!ponder!drice From: drice@ponder.csci.unt.edu (Keith Rice) Subject: Re: Sorting/Printing Message-ID: <drice.714289674@ponder> Sender: usenet@mercury.unt.edu (UNT USENet Adminstrator) Organization: University of North Texas References: <1992Aug20.022202.2349@menudo.uh.edu> Distribution: usa Date: Thu, 20 Aug 1992 05:47:54 GMT Lines: 26