I have a Vue App with a component for xterm and parallel to it I'm using ssh2/shell as a client with a global Vue plugin.
I can connect via my ssh plugin to a server on my xterm component and writing my ssh stream into the xterm with the stream.on('data', cb)
event.
So far so good, it works perfect.
My problem starts here... if I switch to another Vue route and come back to my xterm component.
The xterm component is recreated and, of cource, empty. Is there a way to access the old stream data and also the stream data I missed since I left the component from my existing stream object (it exists in my global Vue plugin)? I just need to initialize my xterm component with the last 1000 letters of my ssh connection.