String line
XTerm xterm
StringBuilder scrollbackBuffer
boolean wasDetachedOnce
StateMemoizer optionsMemoizer
ITerminalOptions optionsDelegate
PreserveStateAddon.optionsMemoizer proxy.
That will allow us to re-apply the settings when the xterm is re-attached.
For example, calling ITerminalOptions.setBellSound(String)
on this addon will pass through the call to this delegate, which in turn passes
the call to PreserveStateAddon.optionsMemoizer which remembers the call and passes
it to PreserveStateAddon.xterm.
After the xterm.js is re-attached, we simply call StateMemoizer.apply()
to apply all changed setters again to xterm.js, to make sure xterm.js is
configured.private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionprivate void writeObject(ObjectOutputStream out) throws IOException
IOExceptionITerminalOptions terminalOptionsProxy
ITerminal terminalProxy
List<E> deferredCommands
Map<K,V> setterCalls
Object delegate
Object proxy
StateMemoizer.delegate.Copyright © 2020–2022 Flowing Code. All rights reserved.