mosar
3/9/2007 4:47:00 PM
On 9 mar, 16:34, "ChrisH" <chris.hu...@gmail.com> wrote:
> On Mar 9, 9:01 am, "mosar" <jean.mo...@neuf.fr> wrote:
>
>
>
> > On 9 mar, 14:02, "ChrisH" <chris.hu...@gmail.com> wrote:
>
> > > On Mar 9, 3:16 am, "mosar" <jean.mo...@neuf.fr> wrote:
>
> > > > I have tried this little program taken from rubylearning.com site:
>
> > > > puts "In which city do you stay ?"
>
> > > > city= gets.chomp
> > > > puts "The city is " + city
>
> > > > At the right part of the Scite window I get
>
> > > > >ruby Dhomp.rb
>
> > > > In which city do you stay ?
>
> > > > >Exit code: -1073741510
>
> > > > I get another window which should be the so-called output window
> > > > (black) in which I should be able to write the name of the city. But I
> > > > can't write in. The window's name is:C:\ruby\bin\ruby.exe. I suppose
> > > > that this is not the correct one.
> > > > Thanks for your help.
>
> > > > mosar
>
> > > This kind of interaction doesn't work in SciTe, try running it from a
> > > cmd shell.
>
> > > Cheers
> > > Chris
>
> > Thank you but according to the above-mentioned Site :
> > "In the above example when you run it in SciTE, click on the output
> > window and then type the name of your city." so one should be able to
> > run an input function in Scite. How shall I proceed ?
> > mosar
>
> Just gave it a try, and the trick is to type in your response in the
> SciTe
> output window (not in the separate cmd window that gets opened), under
> where
> it shows the ruby command. You won't see the prompt message until
> after
> you enter the response
>
> cheers
> Chris
It functions exactly as you write. Many thanks
mosar