🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1086

Re: Sorting/Printing

#1086
From: libh
Date: Fri, 21 Aug 1992 00:35
29 lines
1989 bytes
In article <drice.714289674@ponder>, drice@ponder.csci.unt.edu (Keith Rice) writes:
>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.
>
  Thanks but I already know how to do it in basic, I just can't get it to work
in 'C'.
>--
>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: <1992Aug21.003552.8775@menudo.uh.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!Jane.UH.EDU!LIBH
References: <1992Aug20.022202.2349@menudo.uh.edu>,<drice.714289674@ponder>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!Jane.UH.EDU!LIBH
From: libh@Jane.UH.EDU
Newsgroups: comp.os.msdos.programmer
Subject: Re: Sorting/Printing
Message-ID: <1992Aug21.003552.8775@menudo.uh.edu>
Date: 21 Aug 92 00:35:52 GMT
Article-I.D.: menudo.1992Aug21.003552.8775
References: <1992Aug20.022202.2349@menudo.uh.edu>,<drice.714289674@ponder>
Sender: usenet@menudo.uh.edu (USENET News System)
Reply-To: libh@Jane.UH.EDU
Distribution: usa
Organization: University of Houston
Lines: 29
Nntp-Posting-Host: jane.uh.edu