Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message not always send back #21

Open
rrepen opened this issue Jul 9, 2012 · 0 comments
Open

Error message not always send back #21

rrepen opened this issue Jul 9, 2012 · 0 comments

Comments

@rrepen
Copy link

rrepen commented Jul 9, 2012

In the box.rb file in line 821 and 822 (rye 0.9.7) a rewind of the channel :stderr and :stdout buffers is missing.

In my application I got nothing as error message where I should got it (By putting some trace before I can see that the channel has the error message but the rap structure does not have it!!)

By adding these two lines:
channel[:stdout].position = 0
channel[:stderr].position = 0
I can get the error message and I can comment the line you just modify (line 1100) as I think this one is not useful because for me it is up to the application to forward that message to the screen or not.
BTW: when using Curses these messages still show up on the screen and they are just annoying. I prefer to manage them myself and show them in the right place on the screen rather than randomly.

Thanks for your help and for this nice tool
René

delano pushed a commit that referenced this issue Feb 13, 2014
… lost as the Net::SSH::Buffer read does not always read from the beginning of the channel buffer. This sets the position of the buffer to the beginning to be read from...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant