[REBOL] Re: [console] open, close, trace, view, capture output, crypto, carl, i
From: g::santilli::tiscalinet::it at: 12-May-2003 15:58
On Monday, May 12, 2003, 9:55:14 AM, you wrote:
MM> Does somebody on this list know how to avoid writing on the console,
MM> how to capture such output, how to close the console without closing the
MM> main window, etc ???
You cannot close the console window AFAIK, however you can
any console output by replacing system/ports/output.
(You could for e.g. write a little port handler that just inserts
all the input into a string; then you can use it to capture your
output into a string.)
MM> and, for pedagogical reasons, from time to time, I want to open the console,
MM> (say: to let a student try some statements)
MM> and, after some action (such as typing 'exit-console' or something like that)
MM> from the user, close the console.
Maybe you could do the same way as /Link does when opening the
console, i.e. it just launches a script that HALTs. This gives you
a new REBOL process with the console open; anything done at the
console wouldn't interfere with your program.
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r