Screen buffer#58
Conversation
Fixes: a99e46f ("Simplify I/O handling") Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
When a client attaches to an existing session, the session command output is not available to him. The problem is not noticeable when the program (top, man, etc.) in the session is able to redraw its output. But this does not work with non-interactive utilities. The output of commands in bash will not be available to the client connecting to the session. To solve this, we add a buffer that contains the last few lines of the session output. When a new client attaches, the contents of this buffer are sent to him. Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
|
this is brilliant! any chances of merging @martanne? |
|
@megalithic I haven't seen activity here in years. I maintain my fork. |
thanks @legionus! i've switched to building from your repo from source. cheers! |
@megalithic If you have any other suggestions, I'm ready to add to my fork. I hope in the future I will have a chance to discuss them with upstream. |
|
hi @martanne , many thanks for you work! cheers Max |
|
@martanne What do you think? |
|
@legionus there is another bug which it would be nice if your fork includes |
@cgm999 Pushed into the I wonder if this project is dead? I mean, I try not to make changes to the fork in the hope that they will merge someday. If this is not necessary, it is possible to improve the code with modern compilers in mind, add tests, and support for different libc. |
|
I think once it hits 10 years without a commit, it’s probably pretty safe to merge any changes you want |
|
Hi! I made a new release to bring together all the changes in this repository and the fixes I've accumulated. Patches and bug reports are welcomed. |
When a client attaches to an existing session, the session command output is not available to him. The problem is not noticeable when the program (top, man, etc.) in the session is able to redraw its output.
But this does not work with non-interactive utilities. The output of commands in bash will not be available to the client connecting to the session.
To solve this, we add a buffer that contains the last few lines of the session output. When a new client attaches, the contents of this buffer are sent to him.
This PR could address #57, #32 and maybe more.