[Gambas-user] Application_Read

tobias tobiasboe1 at ...20...
Sun Jul 24 00:32:46 CEST 2011

On 24.07.2011 00:11, Benoît Minisini wrote:
>>> I don't know what you are talking about. I was sending a fixed project
>>> for Demosthene. Please send your project so that I can take a look at
>>> it!
>>> Regards,
>> oh god, i didn't notice the attachment... it really works. ah, i see
>> Lof() returns 0 on stdin, of course...
>> but there is something i don't understand, i altered the working code to
>> check Lof():
>> Static Public Sub Application_Read()
>>     Dim sBuf As String
>>     Print Lof()
>>     sBuf = Read -256
>>     FMain.Insert(sBuf)
>> End
>> and now it permanently Prints zeros into my terminal, which means that
>> the Application_Read() is called all the time, but nothing is inserted
>> into the textarea, not even an empty string as i expected. what is going
>> on?
> I noticed that, I must investigate. It happens when you run the project from
> the IDE without a true terminal.
> In that case, the standard streams are redirected to pipes created by the IDE
> when running the project. And these pipes don't seem to behave like terminal
> file descriptors!
for me, it's the same in bash (Konsole), not the ide only

More information about the User mailing list