Skip to content

Commit

Permalink
Removing TOWebView from WebSSH
Browse files Browse the repository at this point in the history
  • Loading branch information
isontheline committed Jan 11, 2023
1 parent 408b8e6 commit cb64552
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
12 changes: 0 additions & 12 deletions documentation/src/docs/licenses/LICENSE_TOWEBVIEW.md

This file was deleted.

8 changes: 6 additions & 2 deletions src/ssh/assets/xterm-webssh.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,16 @@ const TerminalHelper = {
},

saveState: debounce(() => {
const encodedContent = Base64.btoa(unescape(encodeURIComponent(serializeAddon.serialize({scrollback: 1000}))));
const encodedContent = Base64.btoa(encodeURIComponent(serializeAddon.serialize({
scrollback: 1000,
excludeModes: false,
excludeAltBuffer: false
})));
JS2IOS.calliOSFunction('saveState', encodedContent);
}, 1000),

restoreState: function(encodedContent) {
terminal.write(decodeURIComponent(escape(atob(encodedContent))));
terminal.write(decodeURIComponent(atob(encodedContent)));
},

focus: function (enable) {
Expand Down

0 comments on commit cb64552

Please sign in to comment.