delano / rye

Safe, parallel access to Unix shells from Ruby
http://delano.github.com/rye
MIT License
234 stars 32 forks source link

Unexpected messages displayed on screen #19

Closed rrepen closed 12 years ago

rrepen commented 12 years ago

Hello, I have a small application using Rye and Curses. I am doing a test with Rye by trying to connect to a specific host and if the user is not allowed to log in I get an authentication error, which is expected. The problem is that these errors show up on the screen under Curses and completely screw up the display .

I have identify the source of this problem in box.rb/create_channel line 1094 in the following line: ... print channel[:stderr].read if channel[:stderr].available > 0 ...

How can get these messages in the stderr instead of the screen Thanks very much for your help René

delano commented 12 years ago

Thanks for the report. It's fixed in 0.9.7 which I just pushed to rubygems.