Re: Printing to usb printer
- Posted by jacques deschĂȘnes <desja at globetrotter.net> Feb 04, 2007
- 599 views
George, those device names are there for legacy reason, There is no "USB" as there was no USB at DOS time. To answer your question, it is easy to write to one of those DOS device from euphoria. Simply open it like a file. exemple:
atom fh fh = open("CON","w") puts(fh, "hello world\n")
will print "hello world to the console. The same is true for "PRN", "COM1", etc... George Walters wrote: > > > Basically how do you print to one of these directly w/o using the win32 > routines. This is in the docs > > "CON" - the console (screen) > "AUX" - the serial auxiliary port > "COM1" - serial port 1 > "COM2" - serial port 2 > "PRN" - the printer on the parallel port > "NUL" - a non-existent device that accepts and discards output > > but I don't see how to print to a USB printer. Maybe "USB"??