Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!tektronix!tekcrl!tekfdi!videovax!stever From: stever@videovax.UUCP Newsgroups: comp.sys.amiga Subject: Re: Printer troubles Message-ID: <4580@videovax.Tek.COM> Date: Thu, 17-Sep-87 12:08:55 EDT Article-I.D.: videovax.4580 Posted: Thu Sep 17 12:08:55 1987 Date-Received: Sat, 19-Sep-87 17:59:06 EDT References: <7200009@uiucdcsm> Reply-To: stever@videovax.Tek.COM (Steven E. Rice, P.E.) Organization: Tektronix Television Systems, Beaverton, Oregon Lines: 41 In article <7200009@uiucdcsm>, Mike Schwager( 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? "lprint" does swallow escapes! To avoid this, do OPEN "PAR:" FOR OUTPUT AS #1 . . . PRINT #1,CHR$(27)+"W"+CHR$(1)+"hello" (If your printer is on the serial port, open that instead of PAR:.) This is a bit of a kludge, but it will work. . . Steve Rice P.S. My manuals and my Amiga are at home, so I please excuse any errors in the command format! ----------------------------------------------------------------------------- new: stever@videovax.tv.Tek.com old: {decvax | hplabs | ihnp4 | uw-beaver | cae780}!tektronix!videovax!stever