home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8652 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!cs.utexas.edu!mercury.unt.edu!ponder!drice
  3. From: drice@ponder.csci.unt.edu (Keith Rice)
  4. Subject: Re: Sorting/Printing
  5. Message-ID: <drice.714289674@ponder>
  6. Sender: usenet@mercury.unt.edu (UNT USENet Adminstrator)
  7. Organization: University of North Texas
  8. References: <1992Aug20.022202.2349@menudo.uh.edu>
  9. Distribution: usa
  10. Date: Thu, 20 Aug 1992 05:47:54 GMT
  11. Lines: 26
  12.  
  13. In <1992Aug20.022202.2349@menudo.uh.edu> libh@Jane.UH.EDU writes:
  14.  
  15. >  Also, can someone tell me how to send escape codes to the printer.  I haven't
  16. >had a reason until now but he wants the sorted file printed out in condensed
  17. >print.  How do I send the 'chr(27) + ??' (the basic version) to the printer.  I
  18. >tried sending the character 27 + value but it just gave me the ascii equivalent
  19. >letter rather than changing the printer setup.  Thanks alot in advance for any
  20. >help on either question....
  21.  
  22. Sounds to me like you are sending the '+' character right after the ESC.
  23. The following line of BASIC code will send a control code to activate
  24. italic mode on an Epson FX-series printer:
  25.  
  26.     LPRINT CHR$(27) + "4";
  27.     (or)
  28.     LPRINT CHR$(27) + CHR$(52);
  29.  
  30. Remember to end the string sent to the printer with ';' or you will
  31. get an unwanted line feed.
  32.  
  33. --
  34. D. Keith Rice -- University of North Texas -- drice@ponder.csci.unt.edu
  35. -----------------------------------------------------------------------
  36. Beta Test: To voluntarily entrust one's data, livelihood and sanity to
  37.            hardware or software intended to destroy all three.  In
  38.            earlier days, virgins were selected to beta test volcanoes.
  39.