Ruby and irb

P

Paulo Carvalho

Hello

I have a problem with irb console.

When i want to write special characters like "@" and "[" or "]" i cant.
IRB simply dont let me write this characters. It is like if i was not
writing on the beyboard.

Any help?

thanks
 
P

Peña, Botp

T24gQmVoYWxmIE9mIFBhdWxvIENhcnZhbGhvOg0KIyBJIGhhdmUgYSBwcm9ibGVtIHdpdGggaXJi
IGNvbnNvbGUuDQojIFdoZW4gaSB3YW50IHRvIHdyaXRlIHNwZWNpYWwgY2hhcmFjdGVycyBsaWtl
ICJAIiBhbmQgIlsiIG9yIA0KIyAiXSIgaSBjYW50LiBJUkIgc2ltcGx5IGRvbnQgbGV0IG1lIHdy
aXRlIHRoaXMgY2hhcmFjdGVycy4gSXQgDQojIGlzIGxpa2UgaWYgaSB3YXMgbm90IHdyaXRpbmcg
b24gdGhlIGJleWJvYXJkLg0KDQppJ20gYXNzdW1taW5nIHlvdSBkbyBub3QgaGF2ZSBhbiBlbmds
aXNoIGtleWJvYXJkLCANCg0KdHJ5IA0KDQogIGlyYiAtLW5vcmVhZGxpbmUNCg0Ka2luZCByZWdh
cmRzIC1ib3RwDQo=
 
P

Paulo Carvalho

Yes you are right. Thank you.

Now instead of executing "irb --noreadline" is there a place where i can
put the "--noreadline" option to be executed always when irb is called?

My problem is that, i am debugging an application with the "breakpoint"
instruction. This instruction opens an irb console. So I would like that
the irb console to be called automatically with the noreadline option...

Do you know how can I make it?

thanks

On Behalf Of Paulo Carvalho:
# I have a problem with irb console.
# When i want to write special characters like "@" and "[" or
# "]" i cant. IRB simply dont let me write this characters. It
# is like if i was not writing on the beyboard.

i'm assumming you do not have an english keyboard,

try

irb --noreadline

kind regards -botp
 
P

Paulo Carvalho

Thanks

I created the .irbrc file (because i dont have anyone) but it seems that
is not used.
I am in windows with instant rails. I created the file in the
\InstantRails\ruby directory but I think it is not the right place to
have it.

Am I wrong?

regards

From: Paulo Carvalho [mailto:p[email protected]]
# Now instead of executing "irb --noreadline" is there a place
# where i can put the "--noreadline" option to be executed always
# when irb is called?
#
# My problem is that, i am debugging an application with the
# "breakpoint"
# instruction. This instruction opens an irb console. So I
# would like that
# the irb console to be called automatically with the
# noreadline option...
#
# Do you know how can I make it?

maybe, 2 ways

1. modify the irb shellscript (in windows it's a batch file)

or

2. create/modify your .irbrc file
if you have an existing .irbrc file (it's just a ruby file that irb
loads by default if it exists), try putting the ff line (pref at the
top) of th irbrc script

ARGV.concat["--noreadline"]


the second option is more flexible and recommended, imho

kind regards -botp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,269
Messages
2,571,338
Members
48,028
Latest member
chasetony

Latest Threads

Top