[REBOL] Re: [Newbie]: Rebol script output to Windows stdout
From: SunandaDH::aol::com at: 8-Jul-2004 10:44
David:
> Any ideas? Seems so basic a task.
As far as I know, REBOL's cross-platform-ness extends to console sessions in
a very annoying way -- it doesn't support them on any platform.
Even trying sneaky windows-only things like:
write %/con "hello console!"
doesn't seem to work.
One work around -- assuming you are happy to wait to the end of the REBOL
session to see the console messages: write to a temporary file and then type that.
Like this:
c:\REBOL\Rebol.exe helloworld.r -c
type output.txt
Script is:
REBOL [
Title: "Hello world script"
File: %helloworld
Date: 07/01/2004
Purpose: {PRINT "Hello world to console.}
Note: {
None
}
]
echo %output.txt
print ["hello world"]
quit
Sunanda