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

[REBOL] [console] open, close, trace, view, capture output, crypto, carl, issue,

From: rebol::meurrens::org at: 12-May-2003 9:55

Hello all, I have a double question regarding the use of the console when running a script under VIEW. (thus a script intended for a end user, with GUI) 1.1) ==== the problem 1 (part of my crypto project, but could be elsewhere) Some special functions like the key pair generation functions in the cryptographic library may take a long time to complete. They write during the execution some characters on the console (such as -----+----------+---+.... ) See the image (much better than words...) http://rebol.mksa.net/img/crypto-issue-2.jpg to understand what I mean. Unfortunately, when they complete, the console remains visible. [ I would, of course, prefer to capture the execution "ticks" in a progress bar functionnality, but this is another story...] This is an issue fully described at URL http://rebol.mksa.net/test-crypto.r?help Mind that this page reports (first) a "bug" and (then) an "issue". My question here is only related to the "issue". (of course you may be interested by the bug report too, but this is only for crypto experts) 1.2) ==== my question Does somebody on this list know how to avoid writing on the console, how to capture such output, how to close the console without closing the main window, etc ??? 2) ==== reverse problem (within my project : computer aided rebol learning, he! it makes CARL :-) ...) In this case, I run a GUI script (under VIEW or even within a Win32 compiled program) and, for pedagogical reasons, from time to time, I want to open the console, (say: to let a student try some statements) and, after some action (such as typing 'exit-console' or something like that) from the user, close the console. 2.2) ==== my question (very similar to 1.2) How do I open and close the console from within my script ? Well, I can open it by printing something. Fine. But, for now, I can give the control to the user only by making voluntary an error within the script. But this is really not neat !!! And, when the user (the student) runs the following script, I am not able to let the console disappear. ============== Thanks to all for your help. Btw, I throw this thread with the subject headed [console] and I already promise to publish a "final" message with the subject headed [console/synthesis/marc/15-May-2003] when I'll receive your comments (the date is of course fictive... we'll see when we get all answers...) Cordially </marc> Marc Meurrens TEL: +32 (0)2 537 2812 FAX: +32 (0)2 537 7645 GSM: +32 (0)475 46 2812 EMAIL: [marc--meurrens--org] URL: http://www.meurrens.org/ PGPKEY: http://www.meurrens.org/pgp/ Please don't mail me attached files, instead, use my 'exchange area' : EXCHANGE AREA: http://www.meurrens.org/exchange/ (HTTP/FTP upload/download of temporary/persistent files)