[Gambas-user] Input command with double enter: is this expected?
Leandro Santiago
leandrosansilva at ...626...
Thu Apr 8 01:59:54 CEST 2010
Thanks. Now it works :-)
2010/4/7 Benoît Minisini <gambas at ...1...>
> > 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
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list