-
Notifications
You must be signed in to change notification settings - Fork 69
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
terminalDiff between 2 terminals or full screen data #4
Comments
This is how the headless-terminal approaches the same on 'fresh' connect |
I'll think about a good solution. :) |
For now, just use two Terminals and write to both. |
using both Terminals is not going to solve it, let me explain:
I'll spent some more time on it tomorrow. |
I've started on a diff system in this branch - https://github.com/jedi4ever/terminal.js/blob/terminal.diff-apply/lib/terminal.js#L396 It would allow you detect the changes between two terms. This could later be used for the Termdiff internally. love to hear your thoughts on this! |
#14 will solve my diff & apply issue. |
Hi I'm trying the following scenario.
On the server side I have a terminal that receives the write changes. I figured from the node-terminal that I can use the Termdiff to calculate the difference since the last writes.
The downside of the current terminalDiff is that you could only use it once and then the internal oldBuffer gets reset.
The problem I'm facing is that when new clients connect they need a 'full' resync of the terminal state. I could opt to add a Termdiff.fullDiff to create a kind of 'total'screen state patch.
Another approach could be to keep 2 terminals and make Termdiff a function between (term1,term2).
To get the full state you could:
be curious what approach you'd suggest.
The text was updated successfully, but these errors were encountered: