How to turn off input echo in irb?

How to turn off input echo in irb?

jacklty

Jacklty L. wrote:

How to turn off input echo in irb?

jacklty

irb is a read-eval-print-loop, why would you ever want to do that? If
you need just the output of some Ruby code, put it in a file and run it
with the ruby interpreter instead of irb.

David V.

David V. wrote:

Jacklty L. wrote:

How to turn off input echo in irb?

jacklty

irb is a read-eval-print-loop, why would you ever want to do that? If
you need just the output of some Ruby code, put it in a file and run it
with the ruby interpreter instead of irb.

David V.

I am trying to write a irb console in my java app (Using JTextArea and
Runtime). I got it work nicely, but irb always repeats the user input
after the enter key. That’s why I want to disable the input echo.

Jacklty L. wrote:

I am trying to write a irb console in my java app (Using JTextArea and
Runtime). I got it work nicely, but irb always repeats the user input
after the enter key. That’s why I want to disable the input echo.

Ah. puts dumbass hat on

Slight googlage shows me that if you’re using Swing, you could as well
take the BeanShell (bsh) code, and rip off their JConsole class. Or
alternatively, look how fxri integrates with irb. And if you care for
personal opinions, I’d put the prompt into a separate JTextField and let
the JTextArea show the command echo.

David V.

On Sat, 19 Aug 2006 06:33:26 +0900, David V. [email protected]
wrote:

Jacklty L. wrote:

How to turn off input echo in irb?

jacklty

irb is a read-eval-print-loop, why would you ever want to do that? If
you need just the output of some Ruby code, put it in a file and run it
with the ruby interpreter instead of irb.

If you are using irb in irb-mode in Emacs, then why would you want the
output echoed.

The only effect of echoing is that you don’t see the output so you
have to toggle to the output window, scroll down, toggle back,
create send the next text, … .

On 8/18/06, Jacklty L. [email protected] wrote:

How to turn off input echo in irb?

jacklty


Posted via http://www.ruby-forum.com/.

Now another probably dumb question, does irb echo? I do not have the
impression, maybe you can elaborate on the problem?

Cheers
Robert


Deux choses sont infinies : l’univers et la bêtise humaine ; en ce qui
concerne l’univers, je n’en ai pas acquis la certitude absolue.

  • Albert Einstein