Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [console] open, close, trace, view, capture output, crypto, carl, i

From: g::santilli::tiscalinet::it at: 12-May-2003 15:58

Hi Marc, 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 redirect 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. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r