home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8679 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.9 KB

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