Re: [Gambas-user] Application_Read() called with no end

2013-08-19 Thread Tobias Boege
On Tue, 20 Aug 2013, Beno?t Minisini wrote: > Le 19/08/2013 23:56, Tobias Boege a ?crit : > > On Mon, 19 Aug 2013, Beno?t Minisini wrote: > >> Le 18/08/2013 21:08, Tobias Boege a ?crit : > >>> Hi Benoit, > >>> > >>> I'm using Application_Read() in a project now and it seems to misbehave. I > >>> ha

Re: [Gambas-user] Application_Read() called with no end

2013-08-19 Thread Benoît Minisini
Le 19/08/2013 23:56, Tobias Boege a écrit : > On Mon, 19 Aug 2013, Beno?t Minisini wrote: >> Le 18/08/2013 21:08, Tobias Boege a ?crit : >>> Hi Benoit, >>> >>> I'm using Application_Read() in a project now and it seems to misbehave. I >>> have attached a project which mirrors its input from within

Re: [Gambas-user] Application_Read() called with no end

2013-08-19 Thread Tobias Boege
On Mon, 19 Aug 2013, Beno?t Minisini wrote: > Le 18/08/2013 21:08, Tobias Boege a ?crit : > > Hi Benoit, > > > > I'm using Application_Read() in a project now and it seems to misbehave. I > > have attached a project which mirrors its input from within > > Application_Read() using the Debug instruct

Re: [Gambas-user] Application_Read() called with no end

2013-08-19 Thread Benoît Minisini
Le 18/08/2013 21:08, Tobias Boege a écrit : > Hi Benoit, > > I'm using Application_Read() in a project now and it seems to misbehave. I > have attached a project which mirrors its input from within > Application_Read() using the Debug instruction. > > The problem is, even though the file I am redir

[Gambas-user] Application_Read() called with no end

2013-08-18 Thread Tobias Boege
Hi Benoit, I'm using Application_Read() in a project now and it seems to misbehave. I have attached a project which mirrors its input from within Application_Read() using the Debug instruction. The problem is, even though the file I am redirecting in is completely read, Application_Read() is stil

Re: [Gambas-user] Application_Read

2011-07-23 Thread Demosthenes Koptsis
On Sun, 2011-07-24 at 00:32 +0200, tobias wrote: > 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'

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
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()

Re: [Gambas-user] Application_Read

2011-07-23 Thread Benoît Minisini
> > 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 the

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
> btw, there are no stream objects for the 3 standard fds, just interfaces? ok, found them in the File object -- Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has b

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
> 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

Re: [Gambas-user] Application_Read

2011-07-23 Thread Benoît Minisini
> On 23.07.2011 17:59, Benoît Minisini wrote: > > No, read tobias' answer. Here is a fixed project. > > > > Note that if you run your project from the IDE, what you type inside the > > debugger output window will be sent to the process, but you won't have > > the behaviour of a true terminal. > >

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
On 23.07.2011 17:59, Benoît Minisini wrote: > No, read tobias' answer. Here is a fixed project. > > Note that if you run your project from the IDE, what you type inside the > debugger output window will be sent to the process, but you won't have the > behaviour of a true terminal. > > To run your p

Re: [Gambas-user] Application_Read

2011-07-23 Thread Benoît Minisini
> i am sure that there is a bug. > > Please see the project. > No, read tobias' answer. Here is a fixed project. Note that if you run your project from the IDE, what you type inside the debugger output window will be sent to the process, but you won't have the behaviour of a true terminal. T

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
On 23.07.2011 16:15, Demosthenes Koptsis wrote: > i am sure that there is a bug. > > Please see the project. why should it be a bug? it looks more like a design issue but that's just a thought... so, you use sBuf as a global variable this is the errors reason because in this case it actually is a

Re: [Gambas-user] Application_Read

2011-07-23 Thread Demosthenes Koptsis
i am sure that there is a bug. Please see the project. On Sat, 2011-07-23 at 09:38 +0200, tobias wrote: > hi, > > >> Public Sub Application_Read() > >> > >> Dim sBuf As String > >> > >> Read #Last, sBuf, Lof(Last) > >> > > here i get again error for Read #Last > > "Dynamic symbols canno

Re: [Gambas-user] Application_Read

2011-07-23 Thread tobias
hi, >> Public Sub Application_Read() >> >> Dim sBuf As String >> >> Read #Last, sBuf, Lof(Last) >> > here i get again error for Read #Last > "Dynamic symbols cannot be used in static function" > > is this a bug? it works fine for me? --

Re: [Gambas-user] Application_Read

2011-07-22 Thread Demosthenes Koptsis
On Fri, 2011-07-22 at 12:29 +0200, tobias wrote: > hi, > > > 1) ok, it is called again and again and prints to stdout "ok". > > > > how i put the "test" word of Application_Read method in a variable, and > > stop the continuous calling? In other words how do i read the value? > > > this is pretty

Re: [Gambas-user] Application_Read

2011-07-22 Thread tobias
hi, > 1) ok, it is called again and again and prints to stdout "ok". > > how i put the "test" word of Application_Read method in a variable, and > stop the continuous calling? In other words how do i read the value? > this is pretty simple: Public Sub Application_Read() Dim sBuf As String

Re: [Gambas-user] Application_Read

2011-07-18 Thread Demosthenes Koptsis
On Mon, 2011-07-18 at 01:45 +0200, Benoît Minisini wrote: > > ok i change some things > > > > the implementation is this > > > > - > > Public Sub _new() > > > > Print "My pid is: " & Application.Handle > > > > End > > > > Static Public Sub Application_Read() > > > > Pr

Re: [Gambas-user] Application_Read

2011-07-17 Thread Benoît Minisini
> ok i change some things > > the implementation is this > > - > Public Sub _new() > > Print "My pid is: " & Application.Handle > > End > > Static Public Sub Application_Read() > > Print "ok" > > End > - > > 1) Problem #1, if i do > echo 'test' >

Re: [Gambas-user] Application_Read

2011-07-17 Thread Benoît Minisini
> i have an application who reads the data from stdin with > Application_Read > > the implementation is > > -- > Public Sub Application_Read() > > Line Input txtArea.Text > > End > - > > i try to send data to the running process with > echo xxx > /proc/7417/fd/0 > > where 74

Re: [Gambas-user] Application_Read

2011-07-14 Thread Demosthenes Koptsis
ok i change some things the implementation is this - Public Sub _new() Print "My pid is: " & Application.Handle End Static Public Sub Application_Read() Print "ok" End - 1) Problem #1, if i do echo 'test' > /proc/32264/fd/0 the program repea

[Gambas-user] Application_Read

2011-07-11 Thread Demosthenes Koptsis
i have an application who reads the data from stdin with Application_Read the implementation is -- Public Sub Application_Read() Line Input txtArea.Text End - i try to send data to the running process with echo xxx > /proc/7417/fd/0 where 7417 is the pid. But i cant get

Re: [Gambas-user] Application_Read does react only once

2011-03-04 Thread Benoît Minisini
> > > > Please send a complete project each time you report a bug, even if it is > > a small one that looks evident for you. > > > > Regards, > > Errr - didn't I? What is missing? > > Rolf > You just sent the module. But without the full project, I don't have the full context (which componen

Re: [Gambas-user] Application_Read does react only once

2011-03-04 Thread Rolf-Werner Eilert
Am 04.03.2011 01:02, schrieb Benoît Minisini: >> Hi folks, >> >> This is a small project I have been circling around for about a year or >> so. It would be a simple command line application that waits for and >> evaluates every keystroke you make. >> >> Some of you were so kind to point me to Appli

Re: [Gambas-user] Application_Read does react only once

2011-03-04 Thread Rolf-Werner Eilert
Am 04.03.2011 01:06, schrieb Benoît Minisini: >>> Hi folks, >>> >>> This is a small project I have been circling around for about a year or >>> so. It would be a simple command line application that waits for and >>> evaluates every keystroke you make. >>> >>> Some of you were so kind to point me t

Re: [Gambas-user] Application_Read does react only once

2011-03-03 Thread Benoît Minisini
> > Hi folks, > > > > This is a small project I have been circling around for about a year or > > so. It would be a simple command line application that waits for and > > evaluates every keystroke you make. > > > > Some of you were so kind to point me to Application_Read to achieve > > that, but

Re: [Gambas-user] Application_Read does react only once

2011-03-03 Thread Benoît Minisini
> Hi folks, > > This is a small project I have been circling around for about a year or > so. It would be a simple command line application that waits for and > evaluates every keystroke you make. > > Some of you were so kind to point me to Application_Read to achieve > that, but I found it only

[Gambas-user] Application_Read does react only once

2011-03-01 Thread Rolf-Werner Eilert
Hi folks, This is a small project I have been circling around for about a year or so. It would be a simple command line application that waits for and evaluates every keystroke you make. Some of you were so kind to point me to Application_Read to achieve that, but I found it only gives one sin

Re: [Gambas-user] Application_Read

2010-06-06 Thread Rolf-Werner Eilert
It is accepted, but still doesn't give any result. Am 04.06.2010 23:27, schrieb Fabien Bodard: > READ #LAST, Keys, -256 > > 2010/6/3 Rolf-Werner Eilert: >> >>> >>> Public Application_Read() >>> >>> Dim Keys As String >>> >>> ' Read up to (so the negative sign) 256 characters from the stand

Re: [Gambas-user] Application_Read

2010-06-04 Thread Benoît Minisini
> Public Application_Read() > > Dim Keys As String > > ' Read up to (so the negative sign) 256 characters from the standard input > Keys = Read, -256 > ... > > End > I may have done a bug in the compiler, as normally it should be just "Read -256", which is equivalent to "Read #File.In, -2

Re: [Gambas-user] Application_Read

2010-06-04 Thread Fabien Bodard
Public Application_Read() Dim Keys As String ' Read up to (so the negative sign) 256 characters from the standard input Keys = Read, -256 ... End -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Fa

Re: [Gambas-user] Application_Read

2010-06-04 Thread Fabien Bodard
READ #LAST, Keys, -256 2010/6/3 Rolf-Werner Eilert : > >> >> Public Application_Read() >> >>    Dim Keys As String >> >>    ' Read up to (so the negative sign) 256 characters from the standard input >>    Keys = Read -256 >>    ... >> >> End >> > > Sorry, if I do it like this, I get "Unexpected RE

Re: [Gambas-user] Application_Read

2010-06-03 Thread Rolf-Werner Eilert
> > Public Application_Read() > >Dim Keys As String > >' Read up to (so the negative sign) 256 characters from the standard input >Keys = Read -256 >... > > End > Sorry, if I do it like this, I get "Unexpected READ". What I did before was: READ #LAST Keys, -256 This doesn't pro

Re: [Gambas-user] Application_Read

2010-06-03 Thread Benoît Minisini
> Hi Benoit, hi all > > I tried to do as you said using Application_Read() for catching > keystrokes in a console program, but sorry, I just don't know how to > receive the key into a string variable to be able to process it any > further. Read the standard input with the Read instruction: Publi

[Gambas-user] Application_Read

2010-06-03 Thread Rolf-Werner Eilert
Hi Benoit, hi all I tried to do as you said using Application_Read() for catching keystrokes in a console program, but sorry, I just don't know how to receive the key into a string variable to be able to process it any further. What I found out is that the mere existence of an Application_Read(