[REBOL] Printing Re:(2)
Hi Elliott, Looking at your header, I assume you're asking about Linux. On Amiga the printer is on the PRT: device, so to print from 'a I would do: How about compatibilty? I'd like this program to run on many different platforms like Linux and Windows and to work with many different printers. I'd hate to prompt the user asking him what operating system he is using. I don't recall at the moment what the printer device is in Linux, if not /prt. I think you get the point of what we're doing. Linux is /dev/printer and /dev/lp0 - DOS/Windows is /prn and /lpt1. Too bad this isn't built into REBOL -- it would be nice to work with a graphical printer device that has its own REBOL dialect, i.e. line 430 280 449 298, and text 240 178 "Hello World". Whoah, combined with REBOL/View, somebody could write a web browser complete with printing. Anyway, thanks for the suggestion. Later, Eric
[REBOL] Printing Re:(4)
Hi Kevin, You can determine the OS by looking at 'fourth system/version Currently: 1=Amiga, 2=Mac, 3=Win32, 4=Linux, 5=BeOS, 6-9=Flavours of BSD, 10=Solaris, 11=SGI, 12=HP/UX, 15=WinCE, 17=AIX, 19=SCO Unix, 22=QNX RTOS Oh, good catch. I wonder if there is any significance in the order? ;) Later, Eric
[REBOL] Printing Re:(3)
On 1/2/2000 at 8:01 PM [EMAIL PROTECTED] wrote: {{ I guess there really isn't a built-in printing mechanism. The workaround I have figured out is writing an html file, which can be printed from a web browser. }} Non-trivial printing seems like a tough cross-platform challenge, since I'm sure the models are very different. The other workaround that's been discussed is using PDF the same way, write to a PDF format and let Acrobat finish the job. But I don't think anyone's implemented that yet. -Ted. *** REPLY SEPARATOR *** On 1/2/2000 at 8:01 PM [EMAIL PROTECTED] wrote: Hi Joel, Assuming that you are using a system that has pseudo-file-names that refer to hardware devices (or communication channels), you can use 'write directed to such a file name. Well, yes. I am developing my script under Linux, but it may be used under Mac, Win95, or any number of other platforms. I guess there really isn't a built-in printing mechanism. The workaround I have figured out is writing an html file, which can be printed from a web browser. Later, Eric
[REBOL] Printing Re:
[EMAIL PROTECTED] wrote: Does anyone know a good way to print from REBOL? I only need to print text. Assuming that you are using a system that has pseudo-file-names that refer to hardware devices (or communication channels), you can use 'write directed to such a file name. For example, in w95, you can say either write %//prn "Hello, world!^(page)" or write %//lpt1 "Hello, world!^(page)" Note the page eject (form feed) at the end, which is handy for continuous-form printers, and necessary for most page-mode printers (e.g., ink jet) that I've tried. -jn-
[REBOL] Printing Re:(2)
Hi Joel, Assuming that you are using a system that has pseudo-file-names that refer to hardware devices (or communication channels), you can use 'write directed to such a file name. Well, yes. I am developing my script under Linux, but it may be used under Mac, Win95, or any number of other platforms. I guess there really isn't a built-in printing mechanism. The workaround I have figured out is writing an html file, which can be printed from a web browser. Later, Eric
[REBOL] Printing Re:
Eric, I have a little C program which sends command to DOS in windows 98. I can print from REBOL with this. If you have any interest let me know. It might work in other operating systems with minor modifications. Jerry