;
const streamEnumToLiteral = {
[GeneratedRussh.StreamKind.Stdout]: 'stdout',
diff --git a/packages/react-native-xtermjs-webview/index.html b/packages/react-native-xtermjs-webview/index.html
index b809e5c..0809bab 100644
--- a/packages/react-native-xtermjs-webview/index.html
+++ b/packages/react-native-xtermjs-webview/index.html
@@ -7,7 +7,7 @@
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
-
+
RN (SSH) as UTF-8 bytes (Base64)
term.onData((data) => {
- // const bytes = enc.encode(data);
- // const bStr = binaryToBStr(bytes);
sendToRn({ type: 'input', str: data });
});
@@ -100,7 +94,14 @@ if (window.__FRESSH_XTERM_BRIDGE__) {
break;
}
case 'setOptions': {
- const newOpts = msg.opts;
+ const newOpts: ITerminalOptions = {
+ ...term.options,
+ ...msg.opts,
+ theme: {
+ ...term.options.theme,
+ ...msg.opts.theme,
+ },
+ };
term.options = newOpts;
if (
'theme' in newOpts &&
@@ -108,7 +109,7 @@ if (window.__FRESSH_XTERM_BRIDGE__) {
'background' in newOpts.theme &&
newOpts.theme.background
) {
- document.body.style.backgroundColor = newOpts.theme.background;
+ document.body.style.backgroundColor = 'blue'; // TODO: Just for debugging
}
break;
}