-
-
Notifications
You must be signed in to change notification settings - Fork 166
Set stty size #102
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
Set stty size #102
Conversation
|
The code change is not so obvious for me to understand it quick. Might need a few code comments what code does and On a side note, maybe setting env |
|
I built an image with With the fix in commit 4966244, the entire terminal is used. However, I'll continue looking for a simpler solution. If none is available, then I'll document the changes or choose not to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Looks good to me. As said before, just would be good to include a few code comments, since the impact of the change is not obvious.
And thanks for trying alternatives.
vutny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very interesting...
But I never encountered any issues with terminal size in stackstorm container, neither locally nor over SSH.
Could it be a problem of older Docker or some terminal app? I always use docker-compose exec stackstorm bash to enter the container.
You can find the old deprecated version in `DEPRECATED/all-in-one` branch archive: https://github.com/StackStorm/st2-docker/tree/DEPRECATED/all-in-one Closes StackStorm#22, closes StackStorm#23, closes StackStorm#26, closes StackStorm#29, closes StackStorm#34, closes StackStorm#41, closes StackStorm#43, closes StackStorm#92, closes StackStorm#112, closes StackStorm#117, closes StackStorm#125, closes StackStorm#133, closes StackStorm#141, closes StackStorm#145, closes StackStorm#151, closes StackStorm#163, closes StackStorm#187, closes StackStorm#188, closes StackStorm#189, closes StackStorm#190 Closes StackStorm#162, closes StackStorm#138, closes StackStorm#108, closes StackStorm#102, closes StackStorm#65
Without this change, in the stackstorm container
stty sizereturns0 0and potentially only part of the terminal window is used. Usesttyto set the actual number ofcolsandrowsso the entire terminal window is available for use.