Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!cbmvax!daveb From: daveb@cbmvax.UUCP (Dave Berezowski) Newsgroups: comp.sys.amiga Subject: Re: Printer troubles Message-ID: <2360@cbmvax.UUCP> Date: Fri, 18-Sep-87 09:42:29 EDT Article-I.D.: cbmvax.2360 Posted: Fri Sep 18 09:42:29 1987 Date-Received: Sun, 20-Sep-87 02:26:01 EDT References: <7200009@uiucdcsm> Reply-To: daveb@cbmvax.UUCP (Dave Berezowski) Organization: Commodore Technology, West Chester, PA Lines: 40 In article <7200009@uiucdcsm> schwager@uiucdcsm.cs.uiuc.edu writes: > >Here's an odd little problem I'm having: >I can't seem to get the ASCII "escape" character to my printer. >From BASIC, I do a: > lprint chr$(27)+"W"+chr$(1)+"hello" >which is supposed to print the word "hello" double-width, but it >doesn't. "hello" is simply printed in normal pica. I've tried other >escape codes also, to no avail. I can power my printer up in Hex mode. >Then the ASCII representation of every char sent to the printer is >supposed to print. Instead of getting: > >1B 57 01 68 65 6C 6C 6F > >like I'm supposed to, I get: > >01 68 65 6C 6C 6F > >In other words, the escape char and the "W" evaporate. Any ideas? >"Sure," you say, "don't use BASIC." Well, I don't usually, but I'm >trying to enter a utility from a magazine, and I'd like for the program >to be able to set the width and other parameters on the printer. >So, constructive ideas, anyone? Many thanks.... >-mike schwager >-- {ihnp4,convex,pur-ee}!uiucdcs!schwager schwager%uiuc@csnet-relay.arpa > University of Illinois, Dept. of Computer Science Sounds to me like you are sending the characters through the printer device's filter. ie. It is expecting Amiga standard escape sequences which it translates to escape sequences for the particular printer selected under preferences. 'ESC[6w' is the proper command to turn on enlarged (double width) text. If you don't want to use the standard Amiga commands, then you'll have to send the output directly through the parallel or serial port. (depending on whether you have a parallel or serial printer). Unfortunately, I don't know how to do this in Amiga Basic. Regards, D.B.