I've recently downloaded Ruby which includes the Scite editor. I get into the editor and select "Run irb" from the Tools menu. I get irb running in the right column. Then I type 123 and find that each character is duplicated. That is:
irb(main):001:0> 112233
=> 123
What gives?
Brent
Brent W. Hughes said:
I've recently downloaded Ruby which includes the Scite editor. I get
into the editor and select "Run irb" from the Tools menu. I get irb
running in the right column. Then I type 123 and find that each
character is duplicated. That is:
irb(main):001:0> 112233
=> 123
What gives?
Hi Brent,
I have not used Scite before, but I just tested this out and get the same
behavior. I can only guess that both Scite and irb are echoing what you
type, hence the duplication. It must be a Scite bug (or a bug in whatever
adds the irb support.)
Until this is fixed I would recommend you try out fxri, which also has a
built-in irb, as well as documentation. It is a good place to play around
with Ruby and learn about the built-in classes.
Ryan
When using irb, or when running programs which ask for keyboard input
(via 'gets' or something like that), I'd recommend just using your
good-ol' Windows Command Prompt.
I only use the F5 (runs your ruby program) if it's a non-interactive program.
On a totally unrelated note, I don't know how newby you are, but if
you've never done any programming before, you might get something out
of a tutorial I wrote (which, like Pinocchio, dreams of being a real
book, and may soon get its wish!)
http://pine.fm/LearnToProgram/
Welcome to Ruby!
Chris
Ryan,
Thanks for the info on fxri. I never would have guessed what it does from the name. It looks nice.
Brent
Ryan Leavengood wrote:
···
Brent W. Hughes said:
I've recently downloaded Ruby which includes the Scite editor. I get
into the editor and select "Run irb" from the Tools menu. I get irb
running in the right column. Then I type 123 and find that each
character is duplicated. That is:
irb(main):001:0> 112233
=> 123
What gives?
Hi Brent,
I have not used Scite before, but I just tested this out and get the same
behavior. I can only guess that both Scite and irb are echoing what you
type, hence the duplication. It must be a Scite bug (or a bug in whatever
adds the irb support.)
Until this is fixed I would recommend you try out fxri, which also has a
built-in irb, as well as documentation. It is a good place to play around
with Ruby and learn about the built-in classes.
Ryan