[Gambas-user] Input command with double enter: is this expected?

Benoît Minisini gambas at ...1...
Wed Apr 7 20:40:12 CEST 2010


> Confirmed with Gambas3 rev 2822, Ubuntu 9.10 64bit.
> 
> This code;
> Public Sub Main()
> Dim a As String
> Input a
> Print a
> End
> 
> Yields this;
> "
> $ gbr3 ~/Desktop/cmdTesti.gambas
> This will be printed to screen...
> 
> This
> "
> 
> Though, I'm not sure how 'input' should behave...
> Can you use Application.Args[] ?
> 
> Jussi
> 
> 
> 
> On Mon, Apr 5, 2010 at 18:16, Leandro Santiago
> 
> <leandrosansilva at ...626...> wrote:
> > Hello to all. I'm writing a small command-line app.
> > 
> > I'm using the input command to read data from keyboard (stdin), and to
> > finalize the command in gambas, is necessary to press enter key twice,
> > but I never saw this behavior. Usually (in 99% of languages) just one
> > enter is the nedeed.
> > 
> > Is there another way to read data from keyboard?
> > 
> > I just do:
> > Input name
> > 
> > I'm using gambas3 rev. 2840 in Ubuntu Linux. 9.10
> > 

The bug should be fixed in revision #2869.

Regards,

-- 
Benoît Minisini




More information about the User mailing list