Rebol3 stdout and stderr ports?
You can read bytes from system/ports/input
, and if you convert from BINARY! bytes in STRING! unicode codecs you get something consistent:
>> to-string read system/ports/input
Hello
== "Hello^/"
But if you try to write system / ports / output to Rebol3 you get:
>> write system/ports/output "World"
** Script error: write does not allow none! for its destination argument
The egress port is a field in the object, but it is none
. The normal PRINT command that generates the output will not set the field. Where is it?
Also while on the topic, where is the stderr port?
+3
source to share