[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[Newby] Scite, irb question

Brent W. Hughes

6/22/2005 7:55:00 PM

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
3 Answers

Ryan Leavengood

6/22/2005 8:07:00 PM

0

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


Chris Pine

6/23/2005 2:26:00 AM

0

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/Learn...

Welcome to Ruby!

Chris


Brent W. Hughes

6/23/2005 7:51:00 PM

0

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
>
>