slang-users mailing list

[2000 Date Index] [2000 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

S-Lang stdin / stdout


Bonjour
 
I am trying to embed S-Lang into a MFC application.
I don't think that there is stdin / stdout files for that kind of
application.
Since S-Lang make intensive usage of stdin/ stdout, I would like to know how
to redirect default input / output.
 
For the input part there is no ptoblem I can use:
SLang_buffer_keystring(...);
 
Fot the output part, I can add my own intrinsic to let the user print
something, but by this way I lose all S-Lang defaults messages.
In S-Lang Run-Time Library reference chapter 7.2 : "The default message
device is the standard output device. "
For me it mean that we can redirect message() output without modifying the
original library.
How can we do it?
Can we redirect stdout to a function?
Would this enable the Traceback to be redirected?
 
Thanks for your help!

[2000 date index] [2000 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]