[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: writing to gschem log window via scheme



Hi Carlos,

That was just the push in the right direction that I needed.  I added 3 
new functions, gschem-log (writes to the log), gschem-msg (displays a 
message in a dialog box), gschem-confirm (displays a message and gives 
you an ok/cancel choice in a dialog box and returns #t or #f).

I'm thinking that the whole embedded scheme thing is a goldmine that we 
haven't begun to tap into.

-Dan

Carlos Nieves Ónega wrote:
> Hi Dan,
> just a quick note, as I have not too much time now.
> IIRC, it's not possible with the current code, but it is very easy to
> add.
> Look at g_register.c: all scheme functions are registered there, with a
> pointer to a C function (which takes scheme parameters).
> The C function can just call to s_log_message to write to the log
> window.
> 
> Hope this helps. If not, I can write a more detailed explanation, but
> you have to wait...
> 
> Regards,
> 
> Carlos
> 
> El lun, 24-04-2006 a las 22:51 -0400, Dan McMahill escribió:
> 
>>anyone know if that's possible with the current code base or if not 
>>where to start on adding that capability?
>>
>>
>>Thanks
>>-Dan
> 
>