From help-octave-request at bevo dot che dot wisc dot edu Fri Feb 4 13:36:18 2000 Subject: Re: perlTK From: Joao Cardoso To: "John W. Eaton" CC: "help-octave at bevo dot che dot wisc dot edu" Date: Fri, 04 Feb 2000 19:35:52 +0000 "John W. Eaton" wrote: > On 31-Jan-2000, Joao Cardoso wrote: > > | Couldn't Octave have a function to do it? Something like > | > | on_idle("user function","user data") > > Sure, I've appended a solution. Thanks! But is seems that I have misunderstood its usage: octave:2> function po(data); printf("%s\n",data);fflush(stdout);endfunction octave:3> po("Hello") Hello octave:4> input_event_hook ("po","meee") error: segmentation violation -- stopping myself... I have tryed it with the last cvs. Hints? Thanks, Joao -- Joao Cardoso | e-mail: jcardoso at inescn dot pt INESC, R. Jose Falcao 110 | tel: + 351 222094322 4050 Porto, Portugal | fax: + 351 222008487 ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------