I tried again..this time I downloaded ruby1.8.6 from ruby-lang website
and I tried with the irb from the command prompt, still the same
(undesired)output as in Netbeans...
I am on windows os...

-- Shree


On Apr 13, 6:00 pm, The Wizard <[email protected]> wrote:
> This appears to be a "feature" of the NetBeans output window; when I run
> the same commands through "irb" in a terminal window, I see the expected
> result
>
> HellWorld
> World
>
> but when I try the same in the NetBeans window, I get
>
> Hello World
> Hello
> World
>
> I am using the NetBeans 7.0M1 beta, and Ruby 1.9 on Mac OS X 10.5.6.
>
> Mark Almeida
>
> srividya kannan wrote:
> > Hi
> > I was going through the ruby_basics.pdf file. Page 28 in the pdf shows
> > some examples on using escape sequences.
> > I tried them in Netbeans IDE 6.5.1 and found that backspace and
> > carriage return are not giving the desired output.
> > My statements are
> >    puts "Hello\bWorld"
> >    puts "Hello\rWorld"
>
> > And i expected to see
> > HellWorld
> > Hello
> > World
>
> > But the actual outcome was
> > Hello World
> > HelloWorld
>
> > Wondering whats wrong!!!
>
> > Thanks
> > Shree

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to