NordicPlayground / pc-xterm-lib

Other
2 stars 0 forks source link

Disconnect handlers in character mode #23

Closed michaeljones closed 3 years ago

michaeljones commented 3 years ago

And reconnect them in line mode.

We add 'connect' and 'disconnect' methods to all addons and move the 'onData' and 'onKey' handlers into those methods so that we can connect and disconnect them at will.

We do this so that character mode is free of any kind of artificial history or key capture. Without this the setup gets confused between the history in the HistoryAddon and the history in the shell itself.

Checklist